Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pengumpulan Tugas Besar 2 IF2210 Pemrograman Berorientasi Objek - Onilne Printer #7

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
31f1af2
Kerangka Printer Online
adwisatya May 16, 2014
ddc456a
Merge branch 'master' of https://github.com/GilangJulianS/if2210-tubes2
adwisatya May 16, 2014
f398829
Diagram Kelas
adwisatya May 16, 2014
0d4ff40
Time line kita. Update tiap ada rencana
adwisatya May 16, 2014
54096fd
Testing git netbeans
adwisatya May 16, 2014
8fce0a2
Testing git netbeans
adwisatya May 16, 2014
4bbdf0e
Change on server and client system
GilangJS May 16, 2014
6730114
Repackage
adwisatya May 16, 2014
ba44977
change package structure
GilangJS May 16, 2014
e05c7eb
Multirequest dari client
adwisatya May 16, 2014
ab0aef9
Multirequest dari client. CLient udah oke tinggal server.
adwisatya May 16, 2014
200f9ef
Penambahan kelas Printer & Controller nya
adwisatya May 17, 2014
d74d5f5
Penambahan kelas Printer & Controller nya
adwisatya May 17, 2014
b6ee4fc
Penambahan kelas Printer & Controller nya
adwisatya May 17, 2014
6879eb7
Udah bisa multirequest dari User, tapi masih belum realisasi pengirim…
adwisatya May 18, 2014
0da5617
ga guna
GilangJS May 18, 2014
70fc2a4
ga guna
GilangJS May 18, 2014
29d6b39
Udah bisa multirequest dari User, tapi masih belum realisasi pengirim…
adwisatya May 18, 2014
f155ce3
Udah bisa multirequest dari User, tapi masih belum realisasi pengirim…
adwisatya May 18, 2014
78bbb9c
metode kirim file
GilangJS May 18, 2014
27565bb
fix send file
GilangJS May 18, 2014
086262b
improved thread
GilangJS May 18, 2014
4702db6
automatically add new folder for each new user when upload
GilangJS May 18, 2014
ee056db
convert file
mamat-rahmat May 18, 2014
0094ac9
Merge branch 'master' of https://github.com/GilangJulianS/if2210-tubes2
mamat-rahmat May 18, 2014
69ab8ec
new Client for console and form mode
GilangJS May 18, 2014
4445311
Merge branch 'master' of https://github.com/GilangJulianS/if2210-tubes2
GilangJS May 18, 2014
9a6a25e
fix error by mamat
GilangJS May 18, 2014
d86a27b
Add Login
May 18, 2014
66634cb
main form work
GilangJS May 18, 2014
0748168
login with form
GilangJS May 18, 2014
6f678d4
mamat-rahmat May 19, 2014
5faff18
upload file gui
GilangJS May 19, 2014
ce376d1
Merge branch 'master' of https://github.com/GilangJulianS/if2210-tubes2
GilangJS May 19, 2014
8f5dd88
Merge origin/master
adwisatya May 19, 2014
d2031ff
change password
GilangJS May 19, 2014
281c781
change password
GilangJS May 19, 2014
eb1de25
"DOC PDF TXT udah bisa di konvert dan print"
adwisatya May 19, 2014
ec91089
change password
GilangJS May 19, 2014
911795a
formatted
GilangJS May 19, 2014
d362242
librari konverter
adwisatya May 19, 2014
a11e2c3
"DOC PDF TXT udah bisa di konvert dan print"
adwisatya May 19, 2014
0dd55d5
"test"
adwisatya May 19, 2014
4925df5
Revert ""test""
adwisatya May 19, 2014
88d0784
"test"
adwisatya May 19, 2014
d3e6380
adwisatya May 19, 2014
02c6486
select printer added
GilangJS May 19, 2014
759866e
Add Logs
May 19, 2014
89c283a
Merge origin/master
May 19, 2014
c75deea
Add Logs
May 19, 2014
e3599f0
Add XML Config
May 19, 2014
1b5ecc8
fixed serializable
GilangJS May 19, 2014
7e36d42
Add XML Config for Cliet
May 19, 2014
3c9bdd7
printer select from user
GilangJS May 19, 2014
7adf90d
printer select from user
GilangJS May 19, 2014
194ddbc
printer select from user
GilangJS May 19, 2014
0e91728
printer select from user
GilangJS May 19, 2014
343dab0
hampir final
GilangJS May 19, 2014
99014e2
sadsadasd
adwisatya May 19, 2014
42e48b9
ITB printer online alpha
adwisatya May 19, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
../nbproject/private/
../build/
../serverFolder/
../clientFolder/
Binary file added 1.txt.pdf
Binary file not shown.
Binary file added DiagramKelas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="onlineprinter" default="default" basedir=".">
<description>Builds, tests, and runs the project onlineprinter.</description>
<import file="nbproject/build-impl.xml"/>
<!--

There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:

-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products

(Targets beginning with '-' are not intended to be called on their own.)

Example of inserting an obfuscator after compilation could look like this:

<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>

For list of available properties check the imported
nbproject/build-impl.xml file.


Another way to customize the build is by overriding existing main targets.
The targets of interest are:

-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar: JAR building
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation

An example of overriding the target for project execution could look like this:

<target name="run" depends="onlineprinter-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>

Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.

