wood burning stoves 2.0*
The moose likes Applets and the fly likes Components won't resize width automatically 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 » Applets
Bookmark "Components won Watch "Components won New topic

Components won't resize width automatically

Hannah Sigmon

Joined: Apr 16, 2013
Posts: 4
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

Joined: Mar 22, 2005
Posts: 41137
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.

Ping & DNS - my free Android networking tools app
I agree. Here's the link: http://aspose.com/file-tools
subject: Components won't resize width automatically
Similar Threads
Problem with Continue button to go Next Frame?
problem in attaching mouselistener on a imagepanel
JList deleting multiple items
How to create array of JButton and JLabel ?
problem in drawing deleting a line on the click of a mouse