您的行李只有两个包吗?
尽管在实际的插件中,您可以选择用不同的包对相关的类进行分组,但在本例中,只有两个类,所以不必这样做。
While you might choose to have separate packages for grouping related classes in a real-world plug-in, in this case, there will be only two classes, so there's no need.
实际上,整个or g . jdesktop . jdic . tray包只有两个类:systemtray抽象了系统托盘本身;TrayIcon抽象了系统托盘中的单个图标。
In fact, the entire org.jdesktop.jdic.tray package has only two classes: SystemTray, which abstracts the system tray itself, and TrayIcon, which abstracts the individual ICONS in the system tray.
应用推荐