- import javafx.ext.swing.SwingButton;
- import javafx.ext.swing.SwingIcon;
- import javafx.scene.image.Image;
-
- var button1 = SwingButton {
- text: "Press Me"
- icon: SwingIcon{
- image: Image {
- url: "http://java.sun.com/docs/books/tutorial/images/DukeWave.gif"
- }
- }
- }
import javafx.ext.swing.SwingButton;
import javafx.ext.swing.SwingIcon;
import javafx.scene.image.Image;
var button1 = SwingButton {
text: "Press Me"
icon: SwingIcon{
image: Image {
url: "http://java.sun.com/docs/books/tutorial/images/DukeWave.gif"
}
}
}
0 件のコメント:
コメントを投稿