1 19 20 package org.netbeans.modules.subversion.ui.repository; 21 22 26 public class RepositoryPanel extends javax.swing.JPanel { 27 28 29 public RepositoryPanel() { 30 initComponents(); 31 } 32 33 38 private void initComponents() { 40 41 setMinimumSize(new java.awt.Dimension (480, 160)); 42 java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("org/netbeans/modules/subversion/ui/repository/Bundle"); setName(bundle.getString("BK2018")); setVerifyInputWhenFocusTarget(false); 45 46 titleLabel.setText(bundle.getString("BK0001")); 48 jLabel2.setLabelFor(urlComboBox); 49 org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0002")); 51 urlComboBox.setEditable(true); 52 53 org.openide.awt.Mnemonics.setLocalizedText(proxySettingsButton, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0006")); proxySettingsButton.setToolTipText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_ProxyDialog")); 56 tipLabel.setText(" "); 57 tipLabel.setMaximumSize(new java.awt.Dimension (32767, 32767)); 58 59 removeButton.setText("Remove from History"); 60 61 userPasswordField.setMinimumSize(new java.awt.Dimension (11, 22)); 62 userPasswordField.setPreferredSize(new java.awt.Dimension (11, 22)); 63 64 passwordLabel.setLabelFor(userPasswordField); 65 org.openide.awt.Mnemonics.setLocalizedText(passwordLabel, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0004")); passwordLabel.setToolTipText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "TT_Password")); 68 userLabel.setLabelFor(userTextField); 69 org.openide.awt.Mnemonics.setLocalizedText(userLabel, org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0003")); userLabel.setToolTipText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "TT_UserName")); 72 userTextField.setMinimumSize(new java.awt.Dimension (11, 22)); 73 userTextField.setPreferredSize(new java.awt.Dimension (11, 22)); 74 75 leaveBlankLabel.setText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "BK0005")); 77 tunnelLabel.setText("Use External Tunnel"); 78 79 tunnelCommandLabel.setText("Tunnel Command"); 80 81 tunnelHelpLabel.setText(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "TT_svn_xxx")); 83 org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this); 84 this.setLayout(layout); 85 layout.setHorizontalGroup( 86 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 87 .add(titleLabel) 88 .add(layout.createSequentialGroup() 89 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 90 .add(jLabel2) 91 .add(userLabel) 92 .add(passwordLabel) 93 .add(tunnelCommandLabel)) 94 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 95 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 96 .add(tipLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 516, Short.MAX_VALUE) 97 .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup() 98 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 99 .add(urlComboBox, 0, 344, Short.MAX_VALUE) 100 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 101 .add(removeButton)) 102 .add(layout.createSequentialGroup() 103 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false) 104 .add(org.jdesktop.layout.GroupLayout.LEADING, userPasswordField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) 105 .add(org.jdesktop.layout.GroupLayout.LEADING, userTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 145, Short.MAX_VALUE)) 106 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 107 .add(leaveBlankLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 347, Short.MAX_VALUE) 108 .addContainerGap()) 109 .add(tunnelCommandTextField, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 516, Short.MAX_VALUE))) 110 .add(layout.createSequentialGroup() 111 .add(proxySettingsButton) 112 .addContainerGap()) 113 .add(layout.createSequentialGroup() 114 .add(tunnelLabel) 115 .addContainerGap()) 116 .add(tunnelHelpLabel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 639, Short.MAX_VALUE) 117 ); 118 layout.setVerticalGroup( 119 layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 120 .add(layout.createSequentialGroup() 121 .add(titleLabel) 122 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 123 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 124 .add(jLabel2) 125 .add(removeButton) 126 .add(urlComboBox, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 127 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 128 .add(tipLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 129 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 130 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 131 .add(userLabel) 132 .add(userTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) 133 .add(leaveBlankLabel)) 134 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) 135 .add(layout.createSequentialGroup() 136 .add(2, 2, 2) 137 .add(userPasswordField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 22, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 138 .add(layout.createSequentialGroup() 139 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 140 .add(passwordLabel))) 141 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 142 .add(proxySettingsButton) 143 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 144 .add(tunnelLabel) 145 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 146 .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE) 147 .add(tunnelCommandLabel) 148 .add(tunnelCommandTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) 149 .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) 150 .add(tunnelHelpLabel) 151 .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 152 ); 153 154 titleLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_RepositoryPanel_Title")); titleLabel.getAccessibleContext().setAccessibleParent(this); 156 jLabel2.getAccessibleContext().setAccessibleParent(this); 157 urlComboBox.getAccessibleContext().setAccessibleParent(this); 158 proxySettingsButton.getAccessibleContext().setAccessibleParent(this); 159 userPasswordField.getAccessibleContext().setAccessibleParent(this); 160 passwordLabel.getAccessibleContext().setAccessibleParent(this); 161 userLabel.getAccessibleContext().setAccessibleParent(this); 162 userTextField.getAccessibleContext().setAccessibleParent(this); 163 leaveBlankLabel.getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_InfoLabel")); leaveBlankLabel.getAccessibleContext().setAccessibleParent(this); 165 166 getAccessibleContext().setAccessibleDescription(org.openide.util.NbBundle.getMessage(RepositoryPanel.class, "ACSD_RepositoryPanel")); } 169 170 private final javax.swing.JLabel jLabel2 = new javax.swing.JLabel (); 172 final javax.swing.JLabel leaveBlankLabel = new javax.swing.JLabel (); 173 final javax.swing.JLabel passwordLabel = new javax.swing.JLabel (); 174 final javax.swing.JButton proxySettingsButton = new javax.swing.JButton (); 175 final javax.swing.JButton removeButton = new javax.swing.JButton (); 176 final javax.swing.JLabel tipLabel = new javax.swing.JLabel (); 177 final javax.swing.JLabel titleLabel = new javax.swing.JLabel (); 178 final javax.swing.JLabel tunnelCommandLabel = new javax.swing.JLabel (); 179 final javax.swing.JTextField tunnelCommandTextField = new javax.swing.JTextField (); 180 final javax.swing.JLabel tunnelHelpLabel = new javax.swing.JLabel (); 181 final javax.swing.JLabel tunnelLabel = new javax.swing.JLabel (); 182 final javax.swing.JComboBox urlComboBox = new javax.swing.JComboBox (); 183 final javax.swing.JLabel userLabel = new javax.swing.JLabel (); 184 final javax.swing.JPasswordField userPasswordField = new javax.swing.JPasswordField (); 185 final javax.swing.JTextField userTextField = new javax.swing.JTextField (); 186 188 } 189 | Popular Tags |