about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/3/Java/ButtonTest.java
blob: 51dd4d29966ad957d8bab72f80e2c5c39177557b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class ButtonTest
{
  public static void main(String... args)
  {
    Button button = new Button("foo", "bar");
    System.out.println(button);
    button.setLabel("fu");
    button.setColor("baz");
    button.dePress();
    System.out.println(button);
  }
}