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