This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes layout flow/border Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "layout flow/border" Watch "layout flow/border" New topic
Author

layout flow/border

Jason sigel
Ranch Hand

Joined: Oct 07, 2003
Posts: 30

and


/*
here nothing happens untill I store new mframe1() object is frame f object and call f.show().
frame f=new mframe1();
f.show();
please explain it to me.Is it due to layout as in border layout I don't have to add f.show.
*/

Do layout have different initialization format.
jaideep
scott irwin
Ranch Hand

Joined: Aug 07, 2000
Posts: 87
Window, Frame and Dialog default to invisible, while all other components default to visible (like buttons). In your first example, you called setVisible(true) which was on the Frame you extended.
The show method makes a window visible AND brings it to the front. In your second example, you did not make the frame visible by either method.
Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 556
    
    7


"SpaceBunny", take a look at this link:
http://www.javaranch.com/ubb/Forum10/HTML/000180.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: layout flow/border
 
Similar Threads
layout
applets
layout
awt
LAYOUTS. PLS HLP !!!