Methods Summary |
---|
public static javax.swing.plaf.ComponentUI | createUI(javax.swing.JComponent c)
return new WindowsDesktopIconUI();
|
public java.awt.Dimension | getMinimumSize(javax.swing.JComponent c)Windows desktop icons are restricted to a width of 160 pixels by
default. This value is retrieved by the DesktopIcon.width property.
Dimension dim = super.getMinimumSize(c);
dim.width = width;
return dim;
|
public java.awt.Dimension | getPreferredSize(javax.swing.JComponent c)
// Windows desktop icons can not be resized. Therefore, we should
// always return the minimum size of the desktop icon. See
// getMinimumSize(JComponent c).
return getMinimumSize(c);
|
protected void | installComponents()
iconPane = new WindowsInternalFrameTitlePane(frame);
desktopIcon.setLayout(new BorderLayout());
desktopIcon.add(iconPane, BorderLayout.CENTER);
if (XPStyle.getXP() != null) {
desktopIcon.setBorder(null);
}
|
public void | installDefaults()
super.installDefaults();
width = UIManager.getInt("DesktopIcon.width");
|
public void | installUI(javax.swing.JComponent c)
super.installUI(c);
c.setOpaque(XPStyle.getXP() == null);
|
public void | uninstallUI(javax.swing.JComponent c)
WindowsInternalFrameTitlePane thePane =
(WindowsInternalFrameTitlePane)iconPane;
super.uninstallUI(c);
thePane.uninstallListeners();
|