Skip to content

Commit bf2aa9d

Browse files
authored
Add files via upload
1 parent 0fa0cb1 commit bf2aa9d

File tree

32 files changed

+5302
-0
lines changed

32 files changed

+5302
-0
lines changed

12.11_Printer/Printer/build.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See commented blocks below for -->
3+
<!-- some examples of how to customize the build. -->
4+
<!-- (If you delete it and reopen the project it will be recreated.) -->
5+
<!-- By default, only the Clean and Build commands use this build script. -->
6+
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7+
<!-- the Compile on Save feature is turned off for the project. -->
8+
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9+
<!-- in the project's Project Properties dialog box.-->
10+
<project name="Printer" default="default" basedir=".">
11+
<description>Builds, tests, and runs the project Printer.</description>
12+
<import file="nbproject/build-impl.xml"/>
13+
<!--
14+
15+
There exist several targets which are by default empty and which can be
16+
used for execution of your tasks. These targets are usually executed
17+
before and after some main targets. They are:
18+
19+
-pre-init: called before initialization of project properties
20+
-post-init: called after initialization of project properties
21+
-pre-compile: called before javac compilation
22+
-post-compile: called after javac compilation
23+
-pre-compile-single: called before javac compilation of single file
24+
-post-compile-single: called after javac compilation of single file
25+
-pre-compile-test: called before javac compilation of JUnit tests
26+
-post-compile-test: called after javac compilation of JUnit tests
27+
-pre-compile-test-single: called before javac compilation of single JUnit test
28+
-post-compile-test-single: called after javac compilation of single JUunit test
29+
-pre-jar: called before JAR building
30+
-post-jar: called after JAR building
31+
-post-clean: called after cleaning build products
32+
33+
(Targets beginning with '-' are not intended to be called on their own.)
34+
35+
Example of inserting an obfuscator after compilation could look like this:
36+
37+
<target name="-post-compile">
38+
<obfuscate>
39+
<fileset dir="${build.classes.dir}"/>
40+
</obfuscate>
41+
</target>
42+
43+
For list of available properties check the imported
44+
nbproject/build-impl.xml file.
45+
46+
47+
Another way to customize the build is by overriding existing main targets.
48+
The targets of interest are:
49+
50+
-init-macrodef-javac: defines macro for javac compilation
51+
-init-macrodef-junit: defines macro for junit execution
52+
-init-macrodef-debug: defines macro for class debugging
53+
-init-macrodef-java: defines macro for class execution
54+
-do-jar: JAR building
55+
run: execution of project
56+
-javadoc-build: Javadoc generation
57+
test-report: JUnit report generation
58+
59+
An example of overriding the target for project execution could look like this:
60+
61+
<target name="run" depends="Printer-impl.jar">
62+
<exec dir="bin" executable="launcher.exe">
63+
<arg file="${dist.jar}"/>
64+
</exec>
65+
</target>
66+
67+
Notice that the overridden target depends on the jar target and not only on
68+
the compile target as the regular run target does. Again, for a list of available
69+
properties which you can use, check the target you are overriding in the
70+
nbproject/build-impl.xml file.
71+
72+
-->
73+
</project>
530 Bytes
Binary file not shown.
5.75 KB
Binary file not shown.
Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
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+
<NonVisualComponents>
5+
<Component class="javax.swing.ButtonGroup" name="buttonGroup1">
6+
</Component>
7+
<Component class="javax.swing.ButtonGroup" name="buttonGroup2">
8+
</Component>
9+
<Component class="javax.swing.ButtonGroup" name="buttonGroup3">
10+
</Component>
11+
</NonVisualComponents>
12+
<Properties>
13+
<Property name="defaultCloseOperation" type="int" value="3"/>
14+
</Properties>
15+
<SyntheticProperties>
16+
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
17+
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
18+
</SyntheticProperties>
19+
<AuxValues>
20+
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
21+
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
22+
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
23+
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
24+
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
25+
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
26+
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
27+
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
28+
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
29+
</AuxValues>
30+
31+
<Layout>
32+
<DimensionLayout dim="0">
33+
<Group type="103" groupAlignment="0" attributes="0">
34+
<Group type="102" attributes="0">
35+
<EmptySpace max="-2" attributes="0"/>
36+
<Group type="103" groupAlignment="0" attributes="0">
37+
<Group type="102" alignment="0" attributes="0">
38+
<Component id="textArea1" min="-2" pref="72" max="-2" attributes="0"/>
39+
<EmptySpace type="separate" max="-2" attributes="0"/>
40+
<Group type="103" groupAlignment="0" attributes="0">
41+
<Component id="imageCheckBox" min="-2" max="-2" attributes="0"/>
42+
<Component id="textCheckBox" min="-2" max="-2" attributes="0"/>
43+
<Component id="codeCheckBox" min="-2" max="-2" attributes="0"/>
44+
</Group>
45+
<EmptySpace type="separate" max="-2" attributes="0"/>
46+
<Component id="textArea2" min="-2" pref="72" max="-2" attributes="0"/>
47+
<EmptySpace type="separate" max="-2" attributes="0"/>
48+
<Group type="103" groupAlignment="0" attributes="0">
49+
<Component id="selectionRadioButton" min="-2" max="-2" attributes="0"/>
50+
<Component id="allRadioButton" min="-2" max="-2" attributes="0"/>
51+
<Component id="appletRadioButton" min="-2" max="-2" attributes="0"/>
52+
</Group>
53+
<EmptySpace type="separate" max="-2" attributes="0"/>
54+
<Component id="textArea3" min="-2" pref="72" max="-2" attributes="0"/>
55+
</Group>
56+
<Component id="jLabel1" alignment="0" min="-2" max="-2" attributes="0"/>
57+
<Group type="102" alignment="0" attributes="0">
58+
<Component id="printQualityLabel" min="-2" max="-2" attributes="0"/>
59+
<EmptySpace type="separate" max="-2" attributes="0"/>
60+
<Component id="QualityComboBox" min="-2" max="-2" attributes="0"/>
61+
<EmptySpace type="separate" max="-2" attributes="0"/>
62+
<Component id="printToFileCheckBox" min="-2" max="-2" attributes="0"/>
63+
</Group>
64+
</Group>
65+
<EmptySpace type="separate" max="-2" attributes="0"/>
66+
<Group type="103" groupAlignment="1" max="-2" attributes="0">
67+
<Component id="cancelButton" alignment="0" max="32767" attributes="0"/>
68+
<Component id="helpButton" alignment="0" max="32767" attributes="0"/>
69+
<Component id="setupButton" alignment="0" max="32767" attributes="0"/>
70+
<Component id="okButton" min="-2" pref="87" max="-2" attributes="0"/>
71+
</Group>
72+
<EmptySpace max="32767" attributes="0"/>
73+
</Group>
74+
</Group>
75+
</DimensionLayout>
76+
<DimensionLayout dim="1">
77+
<Group type="103" groupAlignment="0" attributes="0">
78+
<Group type="102" alignment="0" attributes="0">
79+
<EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
80+
<Group type="103" groupAlignment="0" attributes="0">
81+
<Group type="102" attributes="0">
82+
<Component id="okButton" min="-2" max="-2" attributes="0"/>
83+
<EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
84+
<Component id="cancelButton" min="-2" max="-2" attributes="0"/>
85+
<EmptySpace type="separate" max="-2" attributes="0"/>
86+
<Component id="setupButton" min="-2" max="-2" attributes="0"/>
87+
<EmptySpace type="separate" max="-2" attributes="0"/>
88+
<Component id="helpButton" min="-2" max="-2" attributes="0"/>
89+
</Group>
90+
<Group type="102" attributes="0">
91+
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
92+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
93+
<Group type="103" groupAlignment="0" attributes="0">
94+
<Component id="textArea1" min="-2" pref="106" max="-2" attributes="0"/>
95+
<Group type="102" alignment="0" attributes="0">
96+
<Component id="imageCheckBox" min="-2" max="-2" attributes="0"/>
97+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
98+
<Component id="textCheckBox" min="-2" max="-2" attributes="0"/>
99+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
100+
<Component id="codeCheckBox" min="-2" max="-2" attributes="0"/>
101+
</Group>
102+
<Component id="textArea2" min="-2" pref="108" max="-2" attributes="0"/>
103+
<Group type="102" attributes="0">
104+
<Component id="selectionRadioButton" min="-2" max="-2" attributes="0"/>
105+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
106+
<Component id="allRadioButton" min="-2" max="-2" attributes="0"/>
107+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
108+
<Component id="appletRadioButton" min="-2" max="-2" attributes="0"/>
109+
</Group>
110+
<Component id="textArea3" min="-2" pref="108" max="-2" attributes="0"/>
111+
</Group>
112+
<EmptySpace type="separate" max="-2" attributes="0"/>
113+
<Group type="103" groupAlignment="3" attributes="0">
114+
<Component id="printQualityLabel" alignment="3" min="-2" max="-2" attributes="0"/>
115+
<Component id="QualityComboBox" alignment="3" min="-2" max="-2" attributes="0"/>
116+
<Component id="printToFileCheckBox" alignment="3" min="-2" max="-2" attributes="0"/>
117+
</Group>
118+
</Group>
119+
</Group>
120+
<EmptySpace pref="16" max="32767" attributes="0"/>
121+
</Group>
122+
</Group>
123+
</DimensionLayout>
124+
</Layout>
125+
<SubComponents>
126+
<Component class="javax.swing.JTextField" name="textArea1">
127+
</Component>
128+
<Component class="javax.swing.JLabel" name="jLabel1">
129+
<Properties>
130+
<Property name="text" type="java.lang.String" value="Printer: MyPrinter"/>
131+
</Properties>
132+
</Component>
133+
<Component class="javax.swing.JCheckBox" name="imageCheckBox">
134+
<Properties>
135+
<Property name="text" type="java.lang.String" value="Image"/>
136+
</Properties>
137+
</Component>
138+
<Component class="javax.swing.JCheckBox" name="textCheckBox">
139+
<Properties>
140+
<Property name="text" type="java.lang.String" value="Text"/>
141+
</Properties>
142+
</Component>
143+
<Component class="javax.swing.JCheckBox" name="codeCheckBox">
144+
<Properties>
145+
<Property name="text" type="java.lang.String" value="Code"/>
146+
</Properties>
147+
</Component>
148+
<Component class="javax.swing.JTextField" name="textArea2">
149+
</Component>
150+
<Component class="javax.swing.JRadioButton" name="selectionRadioButton">
151+
<Properties>
152+
<Property name="text" type="java.lang.String" value="Selection"/>
153+
</Properties>
154+
</Component>
155+
<Component class="javax.swing.JRadioButton" name="allRadioButton">
156+
<Properties>
157+
<Property name="text" type="java.lang.String" value="All"/>
158+
</Properties>
159+
</Component>
160+
<Component class="javax.swing.JRadioButton" name="appletRadioButton">
161+
<Properties>
162+
<Property name="text" type="java.lang.String" value="Applet"/>
163+
</Properties>
164+
</Component>
165+
<Component class="javax.swing.JTextField" name="textArea3">
166+
</Component>
167+
<Component class="javax.swing.JButton" name="okButton">
168+
<Properties>
169+
<Property name="text" type="java.lang.String" value="OK"/>
170+
</Properties>
171+
</Component>
172+
<Component class="javax.swing.JButton" name="cancelButton">
173+
<Properties>
174+
<Property name="text" type="java.lang.String" value="Cancel"/>
175+
</Properties>
176+
</Component>
177+
<Component class="javax.swing.JButton" name="setupButton">
178+
<Properties>
179+
<Property name="text" type="java.lang.String" value="Setup..."/>
180+
</Properties>
181+
</Component>
182+
<Component class="javax.swing.JButton" name="helpButton">
183+
<Properties>
184+
<Property name="text" type="java.lang.String" value="Help"/>
185+
</Properties>
186+
</Component>
187+
<Component class="javax.swing.JLabel" name="printQualityLabel">
188+
<Properties>
189+
<Property name="text" type="java.lang.String" value="Print Quality"/>
190+
</Properties>
191+
</Component>
192+
<Component class="javax.swing.JComboBox" name="QualityComboBox">
193+
<Properties>
194+
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
195+
<StringArray count="3">
196+
<StringItem index="0" value="High"/>
197+
<StringItem index="1" value="Medium"/>
198+
<StringItem index="2" value="Low"/>
199+
</StringArray>
200+
</Property>
201+
</Properties>
202+
<AuxValues>
203+
<AuxValue name="JavaCodeGenerator_TypeParameters" type="java.lang.String" value="&lt;String&gt;"/>
204+
</AuxValues>
205+
</Component>
206+
<Component class="javax.swing.JCheckBox" name="printToFileCheckBox">
207+
<Properties>
208+
<Property name="text" type="java.lang.String" value="Print to File"/>
209+
</Properties>
210+
</Component>
211+
</SubComponents>
212+
</Form>

12.11_Printer/Printer/manifest.mf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
X-COMMENT: Main-Class will be added automatically by build
3+

0 commit comments

Comments
 (0)