| javax.swing.JDialog com.jgraph.pad.dialog.JGraphpadDialog
All known Subclasses: com.jgraph.pad.dialog.JGraphpadAboutDialog,
JGraphpadDialog | public class JGraphpadDialog extends JDialog (Code) | | Basic dialog class for JGraphpad consisting of the header with a title,
subtitle and icon, the content, and the button panel with a set of buttons.
|
Method Summary | |
public void | addButtons(JButton[] buttons) Adds the specified buttons to the button panel. | protected JComponent | createContent() Hook for subclassers to create the content of the dialog. | public void | setContent(Component content) Adds the specified component to the component hierarchy of the dialog. |
buttonPanel | protected JPanel buttonPanel(Code) | | Holds the button panel.
|
JGraphpadDialog | public JGraphpadDialog(String title)(Code) | | Constructs a new dialog using the specified title.
Parameters: title - The title to use for the dialog and header. |
JGraphpadDialog | public JGraphpadDialog(String title, String subtitle, ImageIcon icon)(Code) | | Constructs a new dialog using the specified title. The title is used in
the dialog and also in the header. The header is only displayed if either
an icon or subtitle is specified.
Parameters: title - The title to use for the dialog and header. Parameters: subtitle - The subtitle to display in the header. Parameters: icon - The icon to display in the header. |
addButtons | public void addButtons(JButton[] buttons)(Code) | | Adds the specified buttons to the button panel.
Parameters: buttons - The buttons to be added to the button panel. |
setContent | public void setContent(Component content)(Code) | | Adds the specified component to the component hierarchy of the dialog.
Parameters: content - The component to add to the hierarchy. |
|
|