Differences between revisions 3 and 6 (spanning 3 versions)
Revision 3 as of 2007-09-12 02:43:00
Size: 441
Editor: 211
Comment:
Revision 6 as of 2007-09-13 18:27:21
Size: 732
Editor: GregMoore
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
DocumentationAndEducation

[[TableOfContents]]

----
Line 8: Line 14:
Line 12: Line 17:
<pre>
from javax.swing import JFrame
frm = JFrame('Hello, World!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None)
frm
.show()
</
pre>
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 im
port JFrame
f = JFrame('Hello, World!', defaultCloseOperation=JFrame.EXIT_ON_CLOSE, size=(300, 300), locationRelativeTo=None)
f.show()}}}

Swing Examples in Jython

DocumentationAndEducation

TableOfContents


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

SwingExamples (last edited 2010-11-28 18:05:51 by adsl-243-207-244)