2008年12月16日火曜日

JavaFX Button (Swing)

  1. import javafx.ext.swing.SwingButton;  
  2. import javafx.ext.swing.SwingIcon;  
  3. import javafx.scene.image.Image;  
  4.   
  5. var button1 = SwingButton {  
  6.     text: "Press Me"  
  7.     icon: SwingIcon{  
  8.         image: Image {  
  9.             url: "http://java.sun.com/docs/books/tutorial/images/DukeWave.gif"  
  10.         }  
  11.     }  
  12. }  

0 件のコメント:

コメントを投稿