JavaFX & GlassFish 勉強会 Oh! JavaFX 2.0!

2,286 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,286
On SlideShare
0
From Embeds
0
Number of Embeds
40
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

JavaFX & GlassFish 勉強会 Oh! JavaFX 2.0!

  1. 1. Oh! JavaFX 2.0! Java in the Box 櫻庭 祐一
  2. 2. JavaFX 2.0 Java API No JavaFX Script
  3. 3. 敗因Oracle の言い分元凶は JavaFX Script
  4. 4. 敗因 死屍累々 NeWS SunView 櫻庭の言い分 OpenLook Applet イメージ LG3D 負のスパイラル RIA? ツール 戦略 JavaME? リソース ?DeveloperDesignerJava との連携
  5. 5. Java API Advantage DisadvantageJava Developer 多数 Java で Client 小数 Community は ...FX Script の勉強不要 add と setter だらけ API は学習必要Java のツールを活用 記述自由度が高すぎ Designer 向けは ?JVM 各種言語で使用可Runtime 縮小Generics,Annotation
  6. 6. Features Lang. Bind, Sequence 関数型なし Java8 で Lambda API SceneGraph, UIControls HTML DOM, EmbededHTML Graphics Engine HW Acceleration Prism Graphics Engine Deployment Applet 強化
  7. 7. Demo Prism: JavaFX 1.3.1 でも使用可 VM オプション : -Xtoolkit prism
  8. 8. Sample JavaFX ScriptStage { title: "Sample" scene: Scene { width: 220 height: 40 content: [ Label { font: Font { size: 36 } text: "Hello, World!" } ] }}
  9. 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()); }}

×