Examples of applyComponentOrientation()


Examples of javax.swing.JDialog.applyComponentOrientation()

  public static void showDialog(JComponent component, boolean modal) {
    JDialog dialog = new JDialog(MainAppFrame.getInstance(),
        modal);
    dialog.setTitle(component.getName());
    dialog.add(component);
    dialog.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
    dialog.pack();
    dialog.setLocationRelativeTo(null);
    dialog.setVisible(true);

  }
View Full Code Here

Examples of javax.swing.JFileChooser.applyComponentOrientation()

        {
          ComponentOrientation o = (ComponentOrientation) e.getNewValue();
          JFileChooser cc = (JFileChooser) e.getSource();
          if (o != (ComponentOrientation) e.getOldValue())
          {
            cc.applyComponentOrientation(o);
          }
          if (detailsTable != null)
          {
            detailsTable.setComponentOrientation(o);
            detailsTable.getParent().getParent().setComponentOrientation(o);
View Full Code Here

Examples of javax.swing.JFrame.applyComponentOrientation()

    @Action
    public void toggleCO() {
        JFrame frame = getMainFrame();
        ComponentOrientation current = frame.getComponentOrientation();
        if (current == ComponentOrientation.LEFT_TO_RIGHT) {
            frame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        } else {
            frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);

        }
        frame.getRootPane().revalidate();
View Full Code Here

Examples of javax.swing.JFrame.applyComponentOrientation()

        JFrame frame = getMainFrame();
        ComponentOrientation current = frame.getComponentOrientation();
        if (current == ComponentOrientation.LEFT_TO_RIGHT) {
            frame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
        } else {
            frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);

        }
        frame.getRootPane().revalidate();
        frame.invalidate();
        frame.validate();
View Full Code Here

Examples of javax.swing.JLabel.applyComponentOrientation()

//            p.y += 55;
//        }
//        p.y += 20; // 20 puntitos extra de separacion.
       
        JLabel lbl = new JLabel(AppLocal.getIntString(KeyText));
        lbl.applyComponentOrientation(menu.getComponentOrientation());
        lbl.setBorder(new MatteBorder(new Insets(0, 0, 1, 0), new Color(0, 0, 0)));
//        lbl.setSize(670, 20);
//        lbl.setLocation(p);
//        p.y += 35;
//        comp.add(lbl); 
View Full Code Here

Examples of javax.swing.JLabel.applyComponentOrientation()

//            p.y += 55;
//        }
//        p.y += 20; // 20 puntitos extra de separacion.
       
        JLabel lbl = new JLabel(AppLocal.getIntString(KeyText));
        lbl.applyComponentOrientation(menu.getComponentOrientation());
        lbl.setBorder(new MatteBorder(new Insets(0, 0, 1, 0), new Color(0, 0, 0)));
//        lbl.setSize(670, 20);
//        lbl.setLocation(p);
//        p.y += 35;
//        comp.add(lbl); 
View Full Code Here

Examples of javax.swing.JOptionPane.applyComponentOrientation()

        }
        else if (changeName == "componentOrientation") {
          ComponentOrientation o = (ComponentOrientation)e.getNewValue();
          JOptionPane op = (JOptionPane)e.getSource();
          if (o != (ComponentOrientation)e.getOldValue()) {
            op.applyComponentOrientation(o);
          }
        }
      }
    }
  }
View Full Code Here

Examples of javax.swing.JOptionPane.applyComponentOrientation()

        }
        else if (changeName == "componentOrientation") {
          ComponentOrientation o = (ComponentOrientation)e.getNewValue();
          JOptionPane op = (JOptionPane)e.getSource();
          if (o != (ComponentOrientation)e.getOldValue()) {
            op.applyComponentOrientation(o);
          }
        }
      }
    }
  }
View Full Code Here

Examples of javax.swing.JOptionPane.applyComponentOrientation()

        }
        else if (changeName == "componentOrientation") {
          ComponentOrientation o = (ComponentOrientation)e.getNewValue();
          JOptionPane op = (JOptionPane)e.getSource();
          if (o != (ComponentOrientation)e.getOldValue()) {
            op.applyComponentOrientation(o);
          }
        }
      }
    }
  }
View Full Code Here

Examples of javax.swing.JPanel.applyComponentOrientation()

        currententrypanel = null;
       
        JPanel titlepanel = new JPanel();
        titlepanel.setLayout(new java.awt.BorderLayout());
        titlepanel.add(title, java.awt.BorderLayout.CENTER);    
        titlepanel.applyComponentOrientation(getComponentOrientation());
       
        menucontainer.add(titlepanel);
    }
   
    public void addEntry(Component entry) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.