hicosim.components.frontend.dialogues
Class CustomJComponent

java.lang.Object
  extended by hicosim.components.frontend.dialogues.CustomJComponent

public class CustomJComponent
extends java.lang.Object

This class inherits a JPanel, two JLabels and two JTextFields, which are used for user inputs.

Author:
Daniel Obermueller & Sebastian Minning 5th June 2009

Constructor Summary
CustomJComponent(java.lang.String titleOfFirstJLabel, java.lang.String titleOfSecondJLabel)
           
 
Method Summary
 javax.swing.JComponent getComponent()
          This method is needed in order to place this JPanel in a JOptionPane dialogue.
 java.lang.String getFirstInput()
          This method returns the user generated input of the first JTextField as a String-Object.
 java.lang.String getSecondInput()
          This method returns the user generated input of the second JTextField as a String-Object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomJComponent

public CustomJComponent(java.lang.String titleOfFirstJLabel,
                        java.lang.String titleOfSecondJLabel)
Parameters:
String - titleOfFirstJLabel
String - titleOfSecondJLabel
Method Detail

getFirstInput

public java.lang.String getFirstInput()
This method returns the user generated input of the first JTextField as a String-Object.

Returns:
String

getSecondInput

public java.lang.String getSecondInput()
This method returns the user generated input of the second JTextField as a String-Object.

Returns:
String

getComponent

public javax.swing.JComponent getComponent()
This method is needed in order to place this JPanel in a JOptionPane dialogue.

Returns:
JComponent