view
Class InputStringDialog

java.lang.Object
  extended by view.InputStringDialog

public class InputStringDialog
extends java.lang.Object

Dialog to enter a string.

Author:
Mathias Ricken

Field Summary
private  javax.swing.JDialog _dialog
           
private  javax.swing.JButton[] _optButtons
           
private  javax.swing.JTextField _textField
           
 
Constructor Summary
InputStringDialog(java.awt.Frame parent, java.lang.String title)
          Creates a new input string dialog and all its controls.
InputStringDialog(javax.swing.JDialog parent, java.lang.String title)
          Creates a new input string dialog and all its controls.
 
Method Summary
private  void cancelClicked()
           
private  javax.swing.JOptionPane makeOptionsPanel()
          Build options dialog.
private  void okClicked()
           
 java.lang.String showDialog()
          Show the modal dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_dialog

private javax.swing.JDialog _dialog

_optButtons

private javax.swing.JButton[] _optButtons

_textField

private javax.swing.JTextField _textField
Constructor Detail

InputStringDialog

public InputStringDialog(javax.swing.JDialog parent,
                         java.lang.String title)
Creates a new input string dialog and all its controls.

Parameters:
parent - parent dialog for the dialog
title - window title

InputStringDialog

public InputStringDialog(java.awt.Frame parent,
                         java.lang.String title)
Creates a new input string dialog and all its controls.

Parameters:
parent - parent frame for the dialog
title - window title
Method Detail

showDialog

public java.lang.String showDialog()
Show the modal dialog.

Returns:
contents of text field

cancelClicked

private void cancelClicked()

okClicked

private void okClicked()

makeOptionsPanel

private javax.swing.JOptionPane makeOptionsPanel()
Build options dialog.

Returns:
options pane