• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

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

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22662
127
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yikes! Sorry!!
 
Debby Miller
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic