Differences between revisions 4 and 5
Revision 4 as of 2007-09-12 02:47:22
Size: 238
Editor: 211
Comment:
Revision 5 as of 2007-09-12 07:01:57
Size: 674
Editor: 211
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
=== Hello, World! ===

These are some ways of creating a simple frame with the title 'Hello, World!' on it.

{{{from javax.swing import JFrame
JFrame('Hello, World!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None).show()}}}

{{{from javax.swing import JFrame
f = JFrame('Hello, World!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None)
f.show()}}}

Swing Examples in Jython

Examples related to Swing using Jython will be here.

Hello, World!

These are some ways of creating a simple frame with the title 'Hello, World!' on it.

{{{from javax.swing import JFrame JFrame('Hello, World!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None).show()}}}

{{{from javax.swing import JFrame f = JFrame('Hello, World!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None) f.show()}}}

List of pages in this category:

  • Something simple
  • Something else simple

ADB SwingExamples (last edited 2011-08-07 01:33:32 by h86)