Package jimm.datavision.gui

Examples of jimm.datavision.gui.EditFieldLayout


public String getPassword() { return password; }

protected void buildWindow(String dbName) {
    getContentPane().setLayout(new BorderLayout());

    EditFieldLayout efl = new EditFieldLayout();
    efl.addLabel(I18N.get("DbPasswordDialog.database"), dbName);
    efl.setBorder(20);
    usernameField = efl.addTextField(I18N.get("DbPasswordDialog.user_name"),
             username, FIELD_COLUMNS);
    passwordField = efl.addPasswordField(I18N.get("DbPasswordDialog.password"),
           FIELD_COLUMNS);

    JPanel buttonPanel = new JPanel();
    JButton button;

    buttonPanel.add(button = new JButton(I18N.get("GUI.ok")));
    button.addActionListener(this);
    button.setDefaultCapable(true);
    getRootPane().setDefaultButton(button);

    buttonPanel.add(button = new JButton(I18N.get("GUI.cancel")));
    button.addActionListener(this);

    getContentPane().add(efl.getPanel(), BorderLayout.CENTER);
    getContentPane().add(buttonPanel, BorderLayout.SOUTH);

    addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
      dispose();
View Full Code Here

TOP

Related Classes of jimm.datavision.gui.EditFieldLayout

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.