Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Text to the left of JRadioButton  RSS feed

 
Sarone Thach
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I seriously hope this is not a dumb question.
When you create a JRadioButton the text is displayed on the right hand side of the radiobutton. Is there away to make it be displayed on the left?
cheers, and thanks in advance.
Sarone
[ November 03, 2003: Message edited by: Sarone Thach ]
 
Sarone Thach
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh how about that, I answered my own question.
For anyone interested and didn't know:
jRadioButton1.setHorizontalTextPosition(SwingConstants.LEFT);
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!