示例#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;
   }
 }
示例#2
0
 public void repaint() {
   super.repaint();
   if (imagePanels != null) {
     for (int i = 0; i < imagePanels.size(); i++) ((ImagePanel) imagePanels.get(i)).repaint();
   }
 }
示例#3
0
 /* Display the dialog at the specified location. */
 public void setLocation(int x, int y) {
   super.setLocation(x, y);
   centerDialog = false;
 }