client: send and receive network messages
[WeStealzYourDataz.git] / src / uk / ac / ntu / n0521366 / wsyd / client / ClientGUI.form
1 <?xml version="1.0" encoding="UTF-8" ?>
2
3 <Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
4   <Properties>
5     <Property name="defaultCloseOperation" type="int" value="3"/>
6     <Property name="title" type="java.lang.String" value="We Stealz Your Dataz"/>
7   </Properties>
8   <SyntheticProperties>
9     <SyntheticProperty name="formSizePolicy" type="int" value="1"/>
10     <SyntheticProperty name="generateCenter" type="boolean" value="false"/>
11   </SyntheticProperties>
12   <Events>
13     <EventHandler event="windowActivated" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowActivated"/>
14   </Events>
15   <AuxValues>
16     <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
17     <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
18     <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
19     <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
20     <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
21     <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
22     <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
23     <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
24     <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
25     <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,124,0,0,3,-10"/>
26   </AuxValues>
27
28   <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
29   <SubComponents>
30     <Container class="javax.swing.JSplitPane" name="gSplitPane1">
31       <Properties>
32         <Property name="dividerLocation" type="int" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
33           <Connection code="this.getWidth() - 200" type="code"/>
34         </Property>
35         <Property name="resizeWeight" type="double" value="0.5"/>
36       </Properties>
37       <Events>
38         <EventHandler event="propertyChange" listener="java.beans.PropertyChangeListener" parameters="java.beans.PropertyChangeEvent" handler="gSplitPane1PropertyChange"/>
39       </Events>
40       <Constraints>
41         <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
42           <BorderConstraints direction="Center"/>
43         </Constraint>
44       </Constraints>
45
46       <Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
47       <SubComponents>
48         <Container class="javax.swing.JTabbedPane" name="gDetails">
49           <Constraints>
50             <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
51               <JSplitPaneConstraints position="left"/>
52             </Constraint>
53           </Constraints>
54
55           <Layout class="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"/>
56           <SubComponents>
57             <Container class="javax.swing.JPanel" name="gPersonalProfile">
58               <Constraints>
59                 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
60                   <JTabbedPaneConstraints tabName="News and Status">
61                     <Property name="tabTitle" type="java.lang.String" value="News and Status"/>
62                   </JTabbedPaneConstraints>
63                 </Constraint>
64               </Constraints>
65
66               <Layout>
67                 <DimensionLayout dim="0">
68                   <Group type="103" groupAlignment="0" attributes="0">
69                       <Group type="102" alignment="0" attributes="0">
70                           <EmptySpace min="-2" pref="30" max="-2" attributes="0"/>
71                           <Group type="103" groupAlignment="0" max="-2" attributes="0">
72                               <Component id="gScrollPane1" pref="460" max="32767" attributes="0"/>
73                               <Component id="gPersonalName" alignment="0" max="32767" attributes="0"/>
74                               <Component id="gPersonalStatus" alignment="0" max="32767" attributes="0"/>
75                           </Group>
76                           <EmptySpace max="32767" attributes="0"/>
77                       </Group>
78                   </Group>
79                 </DimensionLayout>
80                 <DimensionLayout dim="1">
81                   <Group type="103" groupAlignment="0" attributes="0">
82                       <Group type="102" alignment="0" attributes="0">
83                           <EmptySpace max="-2" attributes="0"/>
84                           <Component id="gPersonalName" min="-2" max="-2" attributes="0"/>
85                           <EmptySpace type="separate" max="-2" attributes="0"/>
86                           <Component id="gPersonalStatus" min="-2" max="-2" attributes="0"/>
87                           <EmptySpace type="unrelated" max="-2" attributes="0"/>
88                           <Component id="gScrollPane1" min="-2" pref="248" max="-2" attributes="0"/>
89                           <EmptySpace max="32767" attributes="0"/>
90                       </Group>
91                   </Group>
92                 </DimensionLayout>
93               </Layout>
94               <SubComponents>
95                 <Component class="javax.swing.JLabel" name="gPersonalName">
96                   <Properties>
97                     <Property name="text" type="java.lang.String" value="Your Name"/>
98                     <Property name="toolTipText" type="java.lang.String" value="Click to edit your profile"/>
99                     <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
100                       <Dimension value="[64, 15]"/>
101                     </Property>
102                   </Properties>
103                 </Component>
104                 <Component class="javax.swing.JTextField" name="gPersonalStatus">
105                   <Properties>
106                     <Property name="text" type="java.lang.String" value="My current status"/>
107                   </Properties>
108                   <Events>
109                     <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="gPersonalStatusActionPerformed"/>
110                   </Events>
111                 </Component>
112                 <Container class="javax.swing.JScrollPane" name="gScrollPane1">
113                   <AuxValues>
114                     <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
115                   </AuxValues>
116
117                   <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
118                   <SubComponents>
119                     <Component class="javax.swing.JList" name="gPersonalNewsFeed">
120                       <Properties>
121                         <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
122                           <StringArray count="1">
123                             <StringItem index="0" value="Server uptime: 1 hour"/>
124                           </StringArray>
125                         </Property>
126                         <Property name="selectionMode" type="int" value="0"/>
127                         <Property name="toolTipText" type="java.lang.String" value="WSYD News Feed"/>
128                         <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
129                           <Dimension value="[64, 17]"/>
130                         </Property>
131                         <Property name="nextFocusableComponent" type="java.awt.Component" editor="org.netbeans.modules.form.ComponentChooserEditor">
132                           <ComponentRef name="gPersonalName"/>
133                         </Property>
134                       </Properties>
135                     </Component>
136                   </SubComponents>
137                 </Container>
138               </SubComponents>
139             </Container>
140             <Container class="javax.swing.JPanel" name="gFriendProfile">
141               <Constraints>
142                 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
143                   <JTabbedPaneConstraints tabName="Friend Profile">
144                     <Property name="tabTitle" type="java.lang.String" value="Friend Profile"/>
145                   </JTabbedPaneConstraints>
146                 </Constraint>
147               </Constraints>
148
149               <Layout>
150                 <DimensionLayout dim="0">
151                   <Group type="103" groupAlignment="0" attributes="0">
152                       <Group type="102" alignment="0" attributes="0">
153                           <Group type="103" groupAlignment="0" attributes="0">
154                               <Group type="102" alignment="0" attributes="0">
155                                   <EmptySpace min="-2" pref="24" max="-2" attributes="0"/>
156                                   <Component id="gLabelFriendLocation" min="-2" max="-2" attributes="0"/>
157                               </Group>
158                               <Group type="102" alignment="1" attributes="0">
159                                   <EmptySpace max="-2" attributes="0"/>
160                                   <Group type="103" groupAlignment="0" attributes="0">
161                                       <Component id="gLabelFriendInterests" alignment="1" min="-2" max="-2" attributes="0"/>
162                                       <Component id="gLabelFriendName" alignment="1" min="-2" max="-2" attributes="0"/>
163                                       <Component id="gLabelFriendBirthplace" alignment="1" min="-2" max="-2" attributes="0"/>
164                                   </Group>
165                               </Group>
166                           </Group>
167                           <EmptySpace min="-2" pref="32" max="-2" attributes="0"/>
168                           <Group type="103" groupAlignment="0" attributes="0">
169                               <Component id="jScrollPane2" min="-2" max="-2" attributes="0"/>
170                               <Component id="gLabelFriendLocationData" min="-2" max="-2" attributes="0"/>
171                               <Group type="103" alignment="0" groupAlignment="1" attributes="0">
172                                   <Component id="gButtonAddFriendChat" min="-2" max="-2" attributes="0"/>
173                                   <Component id="gLabelFriendBirthplaceData" min="-2" max="-2" attributes="0"/>
174                               </Group>
175                           </Group>
176                           <EmptySpace min="-2" pref="90" max="-2" attributes="0"/>
177                           <Group type="103" groupAlignment="0" max="-2" attributes="0">
178                               <Component id="jScrollPane1" max="32767" attributes="0"/>
179                               <Component id="jScrollPane3" max="32767" attributes="0"/>
180                           </Group>
181                           <EmptySpace min="-2" pref="21" max="-2" attributes="0"/>
182                       </Group>
183                   </Group>
184                 </DimensionLayout>
185                 <DimensionLayout dim="1">
186                   <Group type="103" groupAlignment="0" attributes="0">
187                       <Group type="102" alignment="0" attributes="0">
188                           <EmptySpace max="-2" attributes="0"/>
189                           <Group type="103" groupAlignment="0" attributes="0">
190                               <Group type="102" alignment="0" attributes="0">
191                                   <Component id="jScrollPane1" min="-2" max="-2" attributes="0"/>
192                                   <EmptySpace type="separate" max="-2" attributes="0"/>
193                                   <Component id="jScrollPane3" pref="111" max="32767" attributes="0"/>
194                               </Group>
195                               <Group type="102" alignment="0" attributes="0">
196                                   <Component id="gLabelFriendName" min="-2" max="-2" attributes="0"/>
197                                   <EmptySpace min="-2" pref="39" max="-2" attributes="0"/>
198                                   <Group type="103" groupAlignment="3" attributes="0">
199                                       <Component id="gLabelFriendBirthplaceData" alignment="3" min="-2" max="-2" attributes="0"/>
200                                       <Component id="gLabelFriendBirthplace" alignment="3" min="-2" max="-2" attributes="0"/>
201                                   </Group>
202                                   <EmptySpace min="-2" pref="38" max="-2" attributes="0"/>
203                                   <Group type="103" groupAlignment="3" attributes="0">
204                                       <Component id="gLabelFriendLocation" alignment="3" min="-2" max="-2" attributes="0"/>
205                                       <Component id="gLabelFriendLocationData" alignment="3" min="-2" max="-2" attributes="0"/>
206                                   </Group>
207                                   <EmptySpace max="32767" attributes="0"/>
208                                   <Group type="103" groupAlignment="0" attributes="0">
209                                       <Component id="gLabelFriendInterests" min="-2" max="-2" attributes="0"/>
210                                       <Component id="jScrollPane2" min="-2" max="-2" attributes="0"/>
211                                   </Group>
212                               </Group>
213                               <Group type="102" attributes="0">
214                                   <Component id="gButtonAddFriendChat" min="-2" max="-2" attributes="0"/>
215                                   <EmptySpace min="0" pref="0" max="32767" attributes="0"/>
216                               </Group>
217                           </Group>
218                           <EmptySpace max="-2" attributes="0"/>
219                       </Group>
220                   </Group>
221                 </DimensionLayout>
222               </Layout>
223               <SubComponents>
224                 <Component class="javax.swing.JLabel" name="gLabelFriendName">
225                   <Properties>
226                     <Property name="text" type="java.lang.String" value="Friend&apos;s Name"/>
227                   </Properties>
228                 </Component>
229                 <Container class="javax.swing.JScrollPane" name="jScrollPane1">
230                   <AuxValues>
231                     <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
232                   </AuxValues>
233
234                   <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
235                   <SubComponents>
236                     <Component class="javax.swing.JTextArea" name="gTAreaFriendBio">
237                       <Properties>
238                         <Property name="editable" type="boolean" value="false"/>
239                         <Property name="columns" type="int" value="35"/>
240                         <Property name="lineWrap" type="boolean" value="true"/>
241                         <Property name="rows" type="int" value="12"/>
242                         <Property name="tabSize" type="int" value="4"/>
243                         <Property name="text" type="java.lang.String" value="Friend&apos;s Bio"/>
244                         <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
245                           <Dimension value="[100, 50]"/>
246                         </Property>
247                         <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
248                           <Dimension value="[350, 156]"/>
249                         </Property>
250                       </Properties>
251                     </Component>
252                   </SubComponents>
253                 </Container>
254                 <Container class="javax.swing.JScrollPane" name="jScrollPane2">
255                   <AuxValues>
256                     <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
257                   </AuxValues>
258
259                   <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
260                   <SubComponents>
261                     <Component class="javax.swing.JList" name="gListFriendInterests">
262                       <Properties>
263                         <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
264                           <Font name="Dialog" size="12" style="0"/>
265                         </Property>
266                         <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
267                           <StringArray count="4">
268                             <StringItem index="0" value="Interest1"/>
269                             <StringItem index="1" value="Interest2"/>
270                             <StringItem index="2" value="Interest3"/>
271                             <StringItem index="3" value="..."/>
272                           </StringArray>
273                         </Property>
274                         <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
275                           <Dimension value="[85, 85]"/>
276                         </Property>
277                         <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
278                           <Dimension value="[100, 85]"/>
279                         </Property>
280                       </Properties>
281                     </Component>
282                   </SubComponents>
283                 </Container>
284                 <Component class="javax.swing.JLabel" name="gLabelFriendBirthplace">
285                   <Properties>
286                     <Property name="text" type="java.lang.String" value="Birthplace:"/>
287                   </Properties>
288                 </Component>
289                 <Component class="javax.swing.JLabel" name="gLabelFriendBirthplaceData">
290                   <Properties>
291                     <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
292                       <Font name="Dialog" size="12" style="0"/>
293                     </Property>
294                     <Property name="text" type="java.lang.String" value="Their Birthplace"/>
295                   </Properties>
296                 </Component>
297                 <Component class="javax.swing.JLabel" name="gLabelFriendLocation">
298                   <Properties>
299                     <Property name="text" type="java.lang.String" value="Current City/Town:"/>
300                   </Properties>
301                 </Component>
302                 <Component class="javax.swing.JLabel" name="gLabelFriendLocationData">
303                   <Properties>
304                     <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
305                       <Font name="Dialog" size="12" style="0"/>
306                     </Property>
307                     <Property name="text" type="java.lang.String" value="Their City/Town"/>
308                   </Properties>
309                 </Component>
310                 <Container class="javax.swing.JScrollPane" name="jScrollPane3">
311                   <AuxValues>
312                     <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
313                   </AuxValues>
314
315                   <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
316                   <SubComponents>
317                     <Component class="javax.swing.JTextArea" name="gTAreaFriendStatuses">
318                       <Properties>
319                         <Property name="editable" type="boolean" value="false"/>
320                         <Property name="columns" type="int" value="20"/>
321                         <Property name="rows" type="int" value="5"/>
322                         <Property name="text" type="java.lang.String" value="Friend&apos;s Three statuses"/>
323                       </Properties>
324                     </Component>
325                   </SubComponents>
326                 </Container>
327                 <Component class="javax.swing.JLabel" name="gLabelFriendInterests">
328                   <Properties>
329                     <Property name="text" type="java.lang.String" value="Interests:"/>
330                   </Properties>
331                 </Component>
332                 <Component class="javax.swing.JButton" name="gButtonAddFriendChat">
333                   <Properties>
334                     <Property name="text" type="java.lang.String" value="Add"/>
335                   </Properties>
336                 </Component>
337               </SubComponents>
338             </Container>
339           </SubComponents>
340         </Container>
341         <Container class="javax.swing.JScrollPane" name="gOnlineList">
342           <Constraints>
343             <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
344               <JSplitPaneConstraints position="right"/>
345             </Constraint>
346           </Constraints>
347
348           <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
349           <SubComponents>
350             <Component class="javax.swing.JList" name="jList1">
351               <Properties>
352                 <Property name="model" type="javax.swing.ListModel" editor="org.netbeans.modules.form.editors2.ListModelEditor">
353                   <StringArray count="5">
354                     <StringItem index="0" value="Eddie Berrisford-Lynch"/>
355                     <StringItem index="1" value="Tom Thumb"/>
356                     <StringItem index="2" value="Peter Pan"/>
357                     <StringItem index="3" value="Freddy Mercury"/>
358                     <StringItem index="4" value="Sam Smith"/>
359                   </StringArray>
360                 </Property>
361                 <Property name="selectionMode" type="int" value="0"/>
362                 <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
363                   <Dimension value="[200, 119]"/>
364                 </Property>
365                 <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
366                   <Dimension value="[100, 119]"/>
367                 </Property>
368                 <Property name="visibleRowCount" type="int" value="30"/>
369               </Properties>
370             </Component>
371           </SubComponents>
372         </Container>
373       </SubComponents>
374     </Container>
375     <Container class="javax.swing.JPanel" name="gStatusPanel">
376       <Constraints>
377         <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
378           <BorderConstraints direction="South"/>
379         </Constraint>
380       </Constraints>
381
382       <Layout>
383         <DimensionLayout dim="0">
384           <Group type="103" groupAlignment="0" attributes="0">
385               <Group type="102" alignment="0" attributes="0">
386                   <Component id="gLabelOnlineQty" min="-2" max="-2" attributes="0"/>
387                   <EmptySpace type="separate" max="-2" attributes="0"/>
388                   <Component id="gLabelFriendsOnlineQty" min="-2" max="-2" attributes="0"/>
389                   <EmptySpace type="separate" max="-2" attributes="0"/>
390                   <Component id="gLabelFriendRequestsQty" min="-2" max="-2" attributes="0"/>
391                   <EmptySpace pref="651" max="32767" attributes="0"/>
392               </Group>
393           </Group>
394         </DimensionLayout>
395         <DimensionLayout dim="1">
396           <Group type="103" groupAlignment="0" attributes="0">
397               <Group type="103" groupAlignment="3" attributes="0">
398                   <Component id="gLabelFriendsOnlineQty" alignment="3" min="-2" max="-2" attributes="0"/>
399                   <Component id="gLabelFriendRequestsQty" alignment="3" min="-2" max="-2" attributes="0"/>
400                   <Component id="gLabelOnlineQty" alignment="3" min="-2" max="-2" attributes="0"/>
401               </Group>
402           </Group>
403         </DimensionLayout>
404       </Layout>
405       <SubComponents>
406         <Component class="javax.swing.JLabel" name="gLabelFriendsOnlineQty">
407           <Properties>
408             <Property name="text" type="java.lang.String" value="Friends: 000"/>
409           </Properties>
410         </Component>
411         <Component class="javax.swing.JLabel" name="gLabelFriendRequestsQty">
412           <Properties>
413             <Property name="text" type="java.lang.String" value="Requests Pending: 000"/>
414           </Properties>
415         </Component>
416         <Component class="javax.swing.JLabel" name="gLabelOnlineQty">
417           <Properties>
418             <Property name="text" type="java.lang.String" value="Online: 000"/>
419           </Properties>
420         </Component>
421       </SubComponents>
422     </Container>
423   </SubComponents>
424 </Form>