Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit cc29e00

Browse files
committed
source code (modified)
1 parent 02da6e7 commit cc29e00

4 files changed

Lines changed: 153 additions & 39 deletions

File tree

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# About Fork
2-
This is not heavily modified, small changes (for now) version
3-
(to pcan/author of java4d - it supports S.W.I.N.E. Models, however you cant create new models and you should continue working on it
4-
also please contact me on my site)
5-
6-
---Bellow is original pcan/java-4d---
71
# java-4d
82

93
A 3D model editor for Codename Panzers game.

nbactions.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<actions>
3+
<action>
4+
<actionName>run</actionName>
5+
<packagings>
6+
<packaging>jar</packaging>
7+
</packagings>
8+
<goals>
9+
<goal>process-classes</goal>
10+
<goal>org.codehaus.mojo:exec-maven-plugin:1.2.1:exec</goal>
11+
</goals>
12+
<properties>
13+
<exec.args>-classpath %classpath java4d.Form1</exec.args>
14+
<exec.executable>java</exec.executable>
15+
</properties>
16+
</action>
17+
</actions>

src/main/java/java4d/Form1.form

Lines changed: 77 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<Property name="defaultCloseOperation" type="int" value="3"/>
3939
<Property name="title" type="java.lang.String" value="4D EDITOR"/>
4040
</Properties>
41+
<AccessibilityProperties>
42+
<Property name="AccessibleContext.accessibleName" type="java.lang.String" value="Stormregion 4D Editor 0.2"/>
43+
</AccessibilityProperties>
4144
<SyntheticProperties>
4245
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
4346
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
@@ -57,24 +60,44 @@
5760
<Layout>
5861
<DimensionLayout dim="0">
5962
<Group type="103" groupAlignment="0" attributes="0">
60-
<Group type="102" alignment="1" attributes="0">
61-
<EmptySpace max="-2" attributes="0"/>
63+
<Group type="102" attributes="0">
6264
<Group type="103" groupAlignment="0" attributes="0">
6365
<Group type="102" attributes="0">
66+
<EmptySpace max="32767" attributes="0"/>
67+
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
68+
</Group>
69+
<Group type="102" alignment="1" attributes="0">
6470
<Group type="103" groupAlignment="0" attributes="0">
65-
<Component id="jButton5" max="32767" attributes="1"/>
66-
<Component id="jToggleButton1" max="32767" attributes="0"/>
67-
<Component id="jButton4" alignment="1" max="32767" attributes="1"/>
68-
<Component id="jButton1" alignment="0" max="32767" attributes="1"/>
71+
<Group type="102" attributes="0">
72+
<Group type="103" groupAlignment="0" attributes="0">
73+
<Component id="jButton5" max="32767" attributes="1"/>
74+
<Component id="jToggleButton1" max="32767" attributes="0"/>
75+
<Component id="jButton4" alignment="1" max="32767" attributes="1"/>
76+
<Component id="jButton1" alignment="0" max="32767" attributes="1"/>
77+
</Group>
78+
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
79+
</Group>
80+
<Group type="102" attributes="0">
81+
<Component id="jScrollPane2" max="32767" attributes="0"/>
82+
<EmptySpace max="-2" attributes="0"/>
83+
</Group>
84+
<Group type="102" alignment="1" attributes="0">
85+
<EmptySpace min="0" pref="10" max="32767" attributes="0"/>
86+
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
87+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
88+
</Group>
89+
<Group type="102" attributes="0">
90+
<EmptySpace max="-2" attributes="0"/>
91+
<Group type="103" groupAlignment="0" attributes="0">
92+
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
93+
<Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
94+
</Group>
95+
<EmptySpace max="32767" attributes="0"/>
96+
</Group>
6997
</Group>
70-
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
71-
</Group>
72-
<Group type="102" alignment="0" attributes="0">
73-
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
74-
<EmptySpace max="32767" attributes="0"/>
98+
<Component id="jScrollPane1" min="-2" pref="403" max="-2" attributes="0"/>
7599
</Group>
76100
</Group>
77-
<Component id="jScrollPane1" min="-2" pref="403" max="-2" attributes="0"/>
78101
<EmptySpace max="-2" attributes="0"/>
79102
</Group>
80103
</Group>
@@ -83,7 +106,7 @@
83106
<Group type="103" groupAlignment="0" attributes="0">
84107
<Group type="102" alignment="1" attributes="0">
85108
<Group type="103" groupAlignment="1" attributes="0">
86-
<Group type="102" alignment="0" attributes="0">
109+
<Group type="102" alignment="1" attributes="0">
87110
<EmptySpace min="-2" pref="17" max="-2" attributes="0"/>
88111
<Component id="jButton5" min="-2" max="-2" attributes="0"/>
89112
<EmptySpace type="unrelated" max="-2" attributes="0"/>
@@ -92,15 +115,23 @@
92115
<Component id="jButton1" min="-2" max="-2" attributes="0"/>
93116
<EmptySpace type="unrelated" max="-2" attributes="0"/>
94117
<Component id="jToggleButton1" min="-2" max="-2" attributes="0"/>
95-
<EmptySpace max="32767" attributes="0"/>
118+
<EmptySpace type="separate" max="-2" attributes="0"/>
96119
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
120+
<EmptySpace max="-2" attributes="0"/>
121+
<Component id="jLabel3" min="-2" max="-2" attributes="0"/>
122+
<EmptySpace max="-2" attributes="0"/>
123+
<Component id="jLabel4" min="-2" max="-2" attributes="0"/>
124+
<EmptySpace max="-2" attributes="0"/>
125+
<Component id="jScrollPane2" min="-2" pref="61" max="-2" attributes="0"/>
126+
<EmptySpace pref="8" max="32767" attributes="0"/>
97127
</Group>
98-
<Group type="102" alignment="1" attributes="0">
128+
<Group type="102" attributes="0">
99129
<EmptySpace max="-2" attributes="0"/>
100-
<Component id="jScrollPane1" pref="315" max="32767" attributes="0"/>
130+
<Component id="jScrollPane1" pref="0" max="32767" attributes="0"/>
101131
</Group>
102132
</Group>
103-
<EmptySpace min="-2" pref="20" max="-2" attributes="0"/>
133+
<EmptySpace max="-2" attributes="0"/>
134+
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
104135
</Group>
105136
</Group>
106137
</DimensionLayout>
@@ -183,5 +214,34 @@
183214
<Property name="text" type="java.lang.String" value="v0.2-SNAPSHOT"/>
184215
</Properties>
185216
</Component>
217+
<Component class="javax.swing.JLabel" name="jLabel2">
218+
<Properties>
219+
<Property name="text" type="java.lang.String" value="*Compiled by bads.tm in 2017. https://thebads.weebly.com also on youtube"/>
220+
</Properties>
221+
</Component>
222+
<Component class="javax.swing.JLabel" name="jLabel3">
223+
<Properties>
224+
<Property name="text" type="java.lang.String" value="Based on source code under MIT license from"/>
225+
</Properties>
226+
</Component>
227+
<Component class="javax.swing.JLabel" name="jLabel4">
228+
<Properties>
229+
<Property name="text" type="java.lang.String" value="https://github.com/pcan/java-4d"/>
230+
</Properties>
231+
</Component>
232+
<Container class="javax.swing.JScrollPane" name="jScrollPane2">
233+
<AuxValues>
234+
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
235+
</AuxValues>
236+
237+
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
238+
<SubComponents>
239+
<Component class="javax.swing.JTextPane" name="jTextPane1">
240+
<Properties>
241+
<Property name="text" type="java.lang.String" value="Notepad added by bads.tm"/>
242+
</Properties>
243+
</Component>
244+
</SubComponents>
245+
</Container>
186246
</SubComponents>
187247
</Form>

