File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "layout flow/border" Watch "layout flow/border" New topic

layout flow/border

Jason sigel
Ranch Hand

Joined: Oct 07, 2003
Posts: 30


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

Do layout have different initialization format.
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

Joined: Sep 18, 2000
Posts: 602

"SpaceBunny", take a look at this link:
I agree. Here's the link:
subject: layout flow/border
It's not a secret anymore!