paintComponent(Graphics2D) | () | The native paintComponent(g): the look's paint of the component (its background when opaque, then the kind's content; a bare JComponent… |
|---|
setBorder(Border?) | () | Sets the border: one of the prelude's (EmptyBorder.new(...), BorderFactory.createMatteBorder(...), ...), a Luau Border (any table wit… |
|---|
getBorder() | Border? | The border setBorder was given (the very table), or nil. |
|---|
isOpaque() | boolean | Whether the component paints every pixel of its bounds (its background first). |
|---|
setOpaque(boolean) | () | Makes the component paint its background, or not. |
|---|
setToolTipText(string?) | () | Sets the tooltip text (plain or <html>); a component with one takes the mouse from its parent's listeners. nil removes it. |
|---|
getToolTipText() | string? | The tooltip text setToolTipText set, or nil. |
|---|
putClientProperty(any, any) | () | Stores a client property (any key but nil); "html.disable", "FlatLaf.style", "FlatLaf.styleClass" and "JButton.buttonType" also c… |
|---|
getClientProperty(any) | any | The client property under key, the very value stored, or nil. |
|---|
setAlignmentX(number) | () | Sets the horizontal alignment a BoxLayout reads, clamped to 0..1. |
|---|
setAlignmentY(number) | () | Sets the vertical alignment a BoxLayout reads, clamped to 0..1. |
|---|
isRequestFocusEnabled() | boolean | Whether a press may give the component focus. |
|---|
setRequestFocusEnabled(boolean) | () | Whether a press may give the component focus. |
|---|
getInheritsPopupMenu() | boolean | Whether a child with no popup menu of its own shows this one. |
|---|
setInheritsPopupMenu(boolean) | () | Whether the component shows its parent's popup menu when it has none. |
|---|
getFontMetrics(Font) | FontMetrics | The metrics font measures with in a component: the look's text rendering (the fonts antialiased as their gasp table says), so a width c… |
|---|
getComponentPopupMenu() | Component? | The popup menu shown on a popup trigger (a right click) over it: its own, or with setInheritsPopupMenu(true) its parent's. |
|---|
setComponentPopupMenu(JPopupMenu?) | () | Shows popup on a popup trigger (a right click) over it, at the pointer; nil removes it. The component keeps the menu alive. |
|---|
updateUI() | () | Re-installs the look's defaults the plugin has not set, then lays out and repaints as the kind's look does. |
|---|
getInputMap(condition: number?) | InputMap | The component's InputMap for WHEN_FOCUSED (or the condition given), the same one each call. |
|---|
getActionMap() | ActionMap | The component's ActionMap, the same one each call. |
|---|
new() | JComponent | A new lightweight component. |
|---|
init(JComponent) | () | A new lightweight component. |
|---|
isInstance(any) | boolean | Whether obj is a JComponent object, a class(JComponent) subclass's included. |
|---|