SystemTrayHandler.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:Processing-Arduino-Light-Controller 作者:
private void addExitItem( PopupMenu popup )
{
    MenuItem exit = new MenuItem( "Exit" );
    exit.addActionListener( new ActionListener()
    {
        @Override
        public void actionPerformed( ActionEvent e )
        {
            // Exits the program
            // plugin.resetLeds();
            // TODO: Decide whether or not LEDS should turn off when
            // program exits.
            //      Pros: You can set a color and then quit the program
            //      Cons: For LEDS to turn off, user has to unload plugins
            System.exit(0);
        }
    });
    popup.add( exit );
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号