Thomas Schaller
Thomas Schaller

Reputation: 21

Remove focus rectangle from radiobutton caption

I want to remove the dotted focus rectangle of the caption from a radio button in my C++ Builder XE7 application, when the button is pressed. Is there a possibility to do this?

I want to remove this focus rectangle:

image

Upvotes: 2

Views: 246

Answers (1)

user9738079
user9738079

Reputation:

You just need to use this method below:

JSpinner s1=new JSpinner("Example")
s1.setFocusPainted(false);

Upvotes: 0

Related Questions