|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--CSE115.Dialogs.ColorDialog
A dialog for choosing a color.
Constructor Summary | |
ColorDialog(Container container)
The constructor where no default directory is specified. |
|
ColorDialog(Container container,
Color initialColor)
The constructor where no default directory is specified. |
Method Summary | |
void |
appear()
Call this method to make the file dialog box appear. |
void |
approvePressed(Color color)
Called when the user chooses a color. |
void |
cancelPressed()
Called when the Cancel button is pressed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ColorDialog(Container container)
container
- the container that this should show above;
this will remain hidden until asked to appear
Note: This container cannot be an NGP.Contaiers.Framepublic ColorDialog(Container container, Color initialColor)
container
- the container that this should show above;
this will remain hidden until asked to appear
Note: This container cannot be an NGP.Contaiers.FrameinitialColor
- the initial color selected in the dialog.Method Detail |
public void appear()
approvePressed
or cancelPressed
will be automatically called.
public void approvePressed(Color color)
color
- this will be the color that the user selectedpublic void cancelPressed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |