|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.Box
stella.jview.JPlusMinusBox
public class JPlusMinusBox
Class to provide to simple buttons: one with a "+" label on top, and a "-" button below. Class is a subclass from box and on construct layed out as stated. If constructed with two Colors, first determines text color, second background. A typical JPlusMinusBox may look like this:

| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.Box |
|---|
Box.AccessibleBox, Box.Filler |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static Font |
FONT
The font of the plus minus buttons. |
static Color |
INCRBACK
The default background color. |
static Color |
INCRFORE
The default foreground color. |
private JButton |
minus
The minus button. |
private JButton |
plus
The plus button. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
JPlusMinusBox()
Constructs and lays out a new plus-minus panel. |
|
JPlusMinusBox(Color fore,
Color back)
Constructs and lays out a new plus-minus panel. |
|
| Method Summary | |
|---|---|
JButton |
getMinus()
Returns the minus button. |
JButton |
getPlus()
Returns the plus button. |
| Methods inherited from class javax.swing.Box |
|---|
createGlue, createHorizontalBox, createHorizontalGlue, createHorizontalStrut, createRigidArea, createVerticalBox, createVerticalGlue, createVerticalStrut, getAccessibleContext, paintComponent, setLayout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Color INCRBACK
public static final Color INCRFORE
protected static final Font FONT
private JButton plus
private JButton minus
| Constructor Detail |
|---|
public JPlusMinusBox()
INCRBACK and INCRFORE.
public JPlusMinusBox(Color fore,
Color back)
| Method Detail |
|---|
public JButton getPlus()
public JButton getMinus()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||