- Timestamp:
- 2010-01-12T08:01:34+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java
r2822 r2823 100 100 gc.anchor = GridBagConstraints.WEST; 101 101 gc.insets = new Insets(5,5,0,0); 102 gc.fill = GridBagConstraints.HORIZONTAL; 103 gc.weightx = 0.0; 102 104 pnl.add(new JLabel(tr("Host:")), gc); 103 105 104 106 gc.gridx = 1; 105 pnl.add(tfProxyHttpHost = new JTextField(20),gc); 107 gc.weightx = 1.0; 108 pnl.add(tfProxyHttpHost = new JTextField(),gc); 106 109 107 110 gc.gridy = 1; 108 111 gc.gridx = 0; 112 gc.fill = GridBagConstraints.NONE; 113 gc.weightx = 0.0; 109 114 pnl.add(new JLabel(trc("server", "Port:")), gc); 110 115 111 116 gc.gridx = 1; 112 gc.weightx = 0.0;117 gc.weightx = 1.0; 113 118 pnl.add(tfProxyHttpPort = new JTextField(5),gc); 119 tfProxyHttpPort.setMinimumSize(tfProxyHttpPort.getPreferredSize()); 114 120 115 121 gc.gridy = 2; 122 gc.gridx = 0; 123 gc.gridwidth = 2; 124 gc.fill = GridBagConstraints.HORIZONTAL; 125 gc.weightx = 1.0; 126 pnl.add(new JMultilineLabel(tr("Please enter a username and a password if your proxy requires authentication.")), gc); 127 128 gc.gridy = 3; 129 gc.gridx = 0; 130 gc.gridwidth = 1; 131 gc.fill = GridBagConstraints.NONE; 132 gc.weightx = 0.0; 133 pnl.add(new JLabel(tr("User:")), gc); 134 135 gc.gridy = 3; 136 gc.gridx = 1; 137 gc.weightx = 1.0; 138 pnl.add(tfProxyHttpUser = new JTextField(20),gc); 139 tfProxyHttpUser.setMinimumSize(tfProxyHttpUser.getPreferredSize()); 140 141 gc.gridy = 4; 142 gc.gridx = 0; 143 gc.weightx = 0.0; 144 pnl.add(new JLabel(tr("Password:")), gc); 145 146 gc.gridx = 1; 147 gc.weightx = 1.0; 148 pnl.add(tfProxyHttpPassword = new JPasswordField(20),gc); 149 tfProxyHttpPassword.setMinimumSize(tfProxyHttpPassword.getPreferredSize()); 150 151 // add an extra spacer, otherwise the layout is broken 152 gc.gridy = 5; 116 153 gc.gridx = 0; 117 154 gc.gridwidth = 2; … … 119 156 gc.weightx = 1.0; 120 157 gc.weighty = 1.0; 121 pnl.add(new JLabel(tr("Please enter a username and a password if your proxy requires authentication.")), gc); 122 123 gc.gridy = 3; 124 gc.gridx = 0; 125 gc.gridwidth = 1; 126 gc.weightx = 0.0; 127 gc.fill = GridBagConstraints.NONE; 128 pnl.add(new JLabel(tr("User:")), gc); 129 130 gc.gridy = 3; 131 gc.gridx = 1; 132 pnl.add(tfProxyHttpUser = new JTextField(20),gc); 133 134 gc.gridy = 4; 135 gc.gridx = 0; 136 pnl.add(new JLabel(tr("Password:")), gc); 137 138 gc.gridx = 1; 139 pnl.add(tfProxyHttpPassword = new JPasswordField(20),gc); 158 pnl.add(new JPanel(), gc); 140 159 return pnl; 141 160 } … … 156 175 gc.anchor = GridBagConstraints.WEST; 157 176 gc.insets = new Insets(5,5,0,0); 177 gc.fill = GridBagConstraints.HORIZONTAL; 178 gc.weightx = 0.0; 158 179 pnl.add(new JLabel(tr("Host:")), gc); 159 180 160 181 gc.gridx = 1; 182 gc.weightx = 1.0; 161 183 pnl.add(tfProxySocksHost = new JTextField(20),gc); 162 184 163 185 gc.gridy = 1; 164 186 gc.gridx = 0; 187 gc.weightx = 0.0; 188 gc.fill = GridBagConstraints.NONE; 165 189 pnl.add(new JLabel(trc("server", "Port:")), gc); 166 190 167 191 gc.gridx = 1; 168 pnl.add(tfProxySocksPort = new JTextField(5),gc); 192 gc.weightx = 1.0; 193 pnl.add(tfProxySocksPort = new JTextField(5), gc); 194 tfProxySocksPort.setMinimumSize(tfProxySocksPort.getPreferredSize()); 169 195 170 196 // add an extra spacer, otherwise the layout is broken
Note:
See TracChangeset
for help on using the changeset viewer.