File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Layout problem

 
Hui Zhao
Ranch Hand
Posts: 116
  • 0
  • 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
Pie
Posts: 42966
73
  • 0
  • 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())".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic