/[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

revision 862 by alfonx, Sat May 22 01:24:46 2010 UTC revision 1137 by alfonx, Fri Oct 15 15:21:36 2010 UTC
# Line 32  package skrueger.swing; Line 32  package skrueger.swing;
32  import java.awt.BorderLayout;  import java.awt.BorderLayout;
33  import java.awt.Component;  import java.awt.Component;
34  import java.awt.FlowLayout;  import java.awt.FlowLayout;
 import java.awt.Window;  
35  import java.awt.event.ActionEvent;  import java.awt.event.ActionEvent;
36  import java.awt.event.ActionListener;  import java.awt.event.ActionListener;
37  import java.awt.event.KeyEvent;  import java.awt.event.KeyEvent;
# Line 98  public class TranslationAskJDialog exten Line 97  public class TranslationAskJDialog exten
97           * 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
98           * 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
99           * 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.  
100           */           */
101          public TranslationAskJDialog(Component owner,          public TranslationAskJDialog(Component owner,
102                          final JComponent... translationEditJPanels) {                          final JComponent... translationEditJPanels) {
103                  super(SwingUtil.getParentWindow(owner));                  super(owner);
104                  setComponents(translationEditJPanels);                  setComponents(translationEditJPanels);
105          }          }
106    
# Line 122  public class TranslationAskJDialog exten Line 116  public class TranslationAskJDialog exten
116           * Using this constructor, you have to call setComponents afterwards.           * Using this constructor, you have to call setComponents afterwards.
117           */           */
118          public TranslationAskJDialog(Component owner) {          public TranslationAskJDialog(Component owner) {
119                  super(SwingUtil.getParentWindow(owner));                  super(owner);
120          }          }
121    
122          /**          /**

Legend:
Removed from v.862  
changed lines
  Added in v.1137

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26