public void actionPerformed(ActionEvent event) {
System.exit(0);
}
};
Button show = new Button("show");
show.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
f2.setVisible(true);
}
});
//f.add(show);
Button hide = new Button("hide");
hide.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
f2.setVisible(false);
}
});
//f.add(hide);
Button back = new Button("back");
back.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
f2.toBack();
}
});
//f.add(back);
Button front = new Button("front");
front.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
f2.toFront();
}
});
//f.add(front);