-->
</project>
Empty file.
Empty file.
Binary file added build/classes/Client/Client.class
Binary file not shown.
1 change: 1 addition & 0 deletions build/classes/DateClient.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
onlineprinter.DateClient
1 change: 1 addition & 0 deletions build/classes/DateServer.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
onlineprinter.DateServer
Binary file added build/classes/Entity/Credential.class
Binary file not shown.
Binary file added build/classes/Entity/TransObject.class
Binary file not shown.
Binary file added build/classes/File/DOC.class
Binary file not shown.
Binary file added build/classes/File/FileFactory.class
Binary file not shown.
Binary file added build/classes/File/PDF.class
Binary file not shown.
Binary file added build/classes/File/TXT.class
Binary file not shown.
48 changes: 48 additions & 0 deletions build/classes/GUI/FileDialog.form
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" ?>

<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JDialogFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="2"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>

<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="fc" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="fc" min="-2" max="-2" attributes="0"/>
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component class="javax.swing.JFileChooser" name="fc">
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="fcActionPerformed"/>
</Events>
</Component>
</SubComponents>
</Form>
Binary file added build/classes/GUI/Login$1.class
Binary file not shown.
Binary file added build/classes/GUI/Login$2.class
Binary file not shown.
Binary file added build/classes/GUI/Login$3.class
Binary file not shown.
Binary file added build/classes/GUI/Login.class
Binary file not shown.
185 changes: 185 additions & 0 deletions build/classes/GUI/Login.form
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
<?xml version="1.0" encoding="UTF-8" ?>

<Form version="1.5" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="3"/>
<Property name="title" type="java.lang.String" value="ITB Printing Service"/>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
<Color id="Default Cursor"/>
</Property>
<Property name="locationByPlatform" type="boolean" value="true"/>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[800, 600]"/>
</Property>
<Property name="name" type="java.lang.String" value="ITB Printing Service" noResource="true"/>
<Property name="resizable" type="boolean" value="false"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
<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,2,88,0,0,3,32"/>
</AuxValues>

<Layout class="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout">
<Property name="useNullLayout" type="boolean" value="true"/>
</Layout>
<SubComponents>
<Component class="javax.swing.JLabel" name="jLabel2">
<Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Segoe UI" size="11" style="1"/>
</Property>
<Property name="text" type="java.lang.String" value="Masukkan NIM dan password untuk mengakses layanan pencetakan."/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="230" y="230" width="400" height="20"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JButton" name="jButton5">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Segoe UI" size="32" style="0"/>
</Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="text" type="java.lang.String" value="ITB Printing Service"/>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder>
<Color PropertyName="color" blue="c2" green="63" red="63" type="rgb"/>
</LineBorder>
</Border>
</Property>
<Property name="borderPainted" type="boolean" value="false"/>
<Property name="contentAreaFilled" type="boolean" value="false"/>
<Property name="focusPainted" type="boolean" value="false"/>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton5ActionPerformed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="-10" y="0" width="340" height="50"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JTextField" name="formNIM">
<Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Segoe UI" size="11" style="0"/>
</Property>
<Property name="text" type="java.lang.String" value="NIM"/>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder>
<Color PropertyName="color" blue="ff" green="66" red="66" type="rgb"/>
</LineBorder>
</Border>
</Property>
</Properties>
<Events>
<EventHandler event="focusGained" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="formNIMFocusGained"/>
<EventHandler event="focusLost" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="formNIMFocusLost"/>
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="formNIMMouseClicked"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="formNIMActionPerformed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="336" y="264" width="151" height="22"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JPasswordField" name="formPassword">
<Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Segoe UI" size="11" style="0"/>
</Property>
<Property name="text" type="java.lang.String" value="Password"/>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.LineBorderInfo">
<LineBorder>
<Color PropertyName="color" blue="ff" green="66" red="66" type="rgb"/>
</LineBorder>
</Border>
</Property>
</Properties>
<Events>
<EventHandler event="focusGained" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="formPasswordFocusGained"/>
<EventHandler event="focusLost" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="formPasswordFocusLost"/>
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="formPasswordMouseClicked"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="336" y="292" width="151" height="22"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JButton" name="jButton1">
<Properties>
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="8a" red="8a" type="rgb"/>
</Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Segoe UI" size="11" style="0"/>
</Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/>
</Property>
<Property name="text" type="java.lang.String" value="Login"/>
<Property name="alignmentX" type="float" value="0.5"/>
<Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor">
<Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo">
<EmptyBorder/>
</Border>
</Property>
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
<Color id="Hand Cursor"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[50, 25]"/>
</Property>
</Properties>
<Events>
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="jButton1MouseClicked"/>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="386" y="332" width="-1" height="-1"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JLabel" name="jLabel1">
<Properties>
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
<Image iconType="3" name="/gui/bg2.png"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout" value="org.netbeans.modules.form.compat2.layouts.DesignAbsoluteLayout$AbsoluteConstraintsDescription">
<AbsoluteConstraints x="0" y="0" width="800" height="600"/>
</Constraint>
</Constraints>
</Component>
</SubComponents>
</Form>
Binary file added build/classes/GUI/Upload$1.class
Binary file not shown.
Binary file added build/classes/GUI/Upload$2.class
Binary file not shown.
Binary file added build/classes/GUI/Upload.class
Binary file not shown.
Loading