This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Layout problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Layout problem " Watch "Layout problem " New topic

Layout problem

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
Hi, I want to plot a 3d and two combox, but only combox displayed.
Why my drawing no appearence?
Thanks, this is an executable code.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959

This looks a bit odd. Have you tried "panel.add(getComboPanel(), BorderLayout.CENTER)" instead?

You should also set the layout explicitly, like "panel.setLayout(new BorderLayout())".
I agree. Here's the link:
subject: Layout problem
jQuery in Action, 3rd edition