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. Advertising

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:
    435
    Kevin Pors
    Jul 19, 2003
  2. Sandip Chitale
    Replies:
    0
    Views:
    684
    Sandip Chitale
    Aug 7, 2003
  3. Brian J. Sayatovic
    Replies:
    1
    Views:
    619
    Karsten Lentzsch
    Aug 13, 2003
  4. Scott Steiner

    Setting insets for a contentPane?

    Scott Steiner, Jul 19, 2005, in forum: Java
    Replies:
    2
    Views:
    6,677
    Vova Reznik
    Jul 19, 2005
  5. Allen
    Replies:
    0
    Views:
    644
    Allen
    Aug 14, 2006
Loading...

Share This Page