Creating an invisible button in Java Swing

Posted by AniDev on Stack Overflow See other posts from Stack Overflow or by AniDev
Published on 2010-12-31T21:09:48Z Indexed on 2010/12/31 21:54 UTC
Read the original article Hit count: 230

Filed under:
|
|
|

Hello,

I have seen many times on Java Swing GUIs buttons that look like images until the mouse rolls over them. They appear to not have their content area filled. When the mouse rolls over them, the content area fills in but the button looks as though the mouse is not hovering over it. An example of this would be the toolbar of buttons used to activate each demo in SwingSet2.

How is this effect possible?

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about gui