[Schmitzm-commits] r206 - trunk/src/skrueger/swing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 9 18:45:27 CEST 2009
Author: alfonx
Date: 2009-07-09 18:45:26 +0200 (Thu, 09 Jul 2009)
New Revision: 206
Modified:
trunk/src/skrueger/swing/TranslationAskJDialog.java
Log:
* Removed many now useless SwingUtil.getParentWindow( Component ) statemant because more and more of the GUI takes Component as the parent GUI parameter.
* Ctrl-Shift-Organize
Modified: trunk/src/skrueger/swing/TranslationAskJDialog.java
===================================================================
--- trunk/src/skrueger/swing/TranslationAskJDialog.java 2009-07-09 16:40:49 UTC (rev 205)
+++ trunk/src/skrueger/swing/TranslationAskJDialog.java 2009-07-09 16:45:26 UTC (rev 206)
@@ -85,8 +85,7 @@
*/
public TranslationAskJDialog(Component owner,
final JComponent... translationEditJPanels) {
- super(owner instanceof Window ? (Window) owner : SwingUtil
- .getParentWindow(owner));
+ super(SwingUtil.getParentWindow(owner));
setComponents(translationEditJPanels);
}
@@ -101,7 +100,7 @@
* to be set visible afterwards.<br/>
* Using this constructor, you have to call setComponents afterwards.
*/
- public TranslationAskJDialog(Window owner) {
+ public TranslationAskJDialog(Component owner) {
this(owner, new JComponent[] {});
}
More information about the Schmitzm-commits
mailing list