Professional Documents
Culture Documents
Private Void ChangeColor
Private Void ChangeColor
void
changeColor(
) {
Color color = lbText.getForeground();
if (color == Color.BLACK) lbText.setForeground(Color.RED);
else if (color == Color.RED) lbText.setForeground(Color.YELLOW);
else if (color == Color.YELLOW)
lbText.setForeground(Color.BLUE);
else if (color == Color.BLUE) lbText.setForeground(Color.GREEN);
else lbText.setForeground(Color.BLACK);
}