Re: flat JButtons



On May 31, 3:36 pm, "RVince" <rvince99 at hotmail dot com> wrote:
Does anyone know how to make a flat JButton, or a JButton whose perimiter
only shows when rolled over? Thanks.

The button class has setBorder() method that is inherited from
JComponent. It should help remove the borders and set it flat.

JButton button = new JButton("Click me");
button.setBorder(null);

Evans
http://jroller.com/evans
.


Quantcast