JavaFx 添加系统托盘图标

 //添加系统托盘图标.
        SystemTray tray = SystemTray.getSystemTray();
        BufferedImage image = ImageIO.read(mainUi.class
                .getResourceAsStream("orange-ball.png"));
        trayIcon = new TrayIcon(image, "自动备份工具");
        trayIcon.setToolTip("自动备份工具");
        tray.add(trayIcon);
//	trayIcon.addMouseListener(sj);

JavaFx 添加系统盘图标

你可能感兴趣的:(java,gui,javafx)