Hi, I have over 10 JRadio Buttons and there are some properties they all have in common, so instead of writing these properties one by one to each radio button, is there are way to set them once for all?
The properties I want to set for all radio buttons are:
radiButtonName.setOpaque(false);
radiButtonName.setContentAreaFilled(false);
radiButtonName.setBorderPainted(false);
radiButtonName.setBorder(null);
I tried using UIManager but it's acting strange and it doesn't support all of the properties i require.
I would like to avoid creating additional class and extend radio button. Because I would also like to apply this technique to other components to reduce the code written, this will make the code much shorter. Thank you in advance :)