public Component newInstance() {
Button button = new Button();
switch ((int) (Math.random() * 3)) {
case 0:
button.setText("Button #" + ++count);
button.setBackground(new Color((int) (16777216 * Math.random())));
break;
case 1:
button.setText("This is an example button.");
button.setForeground(new Color((int) (16777216 * Math.random()) & 0x7f7f7f));
button.setBackground(new Color((int) (16777216 * Math.random()) | 0xb0b0b0));
button.setBorder(new Border(1, new Color((int) (16777216 * Math.random()) | 0xb3b3b3), Border.STYLE_OUTSET));
button.setInsets(INSETS_10_5);
break;
case 2:
button.setText("Initially Plain Button");
break;