예제 #1
0
 public void setVisible(boolean b) {
   if (b) checkBackground();
   super.setVisible(b);
   tf.setVisible(b);
   decrementButton.setVisible(b);
   incrementButton.setVisible(b);
   enterButton.setVisible(b);
   repaint();
 }
예제 #2
0
 public void repaint() {
   text = tf.getText();
   Graphics g = getGraphics();
   if (g != null) {
     recalcPositions(g);
     g.dispose();
   }
   super.repaint();
 }
예제 #3
0
 public void paintComponents(Graphics g) {
   if (g instanceof PrintGraphics) return;
   else super.paintComponents(g);
 }