D
Dirk Bruere at NeoPax
John said:Dirk Bruere at NeoPax said:[...]Owen said:On 2009-03-03 21:33:25 -0500, Dirk Bruere at NeoPax
<[email protected]> said:
Mark Space wrote:
Dirk Bruere at NeoPax wrote:
Well, at present I am coloring in icons. Any bets that the
artistic "look and feel" arguments will take more time, effort
and cash than writing all the code?
Stay away from making any JFrame or JFrame forms (in the GUI
builder). Use JPanel directly or via the GUI builder (JPanel is
usually about two entries below JFrame when you bring up the
list).
Why?
Because JApplet will replace JFrame when you're building an applet.
You can add JPanels to JApplets the same way you can add them to
JFrames, but you can't add JFrames to JApplets.
(Applets can open JFrames, but they don't look great due to the
browser security crud stuck to the window decorations on most
systems.)
So I do everything inside a JPanel, which is contained within a JFrame?
JFrame is one of a small number of top-level containers; JApplet is
another:
<http://java.sun.com/docs/books/tutorial/uiswing/components/toplevel.html>
One top-level container may not contain another, although the same
content may be placed in either:
<http://sites.google.com/site/drjohnbmatthews/subway>
<http://mindprod.com/jgloss/applet.html>
I've rewritten the app as a JPanel.
I assume it's fairly easy now to add it to any top level container?
--
Dirk
http://www.transcendence.me.uk/ - Transcendence UK
http://www.theconsensus.org/ - A UK political party
http://www.onetribe.me.uk/wordpress/?cat=5 - Our podcasts on weird stuff