src/main/java/java4d/Form1.java

Lines changed: 59 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ private void initComponents() {
9393
jToggleButton1 = new javax.swing.JToggleButton();
9494
jButton5 = new javax.swing.JButton();
9595
jLabel1 = new javax.swing.JLabel();
96+
jLabel2 = new javax.swing.JLabel();
97+
jLabel3 = new javax.swing.JLabel();
98+
jLabel4 = new javax.swing.JLabel();
99+
jScrollPane2 = new javax.swing.JScrollPane();
100+
jTextPane1 = new javax.swing.JTextPane();
96101

97102
jMenu1.setText("Edit");
98103

@@ -165,31 +170,54 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
165170

166171
jLabel1.setText("v0.2-SNAPSHOT");
167172

173+
jLabel2.setText("*Compiled by bads.tm in 2017. https://thebads.weebly.com also on youtube");
174+
175+
jLabel3.setText("Based on source code under MIT license from");
176+
177+
jLabel4.setText("https://github.com/pcan/java-4d");
178+
179+
jTextPane1.setText("Notepad added by bads.tm");
180+
jScrollPane2.setViewportView(jTextPane1);
181+
168182
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
169183
getContentPane().setLayout(layout);
170184
layout.setHorizontalGroup(
171185
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
172-
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
173-
.addContainerGap()
186+
.addGroup(layout.createSequentialGroup()
174187
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
175188
.addGroup(layout.createSequentialGroup()
189+
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
190+
.addComponent(jLabel2))
191+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
176192
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
177-
.addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
178-
.addComponent(jToggleButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
179-
.addComponent(jButton4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
180-
.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
181-
.addGap(20, 20, 20))
182-
.addGroup(layout.createSequentialGroup()
183-
.addComponent(jLabel1)
184-
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
185-
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 403, javax.swing.GroupLayout.PREFERRED_SIZE)
193+
.addGroup(layout.createSequentialGroup()
194+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
195+
.addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
196+
.addComponent(jToggleButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
197+
.addComponent(jButton4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
198+
.addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
199+
.addGap(20, 20, 20))
200+
.addGroup(layout.createSequentialGroup()
201+
.addComponent(jScrollPane2)
202+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
203+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
204+
.addGap(0, 10, Short.MAX_VALUE)
205+
.addComponent(jLabel3)
206+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED))
207+
.addGroup(layout.createSequentialGroup()
208+
.addContainerGap()
209+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
210+
.addComponent(jLabel4)
211+
.addComponent(jLabel1))
212+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
213+
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 403, javax.swing.GroupLayout.PREFERRED_SIZE)))
186214
.addContainerGap())
187215
);
188216
layout.setVerticalGroup(
189217
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
190218
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
191219
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
192-
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
220+
.addGroup(layout.createSequentialGroup()
193221
.addGap(17, 17, 17)
194222
.addComponent(jButton5)
195223
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
@@ -198,14 +226,24 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
198226
.addComponent(jButton1)
199227
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
200228
.addComponent(jToggleButton1)
201-
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
202-
.addComponent(jLabel1))
229+
.addGap(18, 18, 18)
230+
.addComponent(jLabel1)
231+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
232+
.addComponent(jLabel3)
233+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
234+
.addComponent(jLabel4)
235+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
236+
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
237+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE))
203238
.addGroup(layout.createSequentialGroup()
204239
.addContainerGap()
205-
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 315, Short.MAX_VALUE)))
206-
.addGap(20, 20, 20))
240+
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
241+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
242+
.addComponent(jLabel2))
207243
);
208244

245+
getAccessibleContext().setAccessibleName("Stormregion 4D Editor 0.2");
246+
209247
pack();
210248
}// </editor-fold>//GEN-END:initComponents
211249

@@ -390,11 +428,16 @@ public void run() {
390428
public javax.swing.JButton jButton4;
391429
public javax.swing.JButton jButton5;
392430
public javax.swing.JLabel jLabel1;
431+
public javax.swing.JLabel jLabel2;
432+
public javax.swing.JLabel jLabel3;
433+
public javax.swing.JLabel jLabel4;
393434
public javax.swing.JMenu jMenu1;
394435
public javax.swing.JMenu jMenu3;
395436
public javax.swing.JMenuItem jMenuItem1;
396437
public javax.swing.JMenuItem jMenuItem2;
397438
public javax.swing.JScrollPane jScrollPane1;
439+
public javax.swing.JScrollPane jScrollPane2;
440+
public javax.swing.JTextPane jTextPane1;
398441
public javax.swing.JToggleButton jToggleButton1;
399442
public javax.swing.JTree jTree1;
400443
// End of variables declaration//GEN-END:variables

0 commit comments

Comments
 (0)