package org.jent.checksmtp;
import java.awt.Dimension;
+import java.awt.Point;
import java.awt.Toolkit;
import java.util.List;
jList1.setVisible(true);
}
this.setVisible(true);
+ toFront(); //from Tiger... setAlwaysOnTop(true);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
//If exsist configuration file, iconise at start up.
}//GEN-LAST:event_jButtonOKActionPerformed
private boolean restorePosition() {
- int x = this.getX(); //TODO: get real potition on screen.
- int y = this.getY();
+ Point locationPoint = getLocationOnScreen(); //TODO: IllegalComponentStateException
+ int x = locationPoint.x;
+ int y = locationPoint.y;
int h = this.getHeight();
int w = this.getWidth();
boolean modified = false;