File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How to make the window (JPanel?) bigger in gridbaglayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to make the window (JPanel?) bigger in gridbaglayout" Watch "How to make the window (JPanel?) bigger in gridbaglayout" New topic
Author

How to make the window (JPanel?) bigger in gridbaglayout

Debby Miller
Greenhorn

Joined: Feb 29, 2012
Posts: 7
When I run this program, the window pops up and everything is smooshed (for lack of a better term) together. How do I change the size of it? I'm using GridBagLayout. Thanks in advance! Here is my code:
Debby Miller
Greenhorn

Joined: Feb 29, 2012
Posts: 7
That was a different program when I asked about an image not showing up, he said I had a God class, too many variables, to change the == to .equals, and to stay away from using 'this' as the listener. I did that stuff.. well I'm still learning about how to create a different class as a listener.. but anyway, am I missing something? Does what he said in that last post have to do with this one? Or was I supposed to post them both in the same place even though they are different programs/questions? Sorry I'm new to Java and to this site. Thanks in advance!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

Debby Miller wrote:am I missing something?

Code tags come to mind


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Debby Miller
Greenhorn

Joined: Feb 29, 2012
Posts: 7
Yikes! Sorry!!
Debby Miller
Greenhorn

Joined: Feb 29, 2012
Posts: 7
Never mind on my question, I just didn't have the borders set right. Thanks for not burning me at the stake
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make the window (JPanel?) bigger in gridbaglayout
 
Similar Threads
JScrollPane Weight Shift In GridBagLayout
gridlayout with combo box
Dynamically adding a panel to a panel
Framing within GridBagLayout
help automate code