dcsimg
How to get the JRadioButton text on the left side of the JRadioButton
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, May 27, 2002 09:11 PM

I have a JPanel, where in I have used a JRadioButton with the constructor


JRadioButton button = new JRadioButton("Radio");


Now when this radio button shows up on the JPanel, the text of the JRadioButton is on the right side of the radio button by default, but I want it to be on the left side of the radiobutton. How can I do that?

Re: How to get the JRadioButton text on the left side of the JRadioButton

Posted By:   Jay_Gee  
Posted On:   Thursday, May 30, 2002 10:13 PM

Hi just do this :



jButton1.setHorizontalTextPosition(SwingConstants.LEADING);





I think this will work, if not tell me



Rgrds,

JG
About | Sitemap | Contact