Пример #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);
 }