/[schmitzm]/trunk/src/skrueger/swing/TranslationAskJDialog.java
ViewVC logotype

Diff of /trunk/src/skrueger/swing/TranslationAskJDialog.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

branches/2.0-RC1/src/skrueger/swing/TranslationAskJDialog.java revision 604 by alfonx, Wed Dec 9 14:15:53 2009 UTC trunk/src/skrueger/swing/TranslationAskJDialog.java revision 1136 by alfonx, Fri Oct 15 01:08:46 2010 UTC
# Line 25  Line 25 
25   *   *
26   * Contributors:   * Contributors:
27   *     Martin O. J. Schmitz - initial API and implementation   *     Martin O. J. Schmitz - initial API and implementation
28   *     Stefan A. Krüger - additional utility classes   *     Stefan A. Tzeggai - additional utility classes
29   ******************************************************************************/   ******************************************************************************/
30  package skrueger.swing;  package skrueger.swing;
31    
# Line 98  public class TranslationAskJDialog exten Line 98  public class TranslationAskJDialog exten
98           * This class handles the cancel button itself. You may still want to listen           * This class handles the cancel button itself. You may still want to listen
99           * to PROPERTY_APPLY_AND_CLOSE events. This dialog is modal. The dialog has           * to PROPERTY_APPLY_AND_CLOSE events. This dialog is modal. The dialog has
100           * to be set visible afterwards.<br/>           * to be set visible afterwards.<br/>
          *  
          * @param owner  
          *            A component of the GUI that this dialog is related to. If no  
          *            {@link Window} is passed, SwingUtil.getParentWindow(owner) is  
          *            called.  
101           */           */
102          public TranslationAskJDialog(Component owner,          public TranslationAskJDialog(Component owner,
103                          final JComponent... translationEditJPanels) {                          final JComponent... translationEditJPanels) {
104                  super(SwingUtil.getParentWindow(owner));                  super(owner);
105                  setComponents(translationEditJPanels);                  setComponents(translationEditJPanels);
106          }          }
107    
# Line 122  public class TranslationAskJDialog exten Line 117  public class TranslationAskJDialog exten
117           * Using this constructor, you have to call setComponents afterwards.           * Using this constructor, you have to call setComponents afterwards.
118           */           */
119          public TranslationAskJDialog(Component owner) {          public TranslationAskJDialog(Component owner) {
120                  super(SwingUtil.getParentWindow(owner));                  super(owner);
121          }          }
122    
123          /**          /**
# Line 162  public class TranslationAskJDialog exten Line 157  public class TranslationAskJDialog exten
157                  setTitle(SwingUtil.R("TranslationAskJDialog.Title"));                  setTitle(SwingUtil.R("TranslationAskJDialog.Title"));
158                  setModal(true);                  setModal(true);
159                  pack();                  pack();
160                  SwingUtil.centerFrameOnScreen(this);                  SwingUtil.setRelativeFramePosition(this, getParent(), .5, .5);
161          }          }
162    
163          public void setOptionalButtons(JButton... optionalButtons) {          public void setOptionalButtons(JButton... optionalButtons) {

Legend:
Removed from v.604  
changed lines
  Added in v.1136

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26