• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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!
 
Sheriff
Posts: 21759
102
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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
Boost this thread!