RIGHT-justifying a RadioButton (in GridBagLayout) ?

Discussion in 'Java' started by Tom Parson, May 23, 2006.

  1. Tom Parson

    Tom Parson Guest

    How do I right-justify a radio button ?
    Particulary if I put a radio button in a cell of a GridBagLayout ?

    Tom
     
    Tom Parson, May 23, 2006
    #1
    1. Advertisements

  2. Tom Parson

    Daniel Dyer Guest

    On Tue, 23 May 2006 07:51:54 +0100, Tom Parson <> wrote:

    > How do I right-justify a radio button ?
    > Particulary if I put a radio button in a cell of a GridBagLayout ?
    >
    > Tom


    This question is best asked on comp.lang.java.gui (follow-ups set).

    Look into the setHorizontalAlignment method
    (http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/AbstractButton.html#setHorizontalAlignment(int)).

    Also, depending on exactly what you want to achieve you might need to set
    the anchor and fill properties of the GridBagConstraints.

    Dan.

    --
    Daniel Dyer
    http://www.dandyer.co.uk
     
    Daniel Dyer, May 23, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Passero

    grid or gridbaglayout

    Passero, Jul 2, 2003, in forum: Java
    Replies:
    3
    Views:
    3,325
    dhek bhun kho
    Jul 2, 2003
  2. me
    Replies:
    2
    Views:
    4,893
    Sudsy
    Jul 21, 2003
  3. David McCallum

    GridBagLayout Example

    David McCallum, Oct 23, 2003, in forum: Java
    Replies:
    0
    Views:
    808
    David McCallum
    Oct 23, 2003
  4. Darren
    Replies:
    5
    Views:
    1,480
    Darren
    Nov 28, 2005
  5. Swetha
    Replies:
    4
    Views:
    1,157
    Swetha
    Feb 5, 2006
  6. hg
    Replies:
    4
    Views:
    421
    Gabriel Genellina
    Jan 26, 2007
  7. mantrid

    Text box justifying

    mantrid, Jan 4, 2008, in forum: HTML
    Replies:
    2
    Views:
    454
    mantrid
    Jan 4, 2008
  8. Ronny
    Replies:
    0
    Views:
    244
    Ronny
    May 5, 2006
Loading...