Class ConnectionDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class ConnectionDialog
extends JDialog
This class implements a dialog to gather all information concerning a DB connection.
Author:
Lennart Martens
See Also:
Serialized Form
  • Constructor Details

    • ConnectionDialog

      public ConnectionDialog()
      Empty default constructor
    • ConnectionDialog

      public ConnectionDialog​(JFrame aParent, Connectable aTarget, String aTitle, String aPropsFile)
      This constructor takes as arguments the parent JFrame and a title for the dialog. It also constructs the GUI.
      Parameters:
      aParent - JFrame that is the parent of this JDialog.
      aTarget - Connectable to which the connection will be passed once it is successfully established.
      aTitle - String with the title for this dialog
      aPropsFile - String with the filename for a propertiesfile with some connection parameters already filled out, notably 'url' and 'driver'. Can be 'null' for no defaults. If something goes wrong, no defaults are filled out.
    • ConnectionDialog

      public ConnectionDialog​(JFrame aParent, Connectable aTarget, String aTitle, Properties aConnectionProperties)
      This constructor takes as arguments the parent JFrame and a title for the dialog. It also constructs the GUI.
      Parameters:
      aParent - JFrame that is the parent of this JDialog.
      aTarget - Connectable to which the connection will be passed once it is successfully established.
      aTitle - String with the title for this dialog
      aConnectionProperties - Properties instance with three variables (name, driver, url)