|
What this is
Other links
The source code/* * AddServerPanel.java * * Created on November 6, 2002, 10:49 AM */ package org.netbeans.modules.j2ee.deployment.impl.ui; import java.awt.Dialog; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import org.openide.DialogDescriptor; import org.openide.DialogDisplayer; import org.openide.NotifyDescriptor; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.event.DocumentListener; import javax.swing.event.DocumentEvent; import org.openide.util.NbBundle; import org.openide.util.HelpCtx; /** * * @author J Lockhart */ public class FindServerPanel extends javax.swing.JPanel { private Dialog dialog; private DialogDescriptor dialogDescriptor; /** Creates new form FindServerPanel */ public FindServerPanel() { initComponents(); initComponentsMore(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; introLbl = new javax.swing.JLabel(); urlLbl = new javax.swing.JLabel(); urlTxt = new javax.swing.JTextField(); usernameLbl = new javax.swing.JLabel(); usernameTxt = new javax.swing.JTextField(); pwLbl = new javax.swing.JLabel(); pwTxt = new javax.swing.JPasswordField(); setLayout(new java.awt.GridBagLayout()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 12); gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; add(introLbl, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.insets = new java.awt.Insets(0, 12, 0, 12); gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; add(urlLbl, gridBagConstraints); urlTxt.setColumns(33); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 12); gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.1; gridBagConstraints.weighty = 0.1; add(urlTxt, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.insets = new java.awt.Insets(12, 12, 0, 12); add(usernameLbl, gridBagConstraints); usernameTxt.setColumns(20); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 12); gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.1; gridBagConstraints.weighty = 0.1; add(usernameTxt, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(12, 12, 12, 12); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; add(pwLbl, gridBagConstraints); pwTxt.setColumns(20); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(12, 0, 12, 12); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 0.1; gridBagConstraints.weighty = 0.1; add(pwTxt, gridBagConstraints); }//GEN-END:initComponents private void initComponentsMore() { getAccessibleContext().setAccessibleName(NbBundle.getMessage(FindServerPanel.class, "LBL_Add_Server_Panel")); getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(FindServerPanel.class, "LBL_Add_Server_Intro")); // If the intro text is too long, split it into two String intro = NbBundle.getMessage(FindServerPanel.class, "LBL_Add_Server_Intro"); if (intro.length() > 70) { int mid = intro.length() / 2; String temp = "" + //NOI18N intro.substring(0, intro.indexOf(" ", mid)) + //NOI18N " |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.