|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel containers.Panel
public class Panel
A slight modification of the JPanel adding Color and Dimension accessor/mutators
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Panel()
Creates a new instance of Rest |
|
Panel(boolean isDoubleBuffered)
Creates a new instance of Rest |
|
Panel(LayoutManager layout)
Creates a new instance of Rest |
|
Panel(LayoutManager layout,
boolean isDoubleBuffered)
Creates a new instance of Panel |
Method Summary | |
---|---|
Color |
getColor()
returns the color of this panel |
Dimension |
getDimension()
gets the dimension of this panel |
void |
setColor(Color c)
sets the color of this panel |
void |
setDimension(Dimension d)
Strictly sets the dimension of this panel to be the given dimension |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Panel()
public Panel(LayoutManager layout)
layout
- public Panel(boolean isDoubleBuffered)
isDoubleBuffered
- public Panel(LayoutManager layout, boolean isDoubleBuffered)
layout
- isDoubleBuffered
- Method Detail |
---|
public void setColor(Color c)
c
- the color to set this panel topublic Color getColor()
public void setDimension(Dimension d)
d
- the dimension to set the panel to bepublic Dimension getDimension()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |