public class CustomWidget extends Widget
In addition to the event types generated by all Widgets, CustomWidgets generate the following event types:
Constructor and Description |
---|
CustomWidget()
Create a new CustomWidget.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOpaque()
Determine whether this Widget is set to be opaque.
|
void |
setMaximumSize(java.awt.Dimension size)
Set the largest size at which this Widget can reasonably be drawn.
|
void |
setMinimumSize(java.awt.Dimension size)
Set the smallest size at which this Widget can reasonably be drawn.
|
void |
setOpaque(boolean opaque)
Set whether this Widget should be opaque.
|
void |
setPreferredSize(java.awt.Dimension size)
Set the preferred size at which this Widget will look best.
|
addEventLink, dispatchEvent, getBackground, getBounds, getComponent, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible
addEventLink, addEventLink, removeEventLink
public void setMinimumSize(java.awt.Dimension size)
public void setMaximumSize(java.awt.Dimension size)
public void setPreferredSize(java.awt.Dimension size)
public boolean isOpaque()
public void setOpaque(boolean opaque)
Written by Peter Eastman.