MetalDesktopIconUI
, SynthDesktopIconUI
public class BasicDesktopIconUI extends DesktopIconUI
Modifier and Type | Class | Description |
---|---|---|
class |
BasicDesktopIconUI.MouseInputHandler |
Listens for mouse movements and acts on them. |
Modifier and Type | Field | Description |
---|---|---|
protected JInternalFrame.JDesktopIcon |
desktopIcon |
The instance of JInternalFrame.JDesktopIcon . |
protected JInternalFrame |
frame |
The instance of JInternalFrame . |
protected JComponent |
iconPane |
The title pane component used in the desktop icon. |
Constructor | Description |
---|---|
BasicDesktopIconUI() |
Constructs a new instance of BasicDesktopIconUI . |
Modifier and Type | Method | Description |
---|---|---|
protected MouseInputListener |
createMouseInputListener() |
Returns a new instance of MouseInputListener . |
static ComponentUI |
createUI |
Constructs a new instance of BasicDesktopIconUI . |
void |
deiconize() |
De-iconifies the internal frame. |
Insets |
getInsets |
Returns the insets. |
Dimension |
getMaximumSize |
Desktop icons can not be resized. |
protected void |
installComponents() |
Registers components. |
protected void |
installDefaults() |
Installs default properties. |
protected void |
installListeners() |
Registers listeners. |
protected void |
uninstallComponents() |
Unregisters components. |
protected void |
uninstallDefaults() |
Uninstalls default properties. |
protected void |
uninstallListeners() |
Unregisters listeners. |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
protected JInternalFrame.JDesktopIcon desktopIcon
JInternalFrame.JDesktopIcon
.protected JInternalFrame frame
JInternalFrame
.protected JComponent iconPane
public BasicDesktopIconUI()
BasicDesktopIconUI
.public static ComponentUI createUI(JComponent c)
BasicDesktopIconUI
.c
- a componentBasicDesktopIconUI
protected void installComponents()
protected void uninstallComponents()
protected void installListeners()
protected void uninstallListeners()
protected void installDefaults()
protected void uninstallDefaults()
protected MouseInputListener createMouseInputListener()
MouseInputListener
.MouseInputListener
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
c
- the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple componentsDimension
object or null
public Insets getInsets(JComponent c)
c
- a componentpublic void deiconize()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/basic/BasicDesktopIconUI.html