Ejemplo n.º 1
0
 public void paint(Graphics g) {
   super.paint(g);
   if (firstPaint) {
     if (numberField != null && IJ.isMacOSX()) {
       // work around for bug on Intel Macs that caused 1st field to be un-editable
       TextField tf = (TextField) (numberField.elementAt(0));
       tf.setEditable(false);
       tf.setEditable(true);
     }
     if (numberField == null && stringField == null) okay.requestFocus();
     firstPaint = false;
   }
 }
Ejemplo n.º 2
0
 public void repaint() {
   super.repaint();
   if (imagePanels != null) {
     for (int i = 0; i < imagePanels.size(); i++) ((ImagePanel) imagePanels.get(i)).repaint();
   }
 }
Ejemplo n.º 3
0
 /* Display the dialog at the specified location. */
 public void setLocation(int x, int y) {
   super.setLocation(x, y);
   centerDialog = false;
 }