This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Jframe not diaplaying components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jframe not diaplaying components" Watch "Jframe not diaplaying components" New topic
Author

Jframe not diaplaying components

Paras Ahuja
Ranch Hand

Joined: May 22, 2012
Posts: 62


my label and comboox are no displayed on the frame. Please help....
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
assumption: the label.comboBox are part of the abs components

this
getContentPane().add(abs.rname);

is added to the default position of the frame's default LayoutManager
(you've commented out the GridBagLayout, so the rest of the constraints is useless)

now, when you add this
getContentPane().add(abs.cb[2]);

it is added to the same spot as the earlier one, effectively knocking out the earlier one.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jframe not diaplaying components
 
Similar Threads
how to set this a borderq
GridBagLayout...!
how to center this button 1
GridBagLayout problem
Grid Bag Layout not working in JInternalFrame