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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -