A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
Swing / AWT / SWT
Joined: Feb 06, 2006
Mar 03, 2006 16:30:00
Can you use multiple frames when creating a
GUI, and if so how do i go about doing so?
Joined: Jul 15, 2003
Mar 03, 2006 16:42:00
Yes. Create a second
and make it visible using setVisible(true) the same way you did the first. You can also use a
and multiple JInternalFrames depending on what you want to do.
Joined: Aug 31, 2004
Mar 03, 2006 17:01:00
Note: Use the setLocation(int x, int y) method so that the frames don't simply appear directly on top of one another.
Also, if you're interested in using JInternalFrames, see this tutorial:
How to Use Internal Frames
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
Goods and Services Deficit Increases in March 2003
Defect on Microsoft portal
failed twice in half an hour.
Is Spring Web Services good enough?
error comes while connecting to database please see the source code and error for detail
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014