• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Layout problem

 
Hui Zhao
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
panel.add(drawing,"Center");


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())".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic