/
ProxyPanel.java
78 lines (68 loc) · 2.87 KB
/
ProxyPanel.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package com.gallery.GalleryRemote.prefs;
import com.gallery.GalleryRemote.GalleryProperties;
import com.gallery.GalleryRemote.Log;
import javax.swing.*;
import java.awt.*;
import javax.swing.border.*;
/**
* Created by IntelliJ IDEA.
* User: paour
* Date: May 8, 2003
*/
public class ProxyPanel extends PreferencePanel {
public static final String MODULE = "ProxyPa";
JLabel icon = new JLabel("Proxy");
GridBagLayout gridBagLayout1 = new GridBagLayout();
JCheckBox jProxy = new JCheckBox();
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JLabel jLabel4 = new JLabel();
JTextField jURL = new JTextField();
JTextField jTextField2 = new JTextField();
JTextField jUsername = new JTextField();
JTextField jPassword = new JTextField();
JPanel jPanel1 = new JPanel();
public JLabel getIcon() {
return icon;
}
public void readProperties(GalleryProperties props) {
}
public void writeProperties(GalleryProperties props) {
}
public void buildUI() {
jbInit();
}
private void jbInit() {
jProxy.setText("Use proxy");
this.setLayout(gridBagLayout1);
jLabel1.setText("Proxy URL");
jLabel2.setText("Proxy port");
jLabel3.setText("Username");
jLabel4.setText("Password");
jURL.setText("");
jTextField2.setText("");
jUsername.setText("");
jPassword.setText("");
this.add(jProxy, new GridBagConstraints(0, 0, 2, 1, 0.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 0, 0), 0, 0));
this.add(jLabel1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 20, 5, 5), 0, 0));
this.add(jLabel2, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 20, 5, 5), 0, 0));
this.add(jLabel3, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 20, 5, 5), 0, 0));
this.add(jLabel4, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0
,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 20, 5, 5), 0, 0));
this.add(jURL, new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0
,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0));
this.add(jTextField2, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0
,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0));
this.add(jUsername, new GridBagConstraints(1, 3, 1, 1, 1.0, 0.0
,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0));
this.add(jPassword, new GridBagConstraints(1, 4, 1, 1, 1.0, 0.0
,GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL, new Insets(0, 0, 5, 0), 0, 0));
this.add(jPanel1, new GridBagConstraints(0, 5, 2, 1, 1.0, 1.0
,GridBagConstraints.CENTER, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
}
}