2648
|
1 |
<?xml version="1.0" encoding="UTF-8" ?>
|
|
2 |
|
|
3 |
<Form version="1.3" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
|
|
4 |
<NonVisualComponents>
|
|
5 |
<Component class="javax.swing.ButtonGroup" name="createDisposeGrp">
|
|
6 |
</Component>
|
|
7 |
</NonVisualComponents>
|
|
8 |
<Properties>
|
|
9 |
<Property name="defaultCloseOperation" type="int" value="3"/>
|
|
10 |
<Property name="title" type="java.lang.String" value="TranslucentShapedFrameTest"/>
|
|
11 |
</Properties>
|
|
12 |
<SyntheticProperties>
|
|
13 |
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
|
|
14 |
</SyntheticProperties>
|
|
15 |
<AuxValues>
|
|
16 |
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
|
|
17 |
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
|
|
18 |
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
|
|
19 |
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
|
|
20 |
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
|
|
21 |
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
|
|
22 |
</AuxValues>
|
|
23 |
|
|
24 |
<Layout>
|
|
25 |
<DimensionLayout dim="0">
|
|
26 |
<Group type="103" groupAlignment="0" attributes="0">
|
|
27 |
<Group type="102" attributes="0">
|
|
28 |
<EmptySpace max="-2" attributes="0"/>
|
|
29 |
<Group type="103" groupAlignment="0" attributes="0">
|
|
30 |
<Group type="102" alignment="0" attributes="0">
|
|
31 |
<Component id="transparencySld" pref="375" max="32767" attributes="0"/>
|
|
32 |
<EmptySpace max="-2" attributes="0"/>
|
|
33 |
</Group>
|
|
34 |
<Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
|
|
35 |
<Group type="102" alignment="0" attributes="0">
|
|
36 |
<Component id="shapedCb" min="-2" max="-2" attributes="0"/>
|
|
37 |
<EmptySpace max="-2" attributes="0"/>
|
|
38 |
<Component id="nonOpaqueChb" min="-2" max="-2" attributes="0"/>
|
|
39 |
<EmptySpace max="-2" attributes="0"/>
|
|
40 |
<Component id="useSwingCb" min="-2" max="-2" attributes="0"/>
|
|
41 |
<EmptySpace pref="102" max="32767" attributes="0"/>
|
|
42 |
</Group>
|
|
43 |
<Group type="102" alignment="0" attributes="0">
|
|
44 |
<Group type="103" groupAlignment="0" attributes="0">
|
|
45 |
<Group type="102" alignment="0" attributes="0">
|
|
46 |
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
|
|
47 |
<EmptySpace pref="314" max="-2" attributes="0"/>
|
|
48 |
</Group>
|
|
49 |
<Group type="102" alignment="0" attributes="0">
|
|
50 |
<Component id="passedBtn" min="-2" max="-2" attributes="0"/>
|
|
51 |
<EmptySpace max="-2" attributes="0"/>
|
|
52 |
<Component id="failedBtn" min="-2" max="-2" attributes="0"/>
|
|
53 |
<EmptySpace pref="241" max="-2" attributes="0"/>
|
|
54 |
</Group>
|
|
55 |
<Component id="jScrollPane1" alignment="1" pref="375" max="32767" attributes="0"/>
|
|
56 |
<Group type="102" alignment="0" attributes="0">
|
|
57 |
<Component id="createFrameBtn" min="-2" pref="187" max="-2" attributes="0"/>
|
|
58 |
<EmptySpace max="-2" attributes="0"/>
|
|
59 |
<Component id="disposeFrameBtn" min="-2" pref="182" max="-2" attributes="0"/>
|
|
60 |
</Group>
|
|
61 |
</Group>
|
|
62 |
<EmptySpace max="-2" attributes="0"/>
|
|
63 |
</Group>
|
|
64 |
</Group>
|
|
65 |
</Group>
|
|
66 |
</Group>
|
|
67 |
</DimensionLayout>
|
|
68 |
<DimensionLayout dim="1">
|
|
69 |
<Group type="103" groupAlignment="0" attributes="0">
|
|
70 |
<Group type="102" alignment="0" attributes="0">
|
|
71 |
<EmptySpace max="-2" attributes="0"/>
|
|
72 |
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
|
|
73 |
<EmptySpace max="-2" attributes="0"/>
|
|
74 |
<Component id="transparencySld" min="-2" max="-2" attributes="0"/>
|
|
75 |
<EmptySpace max="-2" attributes="0"/>
|
|
76 |
<Group type="103" groupAlignment="3" attributes="0">
|
|
77 |
<Component id="shapedCb" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
78 |
<Component id="nonOpaqueChb" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
79 |
<Component id="useSwingCb" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
80 |
</Group>
|
|
81 |
<EmptySpace max="-2" attributes="0"/>
|
|
82 |
<Group type="103" groupAlignment="3" attributes="0">
|
|
83 |
<Component id="disposeFrameBtn" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
84 |
<Component id="createFrameBtn" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
85 |
</Group>
|
|
86 |
<EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
|
|
87 |
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
|
|
88 |
<EmptySpace max="-2" attributes="0"/>
|
|
89 |
<Component id="jScrollPane1" min="-2" pref="148" max="-2" attributes="0"/>
|
|
90 |
<EmptySpace max="-2" attributes="0"/>
|
|
91 |
<Group type="103" groupAlignment="3" attributes="0">
|
|
92 |
<Component id="passedBtn" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
93 |
<Component id="failedBtn" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
94 |
</Group>
|
|
95 |
<EmptySpace max="32767" attributes="0"/>
|
|
96 |
</Group>
|
|
97 |
</Group>
|
|
98 |
</DimensionLayout>
|
|
99 |
</Layout>
|
|
100 |
<SubComponents>
|
|
101 |
<Component class="javax.swing.JLabel" name="jLabel1">
|
|
102 |
<Properties>
|
|
103 |
<Property name="text" type="java.lang.String" value="Frame Opacity:"/>
|
|
104 |
</Properties>
|
|
105 |
</Component>
|
|
106 |
<Component class="javax.swing.JSlider" name="transparencySld">
|
|
107 |
<Properties>
|
|
108 |
<Property name="majorTickSpacing" type="int" value="10"/>
|
|
109 |
<Property name="minorTickSpacing" type="int" value="5"/>
|
|
110 |
<Property name="paintLabels" type="boolean" value="true"/>
|
|
111 |
<Property name="paintTicks" type="boolean" value="true"/>
|
|
112 |
<Property name="value" type="int" value="100"/>
|
|
113 |
</Properties>
|
|
114 |
<Events>
|
|
115 |
<EventHandler event="stateChanged" listener="javax.swing.event.ChangeListener" parameters="javax.swing.event.ChangeEvent" handler="transparencySldStateChanged"/>
|
|
116 |
</Events>
|
|
117 |
</Component>
|
|
118 |
<Component class="javax.swing.JCheckBox" name="shapedCb">
|
|
119 |
<Properties>
|
|
120 |
<Property name="text" type="java.lang.String" value="Shaped Frame"/>
|
|
121 |
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
122 |
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
|
|
123 |
<EmptyBorder bottom="0" left="0" right="0" top="0"/>
|
|
124 |
</Border>
|
|
125 |
</Property>
|
|
126 |
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
|
127 |
<Insets value="[0, 0, 0, 0]"/>
|
|
128 |
</Property>
|
|
129 |
</Properties>
|
|
130 |
<Events>
|
|
131 |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="shapedCbActionPerformed"/>
|
|
132 |
</Events>
|
|
133 |
</Component>
|
|
134 |
<Component class="javax.swing.JCheckBox" name="nonOpaqueChb">
|
|
135 |
<Properties>
|
|
136 |
<Property name="text" type="java.lang.String" value="Non Opaque Frame"/>
|
|
137 |
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
138 |
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
|
|
139 |
<EmptyBorder bottom="0" left="0" right="0" top="0"/>
|
|
140 |
</Border>
|
|
141 |
</Property>
|
|
142 |
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
|
143 |
<Insets value="[0, 0, 0, 0]"/>
|
|
144 |
</Property>
|
|
145 |
</Properties>
|
|
146 |
<Events>
|
|
147 |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="nonOpaqueChbActionPerformed"/>
|
|
148 |
</Events>
|
|
149 |
</Component>
|
|
150 |
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
|
|
151 |
<AuxValues>
|
|
152 |
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
|
153 |
</AuxValues>
|
|
154 |
|
|
155 |
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
|
|
156 |
<SubComponents>
|
|
157 |
<Component class="javax.swing.JTextArea" name="jTextArea1">
|
|
158 |
<Properties>
|
|
159 |
<Property name="columns" type="int" value="20"/>
|
|
160 |
<Property name="rows" type="int" value="5"/>
|
|
161 |
<Property name="text" type="java.lang.String" value="Create translucent and/or shaped, or
non-opaque frame. Make sure it behaves
correctly (no artifacts left on the screen
when dragging - if dragging is possible).
Click "Passed" if the test behaves correctly,
"Falied" otherwise."/>
|
|
162 |
</Properties>
|
|
163 |
</Component>
|
|
164 |
</SubComponents>
|
|
165 |
</Container>
|
|
166 |
<Component class="javax.swing.JLabel" name="jLabel2">
|
|
167 |
<Properties>
|
|
168 |
<Property name="text" type="java.lang.String" value="Instructions:"/>
|
|
169 |
</Properties>
|
|
170 |
</Component>
|
|
171 |
<Component class="javax.swing.JButton" name="passedBtn">
|
|
172 |
<Properties>
|
|
173 |
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
174 |
<Color blue="64" green="ff" red="81" type="rgb"/>
|
|
175 |
</Property>
|
|
176 |
<Property name="text" type="java.lang.String" value="Passed"/>
|
|
177 |
</Properties>
|
|
178 |
<Events>
|
|
179 |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="passedBtnActionPerformed"/>
|
|
180 |
</Events>
|
|
181 |
</Component>
|
|
182 |
<Component class="javax.swing.JButton" name="failedBtn">
|
|
183 |
<Properties>
|
|
184 |
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
|
185 |
<Color blue="0" green="0" id="red" palette="1" red="ff" type="palette"/>
|
|
186 |
</Property>
|
|
187 |
<Property name="text" type="java.lang.String" value="Failed"/>
|
|
188 |
</Properties>
|
|
189 |
<Events>
|
|
190 |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="failedBtnActionPerformed"/>
|
|
191 |
</Events>
|
|
192 |
</Component>
|
|
193 |
<Component class="javax.swing.JToggleButton" name="createFrameBtn">
|
|
194 |
<Properties>
|
|
195 |
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
|
|
196 |
<ComponentRef name="createDisposeGrp"/>
|
|
197 |
</Property>
|
|
198 |
<Property name="text" type="java.lang.String" value="Create Frame"/>
|
|
199 |
</Properties>
|
|
200 |
<Events>
|
|
201 |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="createFrameBtnActionPerformed"/>
|
|
202 |
</Events>
|
|
203 |
</Component>
|
|
204 |
<Component class="javax.swing.JToggleButton" name="disposeFrameBtn">
|
|
205 |
<Properties>
|
|
206 |
<Property name="buttonGroup" type="javax.swing.ButtonGroup" editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
|
|
207 |
<ComponentRef name="createDisposeGrp"/>
|
|
208 |
</Property>
|
|
209 |
<Property name="selected" type="boolean" value="true"/>
|
|
210 |
<Property name="text" type="java.lang.String" value="Dispose Frame"/>
|
|
211 |
</Properties>
|
|
212 |
<Events>
|
|
213 |
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="disposeFrameBtnActionPerformed"/>
|
|
214 |
</Events>
|
|
215 |
</Component>
|
|
216 |
<Component class="javax.swing.JCheckBox" name="useSwingCb">
|
|
217 |
<Properties>
|
|
218 |
<Property name="text" type="java.lang.String" value="Use JFrame"/>
|
|
219 |
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
|
|
220 |
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
|
|
221 |
<EmptyBorder bottom="0" left="0" right="0" top="0"/>
|
|
222 |
</Border>
|
|
223 |
</Property>
|
|
224 |
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
|
225 |
<Insets value="[0, 0, 0, 0]"/>
|
|
226 |
</Property>
|
|
227 |
</Properties>
|
|
228 |
</Component>
|
|
229 |
</SubComponents>
|
|
230 |
</Form>
|