//点击关闭或者小化时程序不会退出而是显示到托盘中 当然也可以是显示在任务栏中的 public class TrayApp { public static void main(String[] args) { Display display = new Display(); final Shell shell = new Shell(display); shell.setText("小化到系?托?"); //取消系?中??的??,????在托?不能?示 shell.setImage(display.getSystemImage(SW