0

I have right to left JFrame in swing with netbeans. there is radio button in it which is setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT). When I execute the program the orientation is fine. but in GUI builder it shows like this:

enter image description here

Is this netbeans problem? Can it be resolved?

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Majid Azimi
  • 5,575
  • 13
  • 64
  • 113
  • for `JCheckBox` and `JRadioButton` ??? you have to ??? 1) programatically by using `SwingConstants.LEFT` or `RIGHT`, 2) apply the `ComponentOrientation` to `JCheckBox` and `JRadioButton` too, never tried,sorry ... – mKorbel Sep 26 '12 at 07:20

2 Answers2

1

Looks like a bug in Netbeans Matisse. You can create a issue here: http://netbeans.org/community/issues.html

Hendrik Ebbers
  • 2,570
  • 19
  • 34
1

You could try calling applyComponentOrientation() on the Container that has the buttons. Since you're using the GUI editor, you'll probably have to use custom code.

Catalina Island
  • 7,027
  • 2
  • 23
  • 42