11.07.2015 Views

JSR-296: The Swing Application Framework - Java

JSR-296: The Swing Application Framework - Java

JSR-296: The Swing Application Framework - Java

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the <strong>Framework</strong>: Hello Worldpublic class MyApp extends SingleFrame<strong>Application</strong> {@Override protected void startup() {JLabel label = new JLabel("Hello World");show(label);}public static void main(String[] args) {<strong>Application</strong>.launch(MyApp.class, args);}}// SingleFrame<strong>Application</strong> is a subclass of <strong>Application</strong>2007 <strong>Java</strong>One SM Conference | Session TS-3942 | 18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!