JButton Insets

Discussion in 'Java' started by Ike, Aug 29, 2003.

  1. Ike

    Ike Guest

    Insets insets = jButton.getInsets();
    //top=5, left = 17, bottom = 5, right = 17
    insets.left=insets.top;
    insets.right=insets.bottom;
    insets = jButton.getInsets();
    //top=5, left = 17, bottom = 5, right = 17

    Why? How can I change the size of a JButtons insets? -Ike
     
    Ike, Aug 29, 2003
    #1
    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. Bao

    Help JButton

    Bao, Jul 18, 2003, in forum: Java
    Replies:
    2
    Views:
    550
    Kevin Pors
    Jul 19, 2003
  2. Brian J. Sayatovic
    Replies:
    1
    Views:
    756
    Karsten Lentzsch
    Aug 13, 2003
  3. James
    Replies:
    2
    Views:
    624
    Moshe Sayag
    Nov 11, 2003
  4. kevinc

    Jbutton and text

    kevinc, Nov 24, 2003, in forum: Java
    Replies:
    5
    Views:
    1,012
    Nosnos
    Nov 26, 2003
  5. Andreas Böhme

    how to derive from JButton

    Andreas Böhme, Nov 30, 2003, in forum: Java
    Replies:
    5
    Views:
    820
    Anthony Borla
    Dec 2, 2003
  6. Cloud Burst

    can JButton text span a line?

    Cloud Burst, Dec 15, 2003, in forum: Java
    Replies:
    3
    Views:
    3,232
    Alex Hunsley
    Dec 15, 2003
  7. Scott Steiner

    Setting insets for a contentPane?

    Scott Steiner, Jul 19, 2005, in forum: Java
    Replies:
    2
    Views:
    7,246
    Vova Reznik
    Jul 19, 2005
  8. Allen
    Replies:
    0
    Views:
    791
    Allen
    Aug 14, 2006
Loading...