Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Debby Miller
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Debby Miller wrote:am I missing something?

Code tags come to mind
 
Debby Miller
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yikes! Sorry!!
 
Debby Miller
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind on my question, I just didn't have the borders set right. Thanks for not burning me at the stake
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic