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