This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Components won't resize width automatically

 
Hannah Sigmon
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm beginning to learn how to make applets and I'm having a lot of trouble. The components here display fine, but when the window is resized, the width of the components doesn't resize, and neither does the height of the JTextArea, although the height of the JList does. Additionally, when I make the window really small, the JTextArea covers up the JComboBox, although the JList doesn't do that to the JTextField or the JButton. Any advice? I'm a complete novice at this.

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With applets you should assume that the GUI does not resize (it certainly does not if it's embedded in a web page). If you want something resizable then the applet should open a new JFrame.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic