| java.lang.Object edu.rice.cs.util.swing.ScrollableDialog
All known Subclasses: edu.rice.cs.drjava.ui.DrJavaScrollableDialog,
ScrollableDialog | public class ScrollableDialog implements Serializable(Code) | | Manages a JDialog with a scrollable text area and a button panel.
version: $Id: ScrollableDialog.java 4255 2007-08-28 19:17:37Z mgricken $ |
Field Summary | |
final public static int | DEFAULT_HEIGHT Default height for all ScrollableDialogs. | final public static int | DEFAULT_WIDTH Default width for all ScrollableDialogs. | 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. |
Method Summary | |
protected void | _addButtons() Adds buttons to this dialog's button panel. | public void | setTextFont(Font f) Sets the font for the text area in this dialog. | public void | show() Shows this dialog. |
DEFAULT_HEIGHT | final public static int DEFAULT_HEIGHT(Code) | | Default height for all ScrollableDialogs.
|
DEFAULT_WIDTH | final public static int DEFAULT_WIDTH(Code) | | Default width for all ScrollableDialogs.
|
_buttonPanel | protected JPanel _buttonPanel(Code) | | Panel of buttons at the bottom of this dialog.
|
_dialog | protected JDialog _dialog(Code) | | JDialog managed by this component.
|
_textArea | protected JTextArea _textArea(Code) | | JTextArea contained in a scroll pane in this dialog.
|
ScrollableDialog | public ScrollableDialog(JFrame parent, String title, String header, String text)(Code) | | Creates a new ScrollableDialog with the default width and height.
Parameters: parent - Parent frame for this dialog Parameters: title - Title for this dialog Parameters: header - Message to display at the top of this dialog Parameters: text - Text to insert into the scrollable JTextArea |
ScrollableDialog | public ScrollableDialog(JFrame parent, String title, String header, String text, int width, int height)(Code) | | Creates a new ScrollableDialog.
Parameters: parent - Parent frame for this dialog Parameters: title - Title for this dialog Parameters: header - Message to display at the top of this dialog Parameters: text - Text to insert into the scrollable JTextArea Parameters: width - Width for this dialog Parameters: height - Height for this dialog |
_addButtons | protected void _addButtons()(Code) | | Adds buttons to this dialog's button panel.
Subclasses can override this to add different buttons.
|
setTextFont | public void setTextFont(Font f)(Code) | | Sets the font for the text area in this dialog.
Parameters: f - New font for the text |
show | public void show()(Code) | | Shows this dialog.
|
|
|