2012-09-26 27 views
0

我有權利通過netbeans在swing中使用JFrame。有單選按鈕,它是setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT)。當我執行程序時,方向很好。但在GUI生成它這樣表示:setComponentOrientation對錶單設計器沒有影響

enter image description here

這是NetBeans的問題嗎?它可以解決嗎?

+0

???你必須 ??? 1)通過使用'SwingConstants.LEFT'或'RIGHT'編程方式,2)將'ComponentOrientation'應用於'JCheckBox'和'JRadioButton'也從未嘗試,抱歉... – mKorbel

回答

1

你可以嘗試呼叫applyComponentOrientation()Container有按鈕。由於您使用的是GUI編輯器,因此您可能必須使用自定義代碼。 「JCheckBox」和「JRadioButton」的