JavaFX & GlassFish ‹‰¼·¼ Oh! JavaFX 2.0!

  • View
    2.603

  • Download
    5

Embed Size (px)

DESCRIPTION

 

Text of JavaFX & GlassFish ‹‰¼·¼ Oh! JavaFX 2.0!

  • 1. Oh! JavaFX 2.0! Java in the Box
  • 2. JavaFX 2.0 Java API No JavaFX Script
  • 3. Oracle JavaFX Script
  • 4. NeWS SunView OpenLook Applet LG3D RIA? JavaME? ?DeveloperDesignerJava
  • 5. Java API Advantage DisadvantageJava Developer Java Client Community ...FX Script add setter API Java Designer ?JVM Runtime Generics,Annotation
  • 6. Features Lang. Bind, Sequence Java8 Lambda API SceneGraph, UIControls HTML DOM, EmbededHTML Graphics Engine HW Acceleration Prism Graphics Engine Deployment Applet
  • 7. Demo Prism: JavaFX 1.3.1 VM : -Xtoolkit prism
  • 8. Sample JavaFX ScriptStage { title: "Sample" scene: Scene { width: 220 height: 40 content: [ Label { font: Font { size: 36 } text: "Hello, World!" } ] }}
  • 9. Sample JavaFX 2.0public class Sample implements Runnable { public void run() { Stage stage= new Stage(); stage.setTitle("Hello Stage"); Scene scene = new Scene(); scene.setWidth(600); scene.setHeight(450); Label label = new Label(); Font font = new Font(); font.setSize(36); label.setFont(font); label.setText( Hello, World! ); scene.addContents(label); stage.setScene(scene); stage.setVisible(true); } public static void main(String[] args) { FX.start(new Sample()); }}