Search:

Type: Posts; User: curmudgeon

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    2,316

    Re: Replacing a JButton with an Image

    As Norm suggests, you can use a JLabel, or if you still want to use a JButton for its added functionality (mouse-over, change in icons based on state, ability to disable it), then yes the entire...
  2. Replies
    5
    Views
    2,316

    Re: Replacing a JButton with an Image

    JButtons can accept Images held by ImageIcons by simply calling setIcon(Icon icon) on the JButton. If you don't want the button's border, it can be removed as well.
Results 1 to 2 of 2