home *** CD-ROM | disk | FTP | other *** search
- package javax.swing;
-
- import java.beans.PropertyChangeEvent;
- import java.beans.PropertyChangeListener;
-
- class JToolBar$PropertyChangeHandler implements PropertyChangeListener {
- // $FF: synthetic field
- private final JToolBar this$0;
-
- JToolBar$PropertyChangeHandler(JToolBar var1) {
- this.this$0 = var1;
- }
-
- public void propertyChange(PropertyChangeEvent var1) {
- String var2 = var1.getPropertyName();
- if (var2.equals("componentOrientation")) {
- if (SwingUtilities.isLeftToRight(this.this$0)) {
- this.this$0.setLayout(new BoxLayout(this.this$0, 0));
- } else {
- this.this$0.setLayout(new JToolBar.RightToLeftToolBarLayout((JToolBar.1)null));
- }
- }
-
- }
- }
-