This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Resizing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Resizing" Watch "Resizing" New topic
Author

Resizing

Matt Vording
Greenhorn

Joined: Sep 20, 2000
Posts: 3
I have created a panel with two components, one a JTextField, the second a JButton. I have set the size of the panel to be the same height as the JTextField, but when I display the panel, it resizes the Panel to be the height of the JButton. I use GridBag layout.
How do I resize the button so that it has the height and width I want, while keeping the JTextField the same size?
Thanks,
Matt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Resizing
 
Similar Threads
How do you make the textfield and button the same size? FlowLayout
JTextField size too big
Different cell sizes for jlist cells
Which layout for JTextField
GridBagLayout Question: Irregular Spacing