Saturday, December 28, 2013

System Tray, clean transition?








On minimize, I set my JFrame's visibility to false, I have an actionlistener set up so when I double click the process in the System Tray, the JFrame because visible again. The only problem is that when I reset it to visible, it kind of just flashes on the screen. Is there a way I can make the JFrame kind of just 'UN-minimize' instead of just flashing on?








Here is the VERY simple code I am using:












Java Code:











if (e.getSource().equals(displayMenu) || e.getSource().equals(icon)) {
frame.setVisible(true);
frame.setState(JFrame.NORMAL);
}
















No comments:

Post a Comment