1 20 21 22 27 28 package org.jdesktop.jdic.tray.internal; 29 30 31 import javax.swing.JPopupMenu ; 32 import javax.swing.Icon ; 33 import java.awt.event.ActionListener ; 34 import java.awt.Point ; 35 36 37 public interface TrayIconService { 38 public void addNotify(); 39 public void setPopupMenu(JPopupMenu menu); 40 public void setIcon(Icon i); 41 public void setCaption(String s); 42 public void setIconAutoSize(boolean b); 43 public void addActionListener(ActionListener al); 44 public void removeActionListener(ActionListener al); 45 public Point getLocationOnScreen(); 46 public void showBalloonMessage(String caption, String text, int type); 47 public void addBalloonActionListener(ActionListener al); 48 public void removeBalloonActionListener(ActionListener al); 49 } 50 | Popular Tags |