File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Help w/ custom JButton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help w/ custom JButton" Watch "Help w/ custom JButton" New topic

Help w/ custom JButton

Tom Collins

Joined: Mar 13, 2006
Posts: 10
I am still somewhat new to Java and I am trying to make some custom shaped buttons. I have about 30 various "invisible" buttons I am trying to make. I have figured out how to resize and make invisible a normal JButton, but now I need to make some odd shaped buttons.

I would perfer to make the shape (basically the border) in photoshop and then turn that picture into a clickable button. I think that the shapes might be a little to difficult to draw in Java. One thing I would like to duplicate from my invisible JButtons is the ablility to show a doubled border when the mouse rolls over the button.

The code I'm using to make the Jbuttons invisible is:
but the border is NOT set to null.

I would appriciate any suggestions that you may have.

Tom Collins

Me fail english?! That's unpossible!
I agree. Here's the link:
subject: Help w/ custom JButton
It's not a secret anymore!