borland Packages  Class Hierarchy  jbcl.control Package  Index 

UserNamePasswordPanel component

java.lang.Object
   +----java.awt.Component
           +----java.awt.Container
                   +----com.sun.java.swing.JComponent
                           +----borland.jbcl.control.UserNamePasswordPanel

About the UserNamePasswordPanel component

Variables  Constructors  Properties  Methods  Event Listeners

Implements FocusListener, ImageObserver, MenuContainer, Serializable, EventListener

The UserNamePasswordPanel is a component that enables the user to prompt for a username and password for connection to a SQL database. It is used by the UserNamePasswordDialog. The dialog in turn is used by the JBuilder UI Design tools when setting the user name and password properties of a Database component.

You can use UserNamePasswordPanel to create your own password dialog box. The panel includes user name and password fields. When you type into the password field, an asterisk character (*) is displayed for each key pressed.

The values for the user name and password are saved in an instance of the ConnectionDescriptor. Setting these properties through this class does not automatically attempt connection to the database.


UserNamePasswordPanel variables

Variables implemented in com.sun.java.swing.JComponent

Variables implemented in java.awt.Component

UserNamePasswordPanel constructors

UserNamePasswordPanel properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.sun.java.swing.JComponent

Properties implemented in java.awt.Component

Properties implemented in java.awt.Container

Properties implemented in java.lang.Object

UserNamePasswordPanel methods

Methods implemented in this class

Methods implemented in com.sun.java.swing.JComponent

Methods implemented in java.awt.Component

Methods implemented in java.awt.Container

Methods implemented in java.lang.Object

UserNamePasswordPanel event listeners


UserNamePasswordPanel constructors

UserNamePasswordPanel()

  public UserNamePasswordPanel()
Constructs a UserNamePasswordPanel component.

UserNamePasswordPanel(borland.sql.dataset.Database)

  public UserNamePasswordPanel(borland.sql.dataset.Database db)
Constructs a UserNamePasswordPanel component and uses the connection properties of the specified Database (stored in its ConnectionDescriptor object) as default values.

UserNamePasswordPanel properties

database

 public void setDatabase(borland.sql.dataset.Database db)
Write-only property that specifies the Database to connect to. This value is stored in the associated ConnectionDescriptor.

UserNamePasswordPanel event listeners

This component is a source for the following event sets. For information on the standard AWT event sets, see Standard Java events.

ancestor

 public void addAncestorListener(com.sun.java.swing.event.AncestorListener )
 public void removeAncestorListener(com.sun.java.swing.event.AncestorListener )

component

 public synchronized void addComponentListener(java.awt.event.ComponentListener )
 public synchronized void removeComponentListener(java.awt.event.ComponentListener )

container

 public synchronized void addContainerListener(java.awt.event.ContainerListener )
 public void removeContainerListener(java.awt.event.ContainerListener )

focus

 public synchronized void addFocusListener(java.awt.event.FocusListener )
 public synchronized void removeFocusListener(java.awt.event.FocusListener )

key

 public synchronized void addKeyListener(java.awt.event.KeyListener )
 public synchronized void removeKeyListener(java.awt.event.KeyListener )

mouse

 public synchronized void addMouseListener(java.awt.event.MouseListener )
 public synchronized void removeMouseListener(java.awt.event.MouseListener )

mouseMotion

 public synchronized void addMouseMotionListener(java.awt.event.MouseMotionListener )
 public synchronized void removeMouseMotionListener(java.awt.event.MouseMotionListener )

propertyChange

 public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener )
 public synchronized void removePropertyChangeListener(java.beans.PropertyChangeListener )

vetoableChange

 public synchronized void addVetoableChangeListener(java.beans.VetoableChangeListener )
 public synchronized void removeVetoableChangeListener(java.beans.VetoableChangeListener )