Exemplo n.º 1
0
 // region Public Methods
 public void showDialog(Component owner) {
   this.setComponentOrientation(owner.getComponentOrientation());
   this.pack();
   this.setResizable(false);
   this.setLocationRelativeTo(owner);
   this.setVisible(true);
 }
Exemplo n.º 2
0
 /*
  * Convenience function for determining ComponentOrientation.  Helps us
  * avoid having Munge directives throughout the code.
  */
 static boolean isLeftToRight(Component c) {
   return c.getComponentOrientation().isLeftToRight();
 }