How can I hide button border on AWT Button?

  • Thread starter steven robinson
  • Start date
S

steven robinson

Hope you guys can help.
I want to hide the button border on a java awt button not a JButton. I
know on JButton the method is button.setBorderPainted(false); but how
can I get the same effect on an awt button class?

The reason I have to use button instead of jbutton is because when my
mouse rolls over the jbutton even though I have
button.setRolloverEnabled(false); defined, I get a noticeable re-paint
of the jbutton, even though this is quick it is causing problems in my
application. The application is an audio player so the constant
re-drawing of buttons when I move my mouse quickly over all my buttons
is causing nasty breaks in my audio stream.

Any help would be appreciated. Help with stopping the redrawing of the
jbutton or how to hide the border of an awt button.

Thanks all
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top