public Dimension getSize ()

Returns the size, in pixels, of the space that the tray icon occupies in the system tray. For the tray icon that is not yet added to the system tray, the returned size is equal to the result of the SystemTray.getTrayIconSize.

Returns:  the size of the tray icon, in pixels

See also:
TrayIcon.setImageAutoSize(boolean), java.awt.Image, TrayIcon.getSize()