about summary refs log tree commit diff stats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.form117
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.java88
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.form86
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java88
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.form38
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.java27
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step1.properties9
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step2.properties6
-rw-r--r--client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step3.properties4
-rw-r--r--client/trunk/src/com/fourisland/instadisc/InstaDiscView.form6
-rw-r--r--client/trunk/src/com/fourisland/instadisc/InstaDiscView.java6
-rw-r--r--client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties1
12 files changed, 172 insertions, 304 deletions
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.form b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.form index b186d78..deeffac 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.form +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.form
@@ -22,47 +22,42 @@
22 <Layout> 22 <Layout>
23 <DimensionLayout dim="0"> 23 <DimensionLayout dim="0">
24 <Group type="103" groupAlignment="0" attributes="0"> 24 <Group type="103" groupAlignment="0" attributes="0">
25 <Group type="102" alignment="0" attributes="0"> 25 <Group type="102" attributes="0">
26 <EmptySpace min="-2" pref="134" max="-2" attributes="0"/> 26 <EmptySpace max="-2" attributes="0"/>
27 <Component id="jLabel2" min="-2" max="-2" attributes="0"/> 27 <Group type="103" groupAlignment="0" attributes="0">
28 <EmptySpace pref="178" max="32767" attributes="0"/> 28 <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
29 </Group> 29 <Group type="102" attributes="0">
30 <Group type="102" alignment="0" attributes="0"> 30 <EmptySpace min="12" pref="12" max="12" attributes="0"/>
31 <EmptySpace min="-2" pref="43" max="-2" attributes="0"/> 31 <Component id="jLabel3" min="-2" max="-2" attributes="0"/>
32 <Component id="jLabel1" min="-2" max="-2" attributes="0"/> 32 <EmptySpace max="32767" attributes="0"/>
33 <EmptySpace pref="56" max="32767" attributes="0"/> 33 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
34 </Group> 34 <EmptySpace max="32767" attributes="0"/>
35 <Group type="102" alignment="1" attributes="0"> 35 <Component id="jButton1" min="-2" max="-2" attributes="0"/>
36 <EmptySpace min="-2" pref="57" max="-2" attributes="0"/> 36 </Group>
37 <Component id="jScrollPane2" pref="346" max="32767" attributes="1"/> 37 </Group>
38 <EmptySpace min="-2" pref="76" max="-2" attributes="0"/> 38 <EmptySpace max="-2" attributes="0"/>
39 </Group>
40 <Group type="102" alignment="0" attributes="0">
41 <EmptySpace min="-2" pref="202" max="-2" attributes="0"/>
42 <Component id="jButton1" min="-2" max="-2" attributes="0"/>
43 <EmptySpace pref="235" max="32767" attributes="0"/>
44 </Group>
45 <Group type="102" alignment="0" attributes="0">
46 <EmptySpace min="-2" pref="23" max="-2" attributes="0"/>
47 <Component id="jScrollPane1" min="-2" pref="426" max="-2" attributes="1"/>
48 <EmptySpace pref="30" max="32767" attributes="0"/>
49 </Group> 39 </Group>
50 </Group> 40 </Group>
51 </DimensionLayout> 41 </DimensionLayout>
52 <DimensionLayout dim="1"> 42 <DimensionLayout dim="1">
53 <Group type="103" groupAlignment="0" attributes="0"> 43 <Group type="103" groupAlignment="0" attributes="0">
54 <Group type="102" alignment="0" attributes="0"> 44 <Group type="102" alignment="0" attributes="0">
55 <EmptySpace min="-2" pref="18" max="-2" attributes="0"/>
56 <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
57 <EmptySpace type="unrelated" max="-2" attributes="0"/>
58 <Component id="jScrollPane1" min="-2" pref="127" max="-2" attributes="0"/>
59 <EmptySpace type="separate" max="-2" attributes="0"/>
60 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
61 <EmptySpace max="-2" attributes="0"/> 45 <EmptySpace max="-2" attributes="0"/>
62 <Component id="jScrollPane2" min="-2" max="-2" attributes="0"/> 46 <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
63 <EmptySpace type="unrelated" max="-2" attributes="0"/> 47 <Group type="103" groupAlignment="0" attributes="0">
64 <Component id="jButton1" min="-2" max="-2" attributes="0"/> 48 <Group type="102" attributes="0">
65 <EmptySpace pref="30" max="32767" attributes="0"/> 49 <EmptySpace pref="139" max="32767" attributes="0"/>
50 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
51 </Group>
52 <Group type="102" alignment="0" attributes="0">
53 <EmptySpace max="-2" attributes="0"/>
54 <Group type="103" groupAlignment="1" attributes="0">
55 <Component id="jButton1" alignment="1" min="-2" max="-2" attributes="0"/>
56 <Component id="jLabel3" alignment="1" min="-2" max="-2" attributes="0"/>
57 </Group>
58 <EmptySpace max="-2" attributes="0"/>
59 </Group>
60 </Group>
66 </Group> 61 </Group>
67 </Group> 62 </Group>
68 </DimensionLayout> 63 </DimensionLayout>
@@ -75,60 +70,12 @@
75 <Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/> 70 <Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
76 </Properties> 71 </Properties>
77 </Component> 72 </Component>
78 <Container class="javax.swing.JScrollPane" name="jScrollPane1">
79 <Properties>
80 <Property name="name" type="java.lang.String" value="jScrollPane1" noResource="true"/>
81 </Properties>
82 <AuxValues>
83 <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
84 </AuxValues>
85
86 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
87 <SubComponents>
88 <Component class="javax.swing.JTextArea" name="jTextArea1">
89 <Properties>
90 <Property name="background" type="java.awt.Color" resourceKey="jTextArea1.background"/>
91 <Property name="columns" type="int" value="20"/>
92 <Property name="editable" type="boolean" value="false"/>
93 <Property name="lineWrap" type="boolean" value="true"/>
94 <Property name="rows" type="int" value="5"/>
95 <Property name="text" type="java.lang.String" resourceKey="jTextArea1.text"/>
96 <Property name="wrapStyleWord" type="boolean" value="true"/>
97 <Property name="name" type="java.lang.String" value="jTextArea1" noResource="true"/>
98 </Properties>
99 </Component>
100 </SubComponents>
101 </Container>
102 <Component class="javax.swing.JLabel" name="jLabel2"> 73 <Component class="javax.swing.JLabel" name="jLabel2">
103 <Properties> 74 <Properties>
104 <Property name="text" type="java.lang.String" resourceKey="jLabel2.text"/> 75 <Property name="text" type="java.lang.String" resourceKey="jLabel2.text"/>
105 <Property name="name" type="java.lang.String" value="jLabel2" noResource="true"/> 76 <Property name="name" type="java.lang.String" value="jLabel2" noResource="true"/>
106 </Properties> 77 </Properties>
107 </Component> 78 </Component>
108 <Container class="javax.swing.JScrollPane" name="jScrollPane2">
109 <Properties>
110 <Property name="name" type="java.lang.String" value="jScrollPane2" noResource="true"/>
111 </Properties>
112 <AuxValues>
113 <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
114 </AuxValues>
115
116 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
117 <SubComponents>
118 <Component class="javax.swing.JTextArea" name="jTextArea2">
119 <Properties>
120 <Property name="background" type="java.awt.Color" resourceKey="jTextArea2.background"/>
121 <Property name="columns" type="int" value="20"/>
122 <Property name="editable" type="boolean" value="false"/>
123 <Property name="lineWrap" type="boolean" value="true"/>
124 <Property name="rows" type="int" value="5"/>
125 <Property name="text" type="java.lang.String" resourceKey="jTextArea2.text"/>
126 <Property name="wrapStyleWord" type="boolean" value="true"/>
127 <Property name="name" type="java.lang.String" value="jTextArea2" noResource="true"/>
128 </Properties>
129 </Component>
130 </SubComponents>
131 </Container>
132 <Component class="javax.swing.JButton" name="jButton1"> 79 <Component class="javax.swing.JButton" name="jButton1">
133 <Properties> 80 <Properties>
134 <Property name="text" type="java.lang.String" resourceKey="jButton1.text"/> 81 <Property name="text" type="java.lang.String" resourceKey="jButton1.text"/>
@@ -138,5 +85,11 @@
138 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> 85 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
139 </Events> 86 </Events>
140 </Component> 87 </Component>
88 <Component class="javax.swing.JLabel" name="jLabel3">
89 <Properties>
90 <Property name="text" type="java.lang.String" resourceKey="jLabel3.text"/>
91 <Property name="name" type="java.lang.String" value="jLabel3" noResource="true"/>
92 </Properties>
93 </Component>
141 </SubComponents> 94 </SubComponents>
142</Form> 95</Form>
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.java b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.java index c0abbfa..039aacd 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.java +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step1.java
@@ -27,12 +27,9 @@ public class Step1 extends javax.swing.JDialog {
27 private void initComponents() { 27 private void initComponents() {
28 28
29 jLabel1 = new javax.swing.JLabel(); 29 jLabel1 = new javax.swing.JLabel();
30 jScrollPane1 = new javax.swing.JScrollPane();
31 jTextArea1 = new javax.swing.JTextArea();
32 jLabel2 = new javax.swing.JLabel(); 30 jLabel2 = new javax.swing.JLabel();
33 jScrollPane2 = new javax.swing.JScrollPane();
34 jTextArea2 = new javax.swing.JTextArea();
35 jButton1 = new javax.swing.JButton(); 31 jButton1 = new javax.swing.JButton();
32 jLabel3 = new javax.swing.JLabel();
36 33
37 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); 34 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
38 setName("Form"); // NOI18N 35 setName("Form"); // NOI18N
@@ -42,33 +39,9 @@ public class Step1 extends javax.swing.JDialog {
42 jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N 39 jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
43 jLabel1.setName("jLabel1"); // NOI18N 40 jLabel1.setName("jLabel1"); // NOI18N
44 41
45 jScrollPane1.setName("jScrollPane1"); // NOI18N
46
47 jTextArea1.setBackground(resourceMap.getColor("jTextArea1.background")); // NOI18N
48 jTextArea1.setColumns(20);
49 jTextArea1.setEditable(false);
50 jTextArea1.setLineWrap(true);
51 jTextArea1.setRows(5);
52 jTextArea1.setText(resourceMap.getString("jTextArea1.text")); // NOI18N
53 jTextArea1.setWrapStyleWord(true);
54 jTextArea1.setName("jTextArea1"); // NOI18N
55 jScrollPane1.setViewportView(jTextArea1);
56
57 jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N 42 jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
58 jLabel2.setName("jLabel2"); // NOI18N 43 jLabel2.setName("jLabel2"); // NOI18N
59 44
60 jScrollPane2.setName("jScrollPane2"); // NOI18N
61
62 jTextArea2.setBackground(resourceMap.getColor("jTextArea2.background")); // NOI18N
63 jTextArea2.setColumns(20);
64 jTextArea2.setEditable(false);
65 jTextArea2.setLineWrap(true);
66 jTextArea2.setRows(5);
67 jTextArea2.setText(resourceMap.getString("jTextArea2.text")); // NOI18N
68 jTextArea2.setWrapStyleWord(true);
69 jTextArea2.setName("jTextArea2"); // NOI18N
70 jScrollPane2.setViewportView(jTextArea2);
71
72 jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N 45 jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
73 jButton1.setName("jButton1"); // NOI18N 46 jButton1.setName("jButton1"); // NOI18N
74 jButton1.addActionListener(new java.awt.event.ActionListener() { 47 jButton1.addActionListener(new java.awt.event.ActionListener() {
@@ -77,45 +50,41 @@ public class Step1 extends javax.swing.JDialog {
77 } 50 }
78 }); 51 });
79 52
53 jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
54 jLabel3.setName("jLabel3"); // NOI18N
55
80 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 56 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
81 getContentPane().setLayout(layout); 57 getContentPane().setLayout(layout);
82 layout.setHorizontalGroup( 58 layout.setHorizontalGroup(
83 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 59 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
84 .addGroup(layout.createSequentialGroup() 60 .addGroup(layout.createSequentialGroup()
85 .addGap(134, 134, 134) 61 .addContainerGap()
86 .addComponent(jLabel2) 62 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87 .addContainerGap(178, Short.MAX_VALUE)) 63 .addComponent(jLabel1)
88 .addGroup(layout.createSequentialGroup() 64 .addGroup(layout.createSequentialGroup()
89 .addGap(43, 43, 43) 65 .addGap(12, 12, 12)
90 .addComponent(jLabel1) 66 .addComponent(jLabel3)
91 .addContainerGap(56, Short.MAX_VALUE)) 67 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
92 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 68 .addComponent(jLabel2)
93 .addGap(57, 57, 57) 69 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
94 .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 346, Short.MAX_VALUE) 70 .addComponent(jButton1)))
95 .addGap(76, 76, 76)) 71 .addContainerGap())
96 .addGroup(layout.createSequentialGroup()
97 .addGap(202, 202, 202)
98 .addComponent(jButton1)
99 .addContainerGap(235, Short.MAX_VALUE))
100 .addGroup(layout.createSequentialGroup()
101 .addGap(23, 23, 23)
102 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 426, javax.swing.GroupLayout.PREFERRED_SIZE)
103 .addContainerGap(30, Short.MAX_VALUE))
104 ); 72 );
105 layout.setVerticalGroup( 73 layout.setVerticalGroup(
106 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 74 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
107 .addGroup(layout.createSequentialGroup() 75 .addGroup(layout.createSequentialGroup()
108 .addGap(18, 18, 18) 76 .addContainerGap()
109 .addComponent(jLabel1) 77 .addComponent(jLabel1)
110 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 78 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
111 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE) 79 .addGroup(layout.createSequentialGroup()
112 .addGap(18, 18, 18) 80 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 139, Short.MAX_VALUE)
113 .addComponent(jLabel2) 81 .addComponent(jLabel2))
114 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 82 .addGroup(layout.createSequentialGroup()
115 .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 83 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
116 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) 84 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
117 .addComponent(jButton1) 85 .addComponent(jButton1)
118 .addContainerGap(30, Short.MAX_VALUE)) 86 .addComponent(jLabel3))
87 .addContainerGap())))
119 ); 88 );
120 89
121 pack(); 90 pack();
@@ -147,10 +116,7 @@ public class Step1 extends javax.swing.JDialog {
147 private javax.swing.JButton jButton1; 116 private javax.swing.JButton jButton1;
148 private javax.swing.JLabel jLabel1; 117 private javax.swing.JLabel jLabel1;
149 private javax.swing.JLabel jLabel2; 118 private javax.swing.JLabel jLabel2;
150 private javax.swing.JScrollPane jScrollPane1; 119 private javax.swing.JLabel jLabel3;
151 private javax.swing.JScrollPane jScrollPane2;
152 private javax.swing.JTextArea jTextArea1;
153 private javax.swing.JTextArea jTextArea2;
154 // End of variables declaration//GEN-END:variables 120 // End of variables declaration//GEN-END:variables
155 121
156} 122}
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.form b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.form index e408762..40adbd6 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.form +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.form
@@ -23,37 +23,32 @@
23 <DimensionLayout dim="0"> 23 <DimensionLayout dim="0">
24 <Group type="103" groupAlignment="0" attributes="0"> 24 <Group type="103" groupAlignment="0" attributes="0">
25 <Group type="102" attributes="0"> 25 <Group type="102" attributes="0">
26 <EmptySpace max="-2" attributes="0"/>
26 <Group type="103" groupAlignment="0" attributes="0"> 27 <Group type="103" groupAlignment="0" attributes="0">
28 <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
29 <Group type="102" attributes="0">
30 <EmptySpace min="12" pref="12" max="12" attributes="0"/>
31 <Component id="jLabel6" min="-2" max="-2" attributes="0"/>
32 </Group>
27 <Group type="102" alignment="0" attributes="0"> 33 <Group type="102" alignment="0" attributes="0">
34 <EmptySpace min="12" pref="12" max="12" attributes="0"/>
35 <Group type="103" groupAlignment="0" attributes="0">
36 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
37 <Component id="jLabel3" min="-2" max="-2" attributes="0"/>
38 <Component id="jLabel4" min="-2" max="-2" attributes="0"/>
39 </Group>
28 <EmptySpace max="-2" attributes="0"/> 40 <EmptySpace max="-2" attributes="0"/>
29 <Group type="103" groupAlignment="0" attributes="0"> 41 <Group type="103" groupAlignment="0" attributes="0">
30 <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/> 42 <Component id="jTextField1" alignment="0" pref="238" max="32767" attributes="0"/>
31 <Group type="102" alignment="0" attributes="0"> 43 <Component id="jTextField3" alignment="0" pref="238" max="32767" attributes="0"/>
32 <EmptySpace min="12" pref="12" max="12" attributes="0"/> 44 <Component id="jPasswordField1" alignment="0" pref="238" max="32767" attributes="0"/>
33 <Group type="103" groupAlignment="0" attributes="0">
34 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
35 <Component id="jLabel3" min="-2" max="-2" attributes="0"/>
36 <Component id="jLabel4" min="-2" max="-2" attributes="0"/>
37 </Group>
38 <EmptySpace max="-2" attributes="0"/>
39 <Group type="103" groupAlignment="0" attributes="0">
40 <Component id="jTextField2" alignment="0" pref="227" max="32767" attributes="0"/>
41 <Component id="jTextField1" alignment="0" pref="227" max="32767" attributes="0"/>
42 <Component id="jTextField3" alignment="0" pref="227" max="32767" attributes="0"/>
43 </Group>
44 </Group>
45 </Group> 45 </Group>
46 </Group> 46 </Group>
47 <Group type="102" alignment="1" attributes="0"> 47 <Group type="102" alignment="1" attributes="0">
48 <EmptySpace max="-2" attributes="0"/> 48 <Component id="jLabel5" pref="333" max="32767" attributes="0"/>
49 <Component id="jLabel5" pref="322" max="32767" attributes="0"/>
50 <EmptySpace max="-2" attributes="0"/> 49 <EmptySpace max="-2" attributes="0"/>
51 <Component id="jButton1" min="-2" max="-2" attributes="0"/> 50 <Component id="jButton1" min="-2" max="-2" attributes="0"/>
52 </Group> 51 </Group>
53 <Group type="102" alignment="1" attributes="0">
54 <EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
55 <Component id="jScrollPane1" pref="364" max="32767" attributes="0"/>
56 </Group>
57 </Group> 52 </Group>
58 <EmptySpace max="-2" attributes="0"/> 53 <EmptySpace max="-2" attributes="0"/>
59 </Group> 54 </Group>
@@ -62,19 +57,19 @@
62 <DimensionLayout dim="1"> 57 <DimensionLayout dim="1">
63 <Group type="103" groupAlignment="0" attributes="0"> 58 <Group type="103" groupAlignment="0" attributes="0">
64 <Group type="102" alignment="0" attributes="0"> 59 <Group type="102" alignment="0" attributes="0">
65 <EmptySpace max="-2" attributes="0"/> 60 <EmptySpace max="32767" attributes="0"/>
66 <Component id="jLabel1" min="-2" max="-2" attributes="0"/> 61 <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
67 <EmptySpace max="-2" attributes="0"/> 62 <EmptySpace max="-2" attributes="0"/>
68 <Component id="jScrollPane1" min="-2" max="-2" attributes="0"/> 63 <Component id="jLabel6" min="-2" max="-2" attributes="0"/>
69 <EmptySpace max="-2" attributes="0"/> 64 <EmptySpace type="unrelated" max="-2" attributes="0"/>
70 <Group type="103" groupAlignment="3" attributes="0"> 65 <Group type="103" groupAlignment="3" attributes="0">
71 <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/> 66 <Component id="jLabel2" alignment="3" min="-2" max="-2" attributes="0"/>
72 <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/> 67 <Component id="jTextField1" alignment="3" min="-2" max="-2" attributes="0"/>
73 </Group> 68 </Group>
74 <EmptySpace max="-2" attributes="0"/> 69 <EmptySpace max="-2" attributes="0"/>
75 <Group type="103" groupAlignment="3" attributes="0"> 70 <Group type="103" groupAlignment="3" attributes="0">
76 <Component id="jTextField2" alignment="3" min="-2" max="-2" attributes="0"/>
77 <Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/> 71 <Component id="jLabel3" alignment="3" min="-2" max="-2" attributes="0"/>
72 <Component id="jPasswordField1" alignment="3" min="-2" max="-2" attributes="0"/>
78 </Group> 73 </Group>
79 <EmptySpace max="-2" attributes="0"/> 74 <EmptySpace max="-2" attributes="0"/>
80 <Group type="103" groupAlignment="3" attributes="0"> 75 <Group type="103" groupAlignment="3" attributes="0">
@@ -86,7 +81,6 @@
86 <Component id="jButton1" min="-2" max="-2" attributes="0"/> 81 <Component id="jButton1" min="-2" max="-2" attributes="0"/>
87 <Component id="jLabel5" alignment="0" min="-2" pref="40" max="-2" attributes="0"/> 82 <Component id="jLabel5" alignment="0" min="-2" pref="40" max="-2" attributes="0"/>
88 </Group> 83 </Group>
89 <EmptySpace pref="47" max="32767" attributes="0"/>
90 </Group> 84 </Group>
91 </Group> 85 </Group>
92 </DimensionLayout> 86 </DimensionLayout>
@@ -99,28 +93,6 @@
99 <Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/> 93 <Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
100 </Properties> 94 </Properties>
101 </Component> 95 </Component>
102 <Container class="javax.swing.JScrollPane" name="jScrollPane1">
103 <Properties>
104 <Property name="name" type="java.lang.String" value="jScrollPane1" noResource="true"/>
105 </Properties>
106 <AuxValues>
107 <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
108 </AuxValues>
109
110 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
111 <SubComponents>
112 <Component class="javax.swing.JTextArea" name="jTextArea1">
113 <Properties>
114 <Property name="background" type="java.awt.Color" resourceKey="jTextArea1.background"/>
115 <Property name="columns" type="int" value="20"/>
116 <Property name="editable" type="boolean" value="false"/>
117 <Property name="rows" type="int" value="5"/>
118 <Property name="text" type="java.lang.String" resourceKey="jTextArea1.text"/>
119 <Property name="name" type="java.lang.String" value="jTextArea1" noResource="true"/>
120 </Properties>
121 </Component>
122 </SubComponents>
123 </Container>
124 <Component class="javax.swing.JLabel" name="jLabel2"> 96 <Component class="javax.swing.JLabel" name="jLabel2">
125 <Properties> 97 <Properties>
126 <Property name="text" type="java.lang.String" resourceKey="jLabel2.text"/> 98 <Property name="text" type="java.lang.String" resourceKey="jLabel2.text"/>
@@ -133,12 +105,6 @@
133 <Property name="name" type="java.lang.String" value="jTextField1" noResource="true"/> 105 <Property name="name" type="java.lang.String" value="jTextField1" noResource="true"/>
134 </Properties> 106 </Properties>
135 </Component> 107 </Component>
136 <Component class="javax.swing.JTextField" name="jTextField2">
137 <Properties>
138 <Property name="text" type="java.lang.String" resourceKey="jTextField2.text"/>
139 <Property name="name" type="java.lang.String" value="jTextField2" noResource="true"/>
140 </Properties>
141 </Component>
142 <Component class="javax.swing.JTextField" name="jTextField3"> 108 <Component class="javax.swing.JTextField" name="jTextField3">
143 <Properties> 109 <Properties>
144 <Property name="text" type="java.lang.String" resourceKey="jTextField3.text"/> 110 <Property name="text" type="java.lang.String" resourceKey="jTextField3.text"/>
@@ -172,5 +138,17 @@
172 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> 138 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
173 </Events> 139 </Events>
174 </Component> 140 </Component>
141 <Component class="javax.swing.JLabel" name="jLabel6">
142 <Properties>
143 <Property name="text" type="java.lang.String" resourceKey="jLabel6.text"/>
144 <Property name="name" type="java.lang.String" value="jLabel6" noResource="true"/>
145 </Properties>
146 </Component>
147 <Component class="javax.swing.JPasswordField" name="jPasswordField1">
148 <Properties>
149 <Property name="text" type="java.lang.String" resourceKey="jPasswordField1.text"/>
150 <Property name="name" type="java.lang.String" value="jPasswordField1" noResource="true"/>
151 </Properties>
152 </Component>
175 </SubComponents> 153 </SubComponents>
176</Form> 154</Form>
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java index 7affbae..ef1ffd4 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step2.java
@@ -32,16 +32,15 @@ public class Step2 extends javax.swing.JDialog {
32 private void initComponents() { 32 private void initComponents() {
33 33
34 jLabel1 = new javax.swing.JLabel(); 34 jLabel1 = new javax.swing.JLabel();
35 jScrollPane1 = new javax.swing.JScrollPane();
36 jTextArea1 = new javax.swing.JTextArea();
37 jLabel2 = new javax.swing.JLabel(); 35 jLabel2 = new javax.swing.JLabel();
38 jTextField1 = new javax.swing.JTextField(); 36 jTextField1 = new javax.swing.JTextField();
39 jTextField2 = new javax.swing.JTextField();
40 jTextField3 = new javax.swing.JTextField(); 37 jTextField3 = new javax.swing.JTextField();
41 jLabel3 = new javax.swing.JLabel(); 38 jLabel3 = new javax.swing.JLabel();
42 jLabel4 = new javax.swing.JLabel(); 39 jLabel4 = new javax.swing.JLabel();
43 jLabel5 = new javax.swing.JLabel(); 40 jLabel5 = new javax.swing.JLabel();
44 jButton1 = new javax.swing.JButton(); 41 jButton1 = new javax.swing.JButton();
42 jLabel6 = new javax.swing.JLabel();
43 jPasswordField1 = new javax.swing.JPasswordField();
45 44
46 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); 45 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
47 setName("Form"); // NOI18N 46 setName("Form"); // NOI18N
@@ -51,25 +50,12 @@ public class Step2 extends javax.swing.JDialog {
51 jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N 50 jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
52 jLabel1.setName("jLabel1"); // NOI18N 51 jLabel1.setName("jLabel1"); // NOI18N
53 52
54 jScrollPane1.setName("jScrollPane1"); // NOI18N
55
56 jTextArea1.setBackground(resourceMap.getColor("jTextArea1.background")); // NOI18N
57 jTextArea1.setColumns(20);
58 jTextArea1.setEditable(false);
59 jTextArea1.setRows(5);
60 jTextArea1.setText(resourceMap.getString("jTextArea1.text")); // NOI18N
61 jTextArea1.setName("jTextArea1"); // NOI18N
62 jScrollPane1.setViewportView(jTextArea1);
63
64 jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N 53 jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
65 jLabel2.setName("jLabel2"); // NOI18N 54 jLabel2.setName("jLabel2"); // NOI18N
66 55
67 jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N 56 jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N
68 jTextField1.setName("jTextField1"); // NOI18N 57 jTextField1.setName("jTextField1"); // NOI18N
69 58
70 jTextField2.setText(resourceMap.getString("jTextField2.text")); // NOI18N
71 jTextField2.setName("jTextField2"); // NOI18N
72
73 jTextField3.setText(resourceMap.getString("jTextField3.text")); // NOI18N 59 jTextField3.setText(resourceMap.getString("jTextField3.text")); // NOI18N
74 jTextField3.setName("jTextField3"); // NOI18N 60 jTextField3.setName("jTextField3"); // NOI18N
75 61
@@ -90,52 +76,55 @@ public class Step2 extends javax.swing.JDialog {
90 } 76 }
91 }); 77 });
92 78
79 jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
80 jLabel6.setName("jLabel6"); // NOI18N
81
82 jPasswordField1.setText(resourceMap.getString("jPasswordField1.text")); // NOI18N
83 jPasswordField1.setName("jPasswordField1"); // NOI18N
84
93 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 85 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
94 getContentPane().setLayout(layout); 86 getContentPane().setLayout(layout);
95 layout.setHorizontalGroup( 87 layout.setHorizontalGroup(
96 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 88 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
97 .addGroup(layout.createSequentialGroup() 89 .addGroup(layout.createSequentialGroup()
90 .addContainerGap()
98 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 91 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
92 .addComponent(jLabel1)
99 .addGroup(layout.createSequentialGroup() 93 .addGroup(layout.createSequentialGroup()
100 .addContainerGap() 94 .addGap(12, 12, 12)
95 .addComponent(jLabel6))
96 .addGroup(layout.createSequentialGroup()
97 .addGap(12, 12, 12)
101 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 98 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
102 .addComponent(jLabel1) 99 .addComponent(jLabel2)
103 .addGroup(layout.createSequentialGroup() 100 .addComponent(jLabel3)
104 .addGap(12, 12, 12) 101 .addComponent(jLabel4))
105 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
106 .addComponent(jLabel2)
107 .addComponent(jLabel3)
108 .addComponent(jLabel4))
109 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
110 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
111 .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)
112 .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)
113 .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 227, Short.MAX_VALUE)))))
114 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
115 .addContainerGap()
116 .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
117 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 102 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
118 .addComponent(jButton1)) 103 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
104 .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE)
105 .addComponent(jTextField3, javax.swing.GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE)
106 .addComponent(jPasswordField1, javax.swing.GroupLayout.DEFAULT_SIZE, 238, Short.MAX_VALUE)))
119 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() 107 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
120 .addGap(24, 24, 24) 108 .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 333, Short.MAX_VALUE)
121 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 364, Short.MAX_VALUE))) 109 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
110 .addComponent(jButton1)))
122 .addContainerGap()) 111 .addContainerGap())
123 ); 112 );
124 layout.setVerticalGroup( 113 layout.setVerticalGroup(
125 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 114 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
126 .addGroup(layout.createSequentialGroup() 115 .addGroup(layout.createSequentialGroup()
127 .addContainerGap() 116 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
128 .addComponent(jLabel1) 117 .addComponent(jLabel1)
129 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 118 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
130 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 119 .addComponent(jLabel6)
131 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 120 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
132 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 121 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
133 .addComponent(jLabel2) 122 .addComponent(jLabel2)
134 .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) 123 .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
135 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 124 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
136 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 125 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
137 .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 126 .addComponent(jLabel3)
138 .addComponent(jLabel3)) 127 .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
139 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 128 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
140 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) 129 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
141 .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 130 .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
@@ -143,8 +132,7 @@ public class Step2 extends javax.swing.JDialog {
143 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 132 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
144 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 133 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
145 .addComponent(jButton1) 134 .addComponent(jButton1)
146 .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)) 135 .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)))
147 .addContainerGap(47, Short.MAX_VALUE))
148 ); 136 );
149 137
150 pack(); 138 pack();
@@ -153,7 +141,12 @@ public class Step2 extends javax.swing.JDialog {
153 if (jTextField1.getText().equals("")) { 141 if (jTextField1.getText().equals("")) {
154 jLabel5.setText("Error: You forgot to enter a username"); 142 jLabel5.setText("Error: You forgot to enter a username");
155 } else { 143 } else {
156 if (jTextField2.getText().equals("")) { 144 /* TODO: Replace deprecated JPasswordField.getText() with
145 * JPasswordField.getPassword(). However, getPassword()
146 * returns the password in a char[], not a String, so
147 * it must be parsed prior to use.
148 */
149 if (jPasswordField1.getText().equals("")) {
157 jLabel5.setText("Error: You forgot to enter a password"); 150 jLabel5.setText("Error: You forgot to enter a password");
158 } else { 151 } else {
159 if (jTextField3.getText().equals("")) { 152 if (jTextField3.getText().equals("")) {
@@ -162,14 +155,14 @@ public class Step2 extends javax.swing.JDialog {
162 try { 155 try {
163 URL url = new URL(jTextField3.getText()); 156 URL url = new URL(jTextField3.getText());
164 157
165 XmlRpc xmlrpc = new XmlRpc("checkRegistration", jTextField3.getText(), jTextField1.getText(), jTextField2.getText()); 158 XmlRpc xmlrpc = new XmlRpc("checkRegistration", jTextField3.getText(), jTextField1.getText(), jPasswordField1.getText());
166 Integer r = (Integer) xmlrpc.execute(); 159 Integer r = (Integer) xmlrpc.execute();
167 160
168 if (r == 1) 161 if (r == 1)
169 { 162 {
170 jLabel5.setText("Error: No registration exists on the specified Central Server with the specified UN/PW combination"); 163 jLabel5.setText("Error: No registration exists on the specified Central Server with the specified UN/PW combination");
171 } else { 164 } else {
172 MD5 md5 = new MD5(jTextField2.getText()); 165 MD5 md5 = new MD5(jPasswordField1.getText());
173 166
174 Wrapper.setConfig("username", jTextField1.getText()); 167 Wrapper.setConfig("username", jTextField1.getText());
175 Wrapper.setConfig("password", md5.hash()); 168 Wrapper.setConfig("password", md5.hash());
@@ -215,10 +208,9 @@ public class Step2 extends javax.swing.JDialog {
215 private javax.swing.JLabel jLabel3; 208 private javax.swing.JLabel jLabel3;
216 private javax.swing.JLabel jLabel4; 209 private javax.swing.JLabel jLabel4;
217 private javax.swing.JLabel jLabel5; 210 private javax.swing.JLabel jLabel5;
218 private javax.swing.JScrollPane jScrollPane1; 211 private javax.swing.JLabel jLabel6;
219 private javax.swing.JTextArea jTextArea1; 212 private javax.swing.JPasswordField jPasswordField1;
220 private javax.swing.JTextField jTextField1; 213 private javax.swing.JTextField jTextField1;
221 private javax.swing.JTextField jTextField2;
222 private javax.swing.JTextField jTextField3; 214 private javax.swing.JTextField jTextField3;
223 // End of variables declaration//GEN-END:variables 215 // End of variables declaration//GEN-END:variables
224} 216}
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.form b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.form index 473876c..618afab 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.form +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.form
@@ -27,19 +27,19 @@
27 <Group type="102" attributes="0"> 27 <Group type="102" attributes="0">
28 <EmptySpace max="-2" attributes="0"/> 28 <EmptySpace max="-2" attributes="0"/>
29 <Group type="103" groupAlignment="0" attributes="0"> 29 <Group type="103" groupAlignment="0" attributes="0">
30 <Group type="102" alignment="0" attributes="0"> 30 <Group type="102" attributes="0">
31 <EmptySpace min="12" pref="12" max="12" attributes="0"/> 31 <EmptySpace min="12" pref="12" max="12" attributes="0"/>
32 <Component id="jScrollPane1" pref="364" max="32767" attributes="0"/> 32 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
33 </Group> 33 </Group>
34 <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/> 34 <Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
35 </Group> 35 </Group>
36 </Group> 36 </Group>
37 <Group type="102" alignment="0" attributes="0"> 37 <Group type="102" alignment="0" attributes="0">
38 <EmptySpace min="-2" pref="167" max="-2" attributes="0"/> 38 <EmptySpace min="-2" pref="165" max="-2" attributes="0"/>
39 <Component id="jButton1" min="-2" max="-2" attributes="0"/> 39 <Component id="jButton1" min="-2" max="-2" attributes="0"/>
40 </Group> 40 </Group>
41 </Group> 41 </Group>
42 <EmptySpace max="-2" attributes="0"/> 42 <EmptySpace max="32767" attributes="0"/>
43 </Group> 43 </Group>
44 </Group> 44 </Group>
45 </DimensionLayout> 45 </DimensionLayout>
@@ -49,7 +49,7 @@
49 <EmptySpace max="-2" attributes="0"/> 49 <EmptySpace max="-2" attributes="0"/>
50 <Component id="jLabel1" min="-2" max="-2" attributes="0"/> 50 <Component id="jLabel1" min="-2" max="-2" attributes="0"/>
51 <EmptySpace max="-2" attributes="0"/> 51 <EmptySpace max="-2" attributes="0"/>
52 <Component id="jScrollPane1" min="-2" pref="104" max="-2" attributes="0"/> 52 <Component id="jLabel2" min="-2" max="-2" attributes="0"/>
53 <EmptySpace max="-2" attributes="0"/> 53 <EmptySpace max="-2" attributes="0"/>
54 <Component id="jButton1" min="-2" max="-2" attributes="0"/> 54 <Component id="jButton1" min="-2" max="-2" attributes="0"/>
55 <EmptySpace max="32767" attributes="0"/> 55 <EmptySpace max="32767" attributes="0"/>
@@ -65,28 +65,6 @@
65 <Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/> 65 <Property name="name" type="java.lang.String" value="jLabel1" noResource="true"/>
66 </Properties> 66 </Properties>
67 </Component> 67 </Component>
68 <Container class="javax.swing.JScrollPane" name="jScrollPane1">
69 <Properties>
70 <Property name="name" type="java.lang.String" value="jScrollPane1" noResource="true"/>
71 </Properties>
72 <AuxValues>
73 <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
74 </AuxValues>
75
76 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
77 <SubComponents>
78 <Component class="javax.swing.JTextArea" name="jTextArea1">
79 <Properties>
80 <Property name="background" type="java.awt.Color" resourceKey="jTextArea1.background"/>
81 <Property name="columns" type="int" value="20"/>
82 <Property name="editable" type="boolean" value="false"/>
83 <Property name="rows" type="int" value="5"/>
84 <Property name="text" type="java.lang.String" resourceKey="jTextArea1.text"/>
85 <Property name="name" type="java.lang.String" value="jTextArea1" noResource="true"/>
86 </Properties>
87 </Component>
88 </SubComponents>
89 </Container>
90 <Component class="javax.swing.JButton" name="jButton1"> 68 <Component class="javax.swing.JButton" name="jButton1">
91 <Properties> 69 <Properties>
92 <Property name="text" type="java.lang.String" resourceKey="jButton1.text"/> 70 <Property name="text" type="java.lang.String" resourceKey="jButton1.text"/>
@@ -96,5 +74,11 @@
96 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/> 74 <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
97 </Events> 75 </Events>
98 </Component> 76 </Component>
77 <Component class="javax.swing.JLabel" name="jLabel2">
78 <Properties>
79 <Property name="text" type="java.lang.String" resourceKey="jLabel2.text"/>
80 <Property name="name" type="java.lang.String" value="jLabel2" noResource="true"/>
81 </Properties>
82 </Component>
99 </SubComponents> 83 </SubComponents>
100</Form> 84</Form>
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.java b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.java index 5eb7840..d696ebe 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.java +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/Step3.java
@@ -27,9 +27,8 @@ public class Step3 extends javax.swing.JDialog {
27 private void initComponents() { 27 private void initComponents() {
28 28
29 jLabel1 = new javax.swing.JLabel(); 29 jLabel1 = new javax.swing.JLabel();
30 jScrollPane1 = new javax.swing.JScrollPane();
31 jTextArea1 = new javax.swing.JTextArea();
32 jButton1 = new javax.swing.JButton(); 30 jButton1 = new javax.swing.JButton();
31 jLabel2 = new javax.swing.JLabel();
33 32
34 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); 33 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
35 setName("Form"); // NOI18N 34 setName("Form"); // NOI18N
@@ -39,16 +38,6 @@ public class Step3 extends javax.swing.JDialog {
39 jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N 38 jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
40 jLabel1.setName("jLabel1"); // NOI18N 39 jLabel1.setName("jLabel1"); // NOI18N
41 40
42 jScrollPane1.setName("jScrollPane1"); // NOI18N
43
44 jTextArea1.setBackground(resourceMap.getColor("jTextArea1.background")); // NOI18N
45 jTextArea1.setColumns(20);
46 jTextArea1.setEditable(false);
47 jTextArea1.setRows(5);
48 jTextArea1.setText(resourceMap.getString("jTextArea1.text")); // NOI18N
49 jTextArea1.setName("jTextArea1"); // NOI18N
50 jScrollPane1.setViewportView(jTextArea1);
51
52 jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N 41 jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
53 jButton1.setName("jButton1"); // NOI18N 42 jButton1.setName("jButton1"); // NOI18N
54 jButton1.addActionListener(new java.awt.event.ActionListener() { 43 jButton1.addActionListener(new java.awt.event.ActionListener() {
@@ -57,6 +46,9 @@ public class Step3 extends javax.swing.JDialog {
57 } 46 }
58 }); 47 });
59 48
49 jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
50 jLabel2.setName("jLabel2"); // NOI18N
51
60 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); 52 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
61 getContentPane().setLayout(layout); 53 getContentPane().setLayout(layout);
62 layout.setHorizontalGroup( 54 layout.setHorizontalGroup(
@@ -68,12 +60,12 @@ public class Step3 extends javax.swing.JDialog {
68 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 60 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
69 .addGroup(layout.createSequentialGroup() 61 .addGroup(layout.createSequentialGroup()
70 .addGap(12, 12, 12) 62 .addGap(12, 12, 12)
71 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 364, Short.MAX_VALUE)) 63 .addComponent(jLabel2))
72 .addComponent(jLabel1))) 64 .addComponent(jLabel1)))
73 .addGroup(layout.createSequentialGroup() 65 .addGroup(layout.createSequentialGroup()
74 .addGap(167, 167, 167) 66 .addGap(165, 165, 165)
75 .addComponent(jButton1))) 67 .addComponent(jButton1)))
76 .addContainerGap()) 68 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
77 ); 69 );
78 layout.setVerticalGroup( 70 layout.setVerticalGroup(
79 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 71 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
@@ -81,7 +73,7 @@ public class Step3 extends javax.swing.JDialog {
81 .addContainerGap() 73 .addContainerGap()
82 .addComponent(jLabel1) 74 .addComponent(jLabel1)
83 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 75 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
84 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 104, javax.swing.GroupLayout.PREFERRED_SIZE) 76 .addComponent(jLabel2)
85 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 77 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
86 .addComponent(jButton1) 78 .addComponent(jButton1)
87 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) 79 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
@@ -115,8 +107,7 @@ public class Step3 extends javax.swing.JDialog {
115 // Variables declaration - do not modify//GEN-BEGIN:variables 107 // Variables declaration - do not modify//GEN-BEGIN:variables
116 private javax.swing.JButton jButton1; 108 private javax.swing.JButton jButton1;
117 private javax.swing.JLabel jLabel1; 109 private javax.swing.JLabel jLabel1;
118 private javax.swing.JScrollPane jScrollPane1; 110 private javax.swing.JLabel jLabel2;
119 private javax.swing.JTextArea jTextArea1;
120 // End of variables declaration//GEN-END:variables 111 // End of variables declaration//GEN-END:variables
121 112
122} 113}
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step1.properties b/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step1.properties index 8da8235..5df982d 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step1.properties +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step1.properties
@@ -1,11 +1,6 @@
1jLabel1.text=Welcome to the InstaDisc FirstRun Wizard! 1jLabel1.text=Welcome to the InstaDisc FirstRun Wizard!
2jTextArea1.text=This is, apparently, the first time you've run InstaDisc, so you need to step through me before being able to use InstaDisc.\n\nFirst, ensure that you've chosen and signed up for a Central Server. If you haven't, or don't even know what that means, please read:\n 2jLabel2.text=<html>
3#NOI18N
4jTextArea1.background=239, 235, 231
5jLabel2.text=<html><a href="http://fourisland.com/projects/instadisc/wiki/ChoosingACentralServer">Choosing a Central Server</a>
6#NOI18N 3#NOI18N
7jLabel1.font=DejaVu Sans-Plain-18 4jLabel1.font=DejaVu Sans-Plain-18
8jTextArea2.text=before continuing. If you do know what you're doing, feel free to click on the NEXT button and get on with InstaDisc.
9#NOI18N
10jTextArea2.background=239, 235, 231
11jButton1.text=Next 5jButton1.text=Next
6jLabel3.text=<html>This is, apparently, the first time you've run InstaDisc, so you need to<BR>step through me before being able to use InstaDisc.<BR><BR>First, ensure that you've chosen and signed up for a Central Server.<BR>If you haven't, or don't even know what that means, please read<BR><A HREF="http://fourisland.com/projects/instadisc/wiki/ChoosingACentralServer">Choosing a Central Server</A> before continuing. If you do know what<BR>you're doing, feel free to click on the NEXT button and get on with<BR>InstaDisc.
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step2.properties b/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step2.properties index 0c1f735..7e7865b 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step2.properties +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step2.properties
@@ -1,14 +1,12 @@
1jLabel1.text=Central Server Details 1jLabel1.text=Central Server Details
2#NOI18N 2#NOI18N
3jLabel1.font=DejaVu Sans-Plain-18 3jLabel1.font=DejaVu Sans-Plain-18
4jTextArea1.text=To use InstaDisc, you must have chosen and signed up\nfor a Central Server. Please input below the details it\ngave you after registration.
5#NOI18N
6jTextArea1.background=239, 235, 231
7jLabel2.text=Username: 4jLabel2.text=Username:
8jTextField1.text= 5jTextField1.text=
9jTextField2.text=
10jTextField3.text= 6jTextField3.text=
11jLabel3.text=Password: 7jLabel3.text=Password:
12jLabel4.text=Central Server URL: 8jLabel4.text=Central Server URL:
13jLabel5.text= 9jLabel5.text=
14jButton1.text=Next 10jButton1.text=Next
11jLabel6.text=<HTML>To use InstaDisc, you must have chosen and signed up for<BR>a Central Server. Please input below the details it gave you<BR>after registration.
12jPasswordField1.text=
diff --git a/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step3.properties b/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step3.properties index 948623f..b73d8fd 100644 --- a/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step3.properties +++ b/client/trunk/src/com/fourisland/instadisc/FirstRun/resources/Step3.properties
@@ -1,7 +1,5 @@
1jLabel1.text=Congradulations 1jLabel1.text=Congradulations
2#NOI18N 2#NOI18N
3jLabel1.font=DejaVu Sans-Plain-18 3jLabel1.font=DejaVu Sans-Plain-18
4jTextArea1.text=YAY! You've successfully set up InstaDisc. To start using\nInstaDisc, quit this wizard (the DONE button), open\nInstaDisc again, and have fun!\n\nIf you're ever confused, remember, the Help menu is\nyour friend.
5#NOI18N
6jTextArea1.background=239, 235, 231
7jButton1.text=Done 4jButton1.text=Done
5jLabel2.text=<HTML>YAY! You've successfully set up InstaDisc. To start<BR>using InstaDisc, quit this wizard (the DONE button),<BR>open InstaDisc again, and have fun! If you're ever<BR>confused, remember, the Help menu is your friend.
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form index ec8d250..0f42036 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.form
@@ -117,6 +117,12 @@
117 <Property name="name" type="java.lang.String" value="jMenuItem4" noResource="true"/> 117 <Property name="name" type="java.lang.String" value="jMenuItem4" noResource="true"/>
118 </Properties> 118 </Properties>
119 </MenuItem> 119 </MenuItem>
120 <MenuItem class="javax.swing.JMenuItem" name="jMenuItem5">
121 <Properties>
122 <Property name="text" type="java.lang.String" resourceKey="jMenuItem5.text"/>
123 <Property name="name" type="java.lang.String" value="jMenuItem5" noResource="true"/>
124 </Properties>
125 </MenuItem>
120 </SubComponents> 126 </SubComponents>
121 </Menu> 127 </Menu>
122 <Menu class="javax.swing.JMenu" name="helpMenu"> 128 <Menu class="javax.swing.JMenu" name="helpMenu">
diff --git a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java index 5a71fac..7cce3cd 100644 --- a/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java +++ b/client/trunk/src/com/fourisland/instadisc/InstaDiscView.java
@@ -148,6 +148,7 @@ public class InstaDiscView extends FrameView {
148 jMenu1 = new javax.swing.JMenu(); 148 jMenu1 = new javax.swing.JMenu();
149 jMenuItem3 = new javax.swing.JMenuItem(); 149 jMenuItem3 = new javax.swing.JMenuItem();
150 jMenuItem4 = new javax.swing.JMenuItem(); 150 jMenuItem4 = new javax.swing.JMenuItem();
151 jMenuItem5 = new javax.swing.JMenuItem();
151 javax.swing.JMenu helpMenu = new javax.swing.JMenu(); 152 javax.swing.JMenu helpMenu = new javax.swing.JMenu();
152 javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem(); 153 javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
153 statusPanel = new javax.swing.JPanel(); 154 statusPanel = new javax.swing.JPanel();
@@ -220,6 +221,10 @@ public class InstaDiscView extends FrameView {
220 jMenuItem4.setName("jMenuItem4"); // NOI18N 221 jMenuItem4.setName("jMenuItem4"); // NOI18N
221 jMenu1.add(jMenuItem4); 222 jMenu1.add(jMenuItem4);
222 223
224 jMenuItem5.setText(resourceMap.getString("jMenuItem5.text")); // NOI18N
225 jMenuItem5.setName("jMenuItem5"); // NOI18N
226 jMenu1.add(jMenuItem5);
227
223 menuBar.add(jMenu1); 228 menuBar.add(jMenu1);
224 229
225 helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N 230 helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
@@ -298,6 +303,7 @@ public class InstaDiscView extends FrameView {
298 private javax.swing.JMenuItem jMenuItem2; 303 private javax.swing.JMenuItem jMenuItem2;
299 private javax.swing.JMenuItem jMenuItem3; 304 private javax.swing.JMenuItem jMenuItem3;
300 private javax.swing.JMenuItem jMenuItem4; 305 private javax.swing.JMenuItem jMenuItem4;
306 private javax.swing.JMenuItem jMenuItem5;
301 private javax.swing.JScrollPane jScrollPane1; 307 private javax.swing.JScrollPane jScrollPane1;
302 private javax.swing.JSeparator jSeparator1; 308 private javax.swing.JSeparator jSeparator1;
303 private javax.swing.JPanel mainPanel; 309 private javax.swing.JPanel mainPanel;
diff --git a/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties b/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties index 80a0b3e..4bef63f 100644 --- a/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties +++ b/client/trunk/src/com/fourisland/instadisc/resources/InstaDiscView.properties
@@ -35,3 +35,4 @@ jMenuItem2.text=Manage Subscriptions
35jMenu1.text=Tools 35jMenu1.text=Tools
36jMenuItem3.text=Manage Filters 36jMenuItem3.text=Manage Filters
37jMenuItem4.text=Request Retained Items 37jMenuItem4.text=Request Retained Items
38jMenuItem5.text=Advanced Settings