| javax.swing.JDialog org.apache.ojb.tools.mapping.reversedb2.gui.JDlgDBConnection
JDlgDBConnection | public class JDlgDBConnection extends javax.swing.JDialog (Code) | | This dialog collects JDBC connection data and opens the connection. The JDBC
driver class and URL are stored in the properties of Main, so the user only
has to enter this data once.
The method showAndReturnConnection() performs a show(), blocks until the
dialog is disposed and returns the connection. If no valid connection is
established, null is returned.
author: Florian Bruckner version: $Id: JDlgDBConnection.java,v 1.1.2.1 2005/12/21 22:32:41 tomdz Exp $ |
Method Summary | |
public void | dispose() dispose() of javax.swing.JDialog overridden to be able to wait until the dialog is
disposed even if it is not modal in showAndReturnConnection(). | public static void | main(String args) | public java.sql.Connection | showAndReturnConnection() Performs a show(), blocks until the
dialog is disposed and returns the connection. |
JDlgDBConnection | public JDlgDBConnection(java.awt.Frame parent, boolean isModal)(Code) | | Creates new form JDlgDBConnection.
Parameters: parent - parent frame as specified by javax.swing.JDialog Parameters: isModal - |
dispose | public void dispose()(Code) | | dispose() of javax.swing.JDialog overridden to be able to wait until the dialog is
disposed even if it is not modal in showAndReturnConnection().
Warning: This method should not be called from the Eventdispatch-Thread if the dialog is non-modal, because no events can be dispatched while this method blocks.
|
main | public static void main(String args)(Code) | | Parameters: args - the command line arguments |
showAndReturnConnection | public java.sql.Connection showAndReturnConnection()(Code) | | Performs a show(), blocks until the
dialog is disposed and returns the connection. If no valid connection is
established, null is returned.
|
|
|