|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.util.swing.ScrollableDialog
public class ScrollableDialog
Manages a JDialog with a scrollable text area and a button panel.
| Field Summary | |
|---|---|
protected JPanel |
_buttonPanel
Panel of buttons at the bottom of this dialog. |
protected JDialog |
_dialog
JDialog managed by this component. |
protected JTextArea |
_textArea
JTextArea contained in a scroll pane in this dialog. |
protected JScrollPane |
_textScroll
ScrollPane that contains the text area. |
static int |
DEFAULT_HEIGHT
Default height for all ScrollableDialogs. |
static int |
DEFAULT_WIDTH
Default width for all ScrollableDialogs. |
| Constructor Summary | |
|---|---|
ScrollableDialog(JFrame parent,
String title,
String header,
String text)
Creates a new ScrollableDialog with the default width and height. |
|
ScrollableDialog(JFrame parent,
String title,
String header,
String text,
boolean wrap)
Creates a new ScrollableDialog with the default width and height. |
|
ScrollableDialog(JFrame parent,
String title,
String header,
String text,
int width,
int height)
Creates a new ScrollableDialog. |
|
ScrollableDialog(JFrame parent,
String title,
String header,
String text,
int width,
int height,
boolean wrap)
Creates a new ScrollableDialog. |
|
| Method Summary | |
|---|---|
protected void |
_addButtons()
Adds buttons to this dialog's button panel. |
void |
setTextFont(Font f)
Sets the font for the text area in this dialog. |
void |
show()
Shows this dialog. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
protected JDialog _dialog
protected JTextArea _textArea
protected JPanel _buttonPanel
protected JScrollPane _textScroll
| Constructor Detail |
|---|
public ScrollableDialog(JFrame parent,
String title,
String header,
String text)
parent - Parent frame for this dialogtitle - Title for this dialogheader - Message to display at the top of this dialogtext - Text to insert into the scrollable JTextArea
public ScrollableDialog(JFrame parent,
String title,
String header,
String text,
int width,
int height)
parent - Parent frame for this dialogtitle - Title for this dialogheader - Message to display at the top of this dialogtext - Text to insert into the scrollable JTextAreawidth - Width for this dialogheight - Height for this dialog
public ScrollableDialog(JFrame parent,
String title,
String header,
String text,
boolean wrap)
parent - Parent frame for this dialogtitle - Title for this dialogheader - Message to display at the top of this dialogtext - Text to insert into the scrollable JTextAreawrap - whether to wrap long lines
public ScrollableDialog(JFrame parent,
String title,
String header,
String text,
int width,
int height,
boolean wrap)
parent - Parent frame for this dialogtitle - Title for this dialogheader - Message to display at the top of this dialogtext - Text to insert into the scrollable JTextAreawidth - Width for this dialogheight - Height for this dialogwrap - whether to wrap long lines| Method Detail |
|---|
protected void _addButtons()
public void setTextFont(Font f)
f - New font for the textpublic void show()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||