• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

GUI help

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am designing my first GUI using the Gridbaglayout. I have a content panels called "Shipping Method" with two radio buttons, Ground and Air Express. i have the two radio buttons spaced out properly. I was wondering how I can get the space between the 'ground' radio button and the border of the content panel to decrease? Like there is alot of empty space between the 'Ground' radio button the border surrounding my content panel called "Shipping Method" on both the top and bottom. I tried playing around with the insets, but I could not get it to work. Any help would be appreciated. My code is below (I have to use gridbaglayout)




[ March 09, 2005: Message edited by: Mark Spritzler ]
[ March 09, 2005: Message edited by: Benjamin B ]
 
Ranch Hand
Posts: 1071
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A couple things:

First when you post code use the code tags (button below where you type) and you can go back and edit your post by clicking on the paper and pencil icon.

Second I would recommend skipping the GridBagLayout and get JGoodies Forms.

I'll post some more ideas when I get home.

P.S. Oops, Sorry I missed the part about having to use GBL.
[ March 09, 2005: Message edited by: Steven Bell ]
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"soccer bum"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
[ March 09, 2005: Message edited by: Mark Spritzler ]
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure that I can be much help without compiling and running your program to see what is going on. Unfortunately, I can't do that at the moment as I'm not at my own computer that I typically use for development. With that said, you may want to mosey over to our GUI forum where they discuss such intricacies. You are more likely to find someone there who can help.

Layne

p.s. Could you also edit your code so the lines aren't so long? I find horizontal scrolling somewhat annoying.
[ March 09, 2005: Message edited by: Layne Lund ]
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
add this line

 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Benjamin B

Welcome to JavaRanch! Unfortunately a last initial does not meet the requirements of the JavaRanch Naming Policy which requires a first and last name separated by a space.
You can change it here.

Thanks!
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, can't help you with your problem - I try to avoid GridBagLayout whereever I can.

But when you get too frustrated, you might want to take a look at http://madbean.com/blog/2004/17/totallygridbag.html for a relief.

Moving to the Swing forum...
 
So you made a portal in time and started grabbing people. This tiny ad thinks that's rude:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic