Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

GridBagLayout problem  RSS feed

 
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I've written some code below to add some Buttons and JTextFields to a frame. The submit button is in the wrong place. I would like the submit button to be 2 cells taller, so that it begins at the top of 10 and ends at the bottom of 70, to create a rectangle with the JTextFields.
I've tried several ways but have only been able to do this using empty JPanels (but I don't like this method since it leaves small grey squares on the screen, which show up when you are using a background image).

The code is below, any ideas are appreciated

 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
see if this is any closer to what you're trying to do

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!