13
JavaFX Christoph Pickl 1 Tuesday, December 16, 2008

JSUG - Java FX by Christoph Pickl

Embed Size (px)

DESCRIPTION

visit http://jsug.fsinf.at

Citation preview

Page 1: JSUG - Java FX by Christoph Pickl

JavaFXChristoph Pickl

1Tuesday, December 16, 2008

Page 2: JSUG - Java FX by Christoph Pickl

Agenda

1. Introduction

2. Theory

3. Showcase

2Tuesday, December 16, 2008

Page 3: JSUG - Java FX by Christoph Pickl

IntroductionHistory, Background, Troubles

3Tuesday, December 16, 2008

Page 4: JSUG - Java FX by Christoph Pickl

History

JavaFX Script (before F3: Form Follows Function)

Sun acquired SeeBeyond Technology 2005

First announcement May 2007 at JavaOne

was interpreted instead of compiled Chris Oliver

4Tuesday, December 16, 2008

Page 5: JSUG - Java FX by Christoph Pickl

Background

targets Rich Internet Application domain

replaces Swing and Webstart

Open Sourced via OpenJFX project (GPL)

Intended for Swing-/Web-Developers

Java SE 6 recommended (5 supported)

5Tuesday, December 16, 2008

Page 6: JSUG - Java FX by Christoph Pickl

TroublesWebsite broken

Eclipse Plugin

Maven Plugin

Unstable Syntax

Outdated Tutorials

6Tuesday, December 16, 2008

Page 7: JSUG - Java FX by Christoph Pickl

TheorySyntax, Language Features

7Tuesday, December 16, 2008

Page 8: JSUG - Java FX by Christoph Pickl

Syntax

Declarative or Procedural Syntax (object-oriented)

kind of JSON notation (no XML)

static typed with type inference (declaration optional)

no other language extensions (such as: E4X, LINQ)

javafx.stage.Stage { title: "Hello JSUG" width: 200 height: 150 visible: true }

8Tuesday, December 16, 2008

Page 9: JSUG - Java FX by Christoph Pickl

SyntaxJava JavaFX

Simple = + - * / % = + - * / mod

Compound += -= *= /= %= += -= *= /=

Comparison < <= > >= != < <= > >= !=

Logical && || and or

Creation new X(); new X(); X { };

Variable Person p; var p: Person;

Method private String f(); function f(): String;

Strings println(“x: ” + x); println(“x: {x}”);

9Tuesday, December 16, 2008

Page 10: JSUG - Java FX by Christoph Pickl

Language Features

Binding

Sequences

Object Literal Notation

Multiple Inheritance, Exceptions

... Java!

10Tuesday, December 16, 2008

Page 11: JSUG - Java FX by Christoph Pickl

Showcase

11Tuesday, December 16, 2008

Page 12: JSUG - Java FX by Christoph Pickl

12Tuesday, December 16, 2008

Page 13: JSUG - Java FX by Christoph Pickl

Links

http://javafx.com

http://java.sun.com/javafx/1/tutorials/core/

http://java.sun.com/javafx/1/tutorials/ui/

... http://jsug.fsinf.at/Meeting_8

13Tuesday, December 16, 2008