public class AboutDialog extends Object implements ActionListener
It can be used as universal text displayer.
Constructor and Description |
---|
AboutDialog(Window owner)
Main constructor.
|
AboutDialog(Window owner,
int rows,
int cols)
Build window and menus with given size.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Menu actions support.
|
void |
appendDistance()
Add line of length of window.
|
void |
appendLine(String t)
Add line of text to window TextArea.
|
void |
setVisible(boolean state)
Show or hide main window.
|
public JDialog aboutWnd
public AboutDialog(Window owner, int rows, int cols)
owner
- Owner of Dialog.rows
- Number of rows.cols
- Number of columns.public AboutDialog(Window owner)
Builds window and menus.
owner
- Owner of Dialogpublic void appendLine(String t)
t
- Text to add in subsequent lines.public void appendDistance()
public void setVisible(boolean state)
Warning
When window is visible append(final String) does not work.
state
- \limiter true to show windowpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- event - currently method uses names of events (names of menus)Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.