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

Resizing

 
Matt Vording
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic