summary refs log tree commit diff stats
path: root/Four Puzzle Editor/src/com
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2009-02-16 18:23:44 -0500
committerStarla Insigna <hatkirby@fourisland.com>2009-02-16 18:23:44 -0500
commitb80b3ab6838595aa016b285c4d5f77c15a5446f6 (patch)
treec82ffcc126501f64a66db299ea966d2e3adcf95a /Four Puzzle Editor/src/com
parentf270b450844f40ffed4282869f2812d1dbd41f06 (diff)
downloadfourpuzzle-b80b3ab6838595aa016b285c4d5f77c15a5446f6.tar.gz
fourpuzzle-b80b3ab6838595aa016b285c4d5f77c15a5446f6.tar.bz2
fourpuzzle-b80b3ab6838595aa016b285c4d5f77c15a5446f6.zip
Editor: Created layout
Refs #10
Diffstat (limited to 'Four Puzzle Editor/src/com')
-rw-r--r--Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.form89
-rw-r--r--Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.java50
2 files changed, 130 insertions, 9 deletions
diff --git a/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.form b/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.form index d26c88d..df2d053 100644 --- a/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.form +++ b/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.form
@@ -10,15 +10,94 @@
10 <Layout> 10 <Layout>
11 <DimensionLayout dim="0"> 11 <DimensionLayout dim="0">
12 <Group type="103" groupAlignment="0" attributes="0"> 12 <Group type="103" groupAlignment="0" attributes="0">
13 <EmptySpace min="0" pref="400" max="32767" attributes="0"/> 13 <Component id="jSplitPane1" alignment="0" min="-2" pref="838" max="-2" attributes="0"/>
14 </Group> 14 </Group>
15 </DimensionLayout> 15 </DimensionLayout>
16 <DimensionLayout dim="1"> 16 <DimensionLayout dim="1">
17 <Group type="103" groupAlignment="0" attributes="0"> 17 <Group type="103" groupAlignment="0" attributes="0">
18 <EmptySpace min="0" pref="252" max="32767" attributes="0"/> 18 <Component id="jSplitPane1" alignment="0" min="-2" pref="480" max="-2" attributes="0"/>
19 </Group> 19 </Group>
20 </DimensionLayout> 20 </DimensionLayout>
21 </Layout> 21 </Layout>
22 <SubComponents>
23 <Container class="javax.swing.JSplitPane" name="jSplitPane1">
24 <Properties>
25 <Property name="name" type="java.lang.String" value="jSplitPane1" noResource="true"/>
26 </Properties>
27
28 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
29 <SubComponents>
30 <Container class="javax.swing.JSplitPane" name="jSplitPane2">
31 <Properties>
32 <Property name="orientation" type="int" value="0"/>
33 <Property name="name" type="java.lang.String" value="jSplitPane2" noResource="true"/>
34 </Properties>
35 <Constraints>
36 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
37 <JSplitPaneConstraints position="left"/>
38 </Constraint>
39 </Constraints>
40
41 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout"/>
42 <SubComponents>
43 <Container class="javax.swing.JScrollPane" name="jScrollPane1">
44 <Properties>
45 <Property name="name" type="java.lang.String" value="jScrollPane1" noResource="true"/>
46 </Properties>
47 <AuxValues>
48 <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
49 </AuxValues>
50 <Constraints>
51 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
52 <JSplitPaneConstraints position="bottom"/>
53 </Constraint>
54 </Constraints>
55
56 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
57 <SubComponents>
58 <Component class="javax.swing.JTree" name="jTree1">
59 <Properties>
60 <Property name="enabled" type="boolean" value="false"/>
61 <Property name="name" type="java.lang.String" value="jTree1" noResource="true"/>
62 </Properties>
63 </Component>
64 </SubComponents>
65 </Container>
66 <Container class="javax.swing.JScrollPane" name="jScrollPane3">
67 <Properties>
68 <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
69 <Dimension value="[192, 320]"/>
70 </Property>
71 <Property name="name" type="java.lang.String" value="jScrollPane3" noResource="true"/>
72 </Properties>
73 <Constraints>
74 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
75 <JSplitPaneConstraints position="left"/>
76 </Constraint>
77 </Constraints>
78
79 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
80 </Container>
81 </SubComponents>
82 </Container>
83 <Container class="javax.swing.JScrollPane" name="jScrollPane2">
84 <Properties>
85 <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
86 <Dimension value="[640, 480]"/>
87 </Property>
88 <Property name="name" type="java.lang.String" value="jScrollPane2" noResource="true"/>
89 </Properties>
90 <Constraints>
91 <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout" value="org.netbeans.modules.form.compat2.layouts.support.JSplitPaneSupportLayout$JSplitPaneConstraintsDescription">
92 <JSplitPaneConstraints position="right"/>
93 </Constraint>
94 </Constraints>
95
96 <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
97 </Container>
98 </SubComponents>
99 </Container>
100 </SubComponents>
22 </Container> 101 </Container>
23 <Container class="javax.swing.JMenuBar" name="menuBar"> 102 <Container class="javax.swing.JMenuBar" name="menuBar">
24 <Properties> 103 <Properties>
@@ -87,11 +166,11 @@
87 <Layout> 166 <Layout>
88 <DimensionLayout dim="0"> 167 <DimensionLayout dim="0">
89 <Group type="103" groupAlignment="0" attributes="0"> 168 <Group type="103" groupAlignment="0" attributes="0">
90 <Component id="statusPanelSeparator" alignment="0" pref="400" max="32767" attributes="0"/> 169 <Component id="statusPanelSeparator" alignment="0" pref="838" max="32767" attributes="0"/>
91 <Group type="102" alignment="0" attributes="0"> 170 <Group type="102" alignment="0" attributes="0">
92 <EmptySpace max="-2" attributes="0"/> 171 <EmptySpace max="-2" attributes="0"/>
93 <Component id="statusMessageLabel" min="-2" max="-2" attributes="0"/> 172 <Component id="statusMessageLabel" min="-2" max="-2" attributes="0"/>
94 <EmptySpace pref="226" max="32767" attributes="0"/> 173 <EmptySpace pref="656" max="32767" attributes="0"/>
95 <Component id="progressBar" min="-2" max="-2" attributes="0"/> 174 <Component id="progressBar" min="-2" max="-2" attributes="0"/>
96 <EmptySpace max="-2" attributes="0"/> 175 <EmptySpace max="-2" attributes="0"/>
97 <Component id="statusAnimationLabel" min="-2" max="-2" attributes="0"/> 176 <Component id="statusAnimationLabel" min="-2" max="-2" attributes="0"/>
@@ -163,6 +242,6 @@
163 <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> 242 <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
164 <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> 243 <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
165 <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> 244 <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
166 <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,44,0,0,1,-112"/> 245 <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,-2,0,0,3,70"/>
167 </AuxValues> 246 </AuxValues>
168</Form> 247</Form>
diff --git a/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.java b/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.java index e32a4dc..61988ea 100644 --- a/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.java +++ b/Four Puzzle Editor/src/com/fourisland/fourpuzzle/editor/FourPuzzleEditorView.java
@@ -4,6 +4,7 @@
4 4
5package com.fourisland.fourpuzzle.editor; 5package com.fourisland.fourpuzzle.editor;
6 6
7import java.awt.Dimension;
7import org.jdesktop.application.Action; 8import org.jdesktop.application.Action;
8import org.jdesktop.application.ResourceMap; 9import org.jdesktop.application.ResourceMap;
9import org.jdesktop.application.SingleFrameApplication; 10import org.jdesktop.application.SingleFrameApplication;
@@ -15,6 +16,7 @@ import javax.swing.Timer;
15import javax.swing.Icon; 16import javax.swing.Icon;
16import javax.swing.JDialog; 17import javax.swing.JDialog;
17import javax.swing.JFrame; 18import javax.swing.JFrame;
19import javax.swing.ScrollPaneConstants;
18 20
19/** 21/**
20 * The application's main frame. 22 * The application's main frame.
@@ -79,6 +81,11 @@ public class FourPuzzleEditorView extends FrameView {
79 } 81 }
80 } 82 }
81 }); 83 });
84
85 jScrollPane3.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
86 jScrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
87 jScrollPane3.getViewport().setViewSize(new Dimension(192, 320));
88 jScrollPane3.setSize(192, 320);
82 } 89 }
83 90
84 @Action 91 @Action
@@ -101,6 +108,12 @@ public class FourPuzzleEditorView extends FrameView {
101 private void initComponents() { 108 private void initComponents() {
102 109
103 mainPanel = new javax.swing.JPanel(); 110 mainPanel = new javax.swing.JPanel();
111 jSplitPane1 = new javax.swing.JSplitPane();
112 jSplitPane2 = new javax.swing.JSplitPane();
113 jScrollPane1 = new javax.swing.JScrollPane();
114 jTree1 = new javax.swing.JTree();
115 jScrollPane3 = new javax.swing.JScrollPane();
116 jScrollPane2 = new javax.swing.JScrollPane();
104 menuBar = new javax.swing.JMenuBar(); 117 menuBar = new javax.swing.JMenuBar();
105 javax.swing.JMenu fileMenu = new javax.swing.JMenu(); 118 javax.swing.JMenu fileMenu = new javax.swing.JMenu();
106 javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem(); 119 javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
@@ -114,15 +127,38 @@ public class FourPuzzleEditorView extends FrameView {
114 127
115 mainPanel.setName("mainPanel"); // NOI18N 128 mainPanel.setName("mainPanel"); // NOI18N
116 129
130 jSplitPane1.setName("jSplitPane1"); // NOI18N
131
132 jSplitPane2.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
133 jSplitPane2.setName("jSplitPane2"); // NOI18N
134
135 jScrollPane1.setName("jScrollPane1"); // NOI18N
136
137 jTree1.setEnabled(false);
138 jTree1.setName("jTree1"); // NOI18N
139 jScrollPane1.setViewportView(jTree1);
140
141 jSplitPane2.setBottomComponent(jScrollPane1);
142
143 jScrollPane3.setMinimumSize(new java.awt.Dimension(192, 320));
144 jScrollPane3.setName("jScrollPane3"); // NOI18N
145 jSplitPane2.setLeftComponent(jScrollPane3);
146
147 jSplitPane1.setLeftComponent(jSplitPane2);
148
149 jScrollPane2.setMinimumSize(new java.awt.Dimension(640, 480));
150 jScrollPane2.setName("jScrollPane2"); // NOI18N
151 jSplitPane1.setRightComponent(jScrollPane2);
152
117 javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel); 153 javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
118 mainPanel.setLayout(mainPanelLayout); 154 mainPanel.setLayout(mainPanelLayout);
119 mainPanelLayout.setHorizontalGroup( 155 mainPanelLayout.setHorizontalGroup(
120 mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 156 mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
121 .addGap(0, 400, Short.MAX_VALUE) 157 .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 838, javax.swing.GroupLayout.PREFERRED_SIZE)
122 ); 158 );
123 mainPanelLayout.setVerticalGroup( 159 mainPanelLayout.setVerticalGroup(
124 mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 160 mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
125 .addGap(0, 252, Short.MAX_VALUE) 161 .addComponent(jSplitPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 480, javax.swing.GroupLayout.PREFERRED_SIZE)
126 ); 162 );
127 163
128 menuBar.setName("menuBar"); // NOI18N 164 menuBar.setName("menuBar"); // NOI18N
@@ -162,11 +198,11 @@ public class FourPuzzleEditorView extends FrameView {
162 statusPanel.setLayout(statusPanelLayout); 198 statusPanel.setLayout(statusPanelLayout);
163 statusPanelLayout.setHorizontalGroup( 199 statusPanelLayout.setHorizontalGroup(
164 statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) 200 statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
165 .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE) 201 .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 838, Short.MAX_VALUE)
166 .addGroup(statusPanelLayout.createSequentialGroup() 202 .addGroup(statusPanelLayout.createSequentialGroup()
167 .addContainerGap() 203 .addContainerGap()
168 .addComponent(statusMessageLabel) 204 .addComponent(statusMessageLabel)
169 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 226, Short.MAX_VALUE) 205 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 656, Short.MAX_VALUE)
170 .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) 206 .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
171 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) 207 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
172 .addComponent(statusAnimationLabel) 208 .addComponent(statusAnimationLabel)
@@ -190,6 +226,12 @@ public class FourPuzzleEditorView extends FrameView {
190 }// </editor-fold>//GEN-END:initComponents 226 }// </editor-fold>//GEN-END:initComponents
191 227
192 // Variables declaration - do not modify//GEN-BEGIN:variables 228 // Variables declaration - do not modify//GEN-BEGIN:variables
229 private javax.swing.JScrollPane jScrollPane1;
230 private javax.swing.JScrollPane jScrollPane2;
231 private javax.swing.JScrollPane jScrollPane3;
232 private javax.swing.JSplitPane jSplitPane1;
233 private javax.swing.JSplitPane jSplitPane2;
234 private javax.swing.JTree jTree1;
193 private javax.swing.JPanel mainPanel; 235 private javax.swing.JPanel mainPanel;
194 private javax.swing.JMenuBar menuBar; 236 private javax.swing.JMenuBar menuBar;
195 private javax.swing.JProgressBar progressBar; 237 private javax.swing.JProgressBar progressBar;