Skip to content

Commit 513f78d

Browse files
committed
Corrections in AddServerDialog and InitFrame + delete main in AddServer
1 parent 45ed91a commit 513f78d

4 files changed

Lines changed: 239 additions & 164 deletions

File tree

Lines changed: 134 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22

3-
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
3+
<Form version="1.8" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
44
<Properties>
55
<Property name="defaultCloseOperation" type="int" value="2"/>
66
<Property name="title" type="java.lang.String" value="Add Server"/>
7+
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
8+
<Color blue="3b" green="26" red="1b" type="rgb"/>
9+
</Property>
710
<Property name="location" type="java.awt.Point" editor="org.netbeans.beaninfo.editors.PointEditor">
811
<Point value="[0, 0]"/>
912
</Property>
13+
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
14+
<Dimension value="[300, 200]"/>
15+
</Property>
1016
<Property name="resizable" type="boolean" value="false"/>
1117
</Properties>
1218
<SyntheticProperties>
@@ -28,71 +34,144 @@
2834
<Layout>
2935
<DimensionLayout dim="0">
3036
<Group type="103" groupAlignment="0" attributes="0">
31-
<Group type="102" attributes="0">
32-
<EmptySpace pref="54" max="32767" attributes="0"/>
33-
<Group type="103" groupAlignment="0" attributes="0">
34-
<Component id="jTxtAdd" alignment="0" min="-2" pref="293" max="-2" attributes="0"/>
35-
<Component id="jLblAdd" alignment="0" max="32767" attributes="0"/>
36-
</Group>
37-
<EmptySpace pref="54" max="32767" attributes="0"/>
38-
</Group>
39-
<Group type="102" alignment="1" attributes="0">
40-
<EmptySpace max="32767" attributes="0"/>
41-
<Component id="jBtnAdd" min="-2" pref="171" max="-2" attributes="0"/>
42-
<EmptySpace max="32767" attributes="0"/>
43-
</Group>
37+
<Component id="jPnlDlgAdd" alignment="0" max="32767" attributes="0"/>
4438
</Group>
4539
</DimensionLayout>
4640
<DimensionLayout dim="1">
4741
<Group type="103" groupAlignment="0" attributes="0">
48-
<Group type="102" alignment="1" attributes="0">
49-
<EmptySpace max="32767" attributes="0"/>
50-
<Component id="jLblAdd" min="-2" pref="21" max="-2" attributes="0"/>
51-
<EmptySpace type="unrelated" max="32767" attributes="0"/>
52-
<Component id="jTxtAdd" min="-2" pref="25" max="-2" attributes="0"/>
53-
<EmptySpace pref="12" max="32767" attributes="0"/>
54-
<Component id="jBtnAdd" min="-2" max="-2" attributes="0"/>
55-
<EmptySpace max="32767" attributes="0"/>
56-
</Group>
42+
<Component id="jPnlDlgAdd" alignment="0" pref="200" max="32767" attributes="0"/>
5743
</Group>
5844
</DimensionLayout>
5945
</Layout>
6046
<SubComponents>
61-
<Component class="javax.swing.JTextField" name="jLblAdd">
47+
<Container class="javax.swing.JPanel" name="jPnlDlgAdd">
6248
<Properties>
63-
<Property name="editable" type="boolean" value="false"/>
6449
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
65-
<Color blue="df" green="d9" red="d6" type="rgb"/>
66-
</Property>
67-
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
68-
<Color blue="0" green="0" red="0" type="rgb"/>
69-
</Property>
70-
<Property name="horizontalAlignment" type="int" value="0"/>
71-
<Property name="text" type="java.lang.String" value="Intraduce the server IP (with port if different)"/>
72-
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
73-
<Border info="null"/>
50+
<Color blue="3b" green="26" red="1b" type="rgb"/>
7451
</Property>
7552
</Properties>
76-
</Component>
77-
<Component class="javax.swing.JTextField" name="jTxtAdd">
78-
<Properties>
79-
<Property name="horizontalAlignment" type="int" value="0"/>
80-
<Property name="text" type="java.lang.String" value="myserverminecraft.ddns.net:24321"/>
81-
</Properties>
82-
</Component>
83-
<Component class="javax.swing.JButton" name="jBtnAdd">
84-
<Properties>
85-
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
86-
<Color blue="33" green="cc" red="0" type="rgb"/>
87-
</Property>
88-
<Property name="text" type="java.lang.String" value="Add server"/>
89-
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
90-
<Color id="Cursor de Mano"/>
91-
</Property>
92-
</Properties>
93-
<Events>
94-
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBtnAddActionPerformed"/>
95-
</Events>
96-
</Component>
53+
54+
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBoxLayout">
55+
<Property name="axis" type="int" value="1"/>
56+
</Layout>
57+
<SubComponents>
58+
<Container class="javax.swing.JPanel" name="jPnlText">
59+
<Properties>
60+
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
61+
<Color blue="3b" green="26" red="1b" type="rgb"/>
62+
</Property>
63+
</Properties>
64+
65+
<Layout>
66+
<DimensionLayout dim="0">
67+
<Group type="103" groupAlignment="1" attributes="0">
68+
<Group type="102" attributes="0">
69+
<EmptySpace max="32767" attributes="0"/>
70+
<Group type="103" groupAlignment="0" attributes="0">
71+
<Component id="jTxtAdd" pref="301" max="32767" attributes="0"/>
72+
<Component id="jLblAdd" max="32767" attributes="0"/>
73+
</Group>
74+
<EmptySpace max="32767" attributes="0"/>
75+
</Group>
76+
</Group>
77+
</DimensionLayout>
78+
<DimensionLayout dim="1">
79+
<Group type="103" groupAlignment="0" attributes="0">
80+
<Group type="102" alignment="0" attributes="0">
81+
<EmptySpace pref="30" max="32767" attributes="0"/>
82+
<Component id="jLblAdd" min="-2" pref="27" max="-2" attributes="0"/>
83+
<EmptySpace type="separate" max="32767" attributes="0"/>
84+
<Component id="jTxtAdd" min="-2" pref="23" max="-2" attributes="0"/>
85+
</Group>
86+
</Group>
87+
</DimensionLayout>
88+
</Layout>
89+
<SubComponents>
90+
<Component class="javax.swing.JTextField" name="jLblAdd">
91+
<Properties>
92+
<Property name="editable" type="boolean" value="false"/>
93+
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
94+
<Color blue="3b" green="26" red="1b" type="rgb"/>
95+
</Property>
96+
<Property name="horizontalAlignment" type="int" value="0"/>
97+
<Property name="text" type="java.lang.String" value="Introduce the server IP (with port if different)"/>
98+
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
99+
<Border info="null"/>
100+
</Property>
101+
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
102+
<Dimension value="[10, 10]"/>
103+
</Property>
104+
</Properties>
105+
</Component>
106+
<Component class="javax.swing.JTextField" name="jTxtAdd">
107+
<Properties>
108+
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
109+
<Color blue="3b" green="26" red="1b" type="rgb"/>
110+
</Property>
111+
<Property name="horizontalAlignment" type="int" value="0"/>
112+
<Property name="text" type="java.lang.String" value="myserverminecraft.ddns.net:24321"/>
113+
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
114+
<Insets value="null"/>
115+
</Property>
116+
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
117+
<Dimension value="[10, 10]"/>
118+
</Property>
119+
</Properties>
120+
</Component>
121+
</SubComponents>
122+
</Container>
123+
<Container class="javax.swing.JPanel" name="jPnlButton">
124+
<Properties>
125+
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
126+
<Color blue="3b" green="26" red="1b" type="rgb"/>
127+
</Property>
128+
</Properties>
129+
130+
<Layout>
131+
<DimensionLayout dim="0">
132+
<Group type="103" groupAlignment="0" attributes="0">
133+
<Group type="102" alignment="1" attributes="0">
134+
<EmptySpace pref="93" max="32767" attributes="0"/>
135+
<Component id="jBtnAdd" min="-2" max="-2" attributes="0"/>
136+
<EmptySpace pref="91" max="32767" attributes="0"/>
137+
</Group>
138+
</Group>
139+
</DimensionLayout>
140+
<DimensionLayout dim="1">
141+
<Group type="103" groupAlignment="0" attributes="0">
142+
<Group type="102" alignment="0" attributes="0">
143+
<EmptySpace min="-2" pref="18" max="-2" attributes="0"/>
144+
<Component id="jBtnAdd" min="-2" max="-2" attributes="0"/>
145+
<EmptySpace pref="58" max="32767" attributes="0"/>
146+
</Group>
147+
</Group>
148+
</DimensionLayout>
149+
</Layout>
150+
<SubComponents>
151+
<Component class="javax.swing.JButton" name="jBtnAdd">
152+
<Properties>
153+
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
154+
<Color blue="33" green="cc" red="0" type="rgb"/>
155+
</Property>
156+
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
157+
<Color blue="3b" green="26" red="1b" type="rgb"/>
158+
</Property>
159+
<Property name="text" type="java.lang.String" value="Add server"/>
160+
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
161+
<Color id="Cursor de Mano"/>
162+
</Property>
163+
<Property name="horizontalTextPosition" type="int" value="0"/>
164+
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
165+
<Insets value="[2, 40, 2, 40]"/>
166+
</Property>
167+
</Properties>
168+
<Events>
169+
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jBtnAddActionPerformed"/>
170+
</Events>
171+
</Component>
172+
</SubComponents>
173+
</Container>
174+
</SubComponents>
175+
</Container>
97176
</SubComponents>
98177
</Form>

0 commit comments

Comments
 (0)