linksoftwrite
linksoftwrite

Reputation: 65

Java button's appearance style during holding down

// plain green button
flatButton.setBorderPainted (false);
flatButton.setBackground (Color.green);
flatButton.setSize (100, 75);

While holding the button, its color change to blue. How to make keep green color during holding down?

Upvotes: 0

Views: 45

Answers (1)

camickr
camickr

Reputation: 324137

flatButton.setContentAreaFilled( false );

Upvotes: 1

Related Questions