java - JRadioButton: how to replace text by IconImage? -


i want replace text in radio button list icon.

i've tried this:

rotatebutton = new jradiobutton(rotateicon.getimage()); 

but replaces radio button , text icon. keep radio button , display image.

what should do?


what i'm getting is:

enter image description here

but want end this:

enter image description here

public jradiobutton(string text, icon icon) , simple example here


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -