Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
COM4001M_ETHAN_DUNWIDDIE
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ethan.dunwiddie
COM4001M_ETHAN_DUNWIDDIE
Commits
3c64f6cb
Commit
3c64f6cb
authored
Jan 14, 2021
by
ethan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parents
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
180 additions
and
0 deletions
+180
-0
pom.xml
pom.xml
+14
-0
receipt.txt
receipt.txt
+1
-0
selfCheckoutSystem.form
src/main/java/selfCheckoutSystem.form
+165
-0
selfCheckoutSystem.java
src/main/java/selfCheckoutSystem.java
+0
-0
No files found.
pom.xml
0 → 100644
View file @
3c64f6cb
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.mycompany
</groupId>
<artifactId>
selfCheckoutSystem
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
11
</maven.compiler.source>
<maven.compiler.target>
11
</maven.compiler.target>
</properties>
</project>
\ No newline at end of file
receipt.txt
0 → 100644
View file @
3c64f6cb
src/main/java/selfCheckoutSystem.form
0 → 100644
View file @
3c64f6cb
<?xml version="1.0" encoding="UTF-8" ?>
<Form
version=
"1.3"
maxVersion=
"1.9"
type=
"org.netbeans.modules.form.forminfo.JFrameFormInfo"
>
<Properties>
<Property
name=
"defaultCloseOperation"
type=
"int"
value=
"3"
/>
</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=
"1"
attributes=
"0"
>
<Group
type=
"103"
groupAlignment=
"0"
max=
"-2"
attributes=
"0"
>
<Group
type=
"102"
attributes=
"0"
>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Component
id=
"jScrollPane1"
min=
"-2"
pref=
"324"
max=
"-2"
attributes=
"0"
/>
</Group>
<Group
type=
"102"
attributes=
"0"
>
<EmptySpace
min=
"-2"
pref=
"24"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"totalLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
max=
"32767"
attributes=
"0"
/>
<Component
id=
"payScreen"
min=
"-2"
pref=
"168"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Group
type=
"103"
groupAlignment=
"1"
max=
"-2"
attributes=
"0"
>
<Component
id=
"addBtn"
alignment=
"0"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"checkoutBtn"
alignment=
"0"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"removeBtn"
alignment=
"0"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"discountBtn"
alignment=
"0"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"productList"
pref=
"146"
max=
"32767"
attributes=
"0"
/>
</Group>
<Group
type=
"102"
attributes=
"0"
>
<EmptySpace
min=
"12"
pref=
"12"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"transactionLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
<EmptySpace
pref=
"18"
max=
"32767"
attributes=
"0"
/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout
dim=
"1"
>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
max=
"-2"
attributes=
"0"
>
<Group
type=
"102"
attributes=
"0"
>
<Component
id=
"productList"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Component
id=
"transactionLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
min=
"-2"
pref=
"56"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"addBtn"
min=
"-2"
pref=
"41"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Component
id=
"removeBtn"
min=
"-2"
pref=
"41"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Component
id=
"discountBtn"
min=
"-2"
pref=
"41"
max=
"-2"
attributes=
"0"
/>
</Group>
<Component
id=
"jScrollPane1"
max=
"32767"
attributes=
"0"
/>
</Group>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
max=
"-2"
attributes=
"0"
>
<Component
id=
"totalLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"checkoutBtn"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"payScreen"
pref=
"42"
max=
"32767"
attributes=
"0"
/>
</Group>
<EmptySpace
max=
"32767"
attributes=
"0"
/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component
class=
"javax.swing.JButton"
name=
"discountBtn"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Add discount"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"discountBtnActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JButton"
name=
"addBtn"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Add item"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"addBtnActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JButton"
name=
"removeBtn"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Remove item"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"removeBtnActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JComboBox"
name=
"productList"
>
<Properties>
<Property
name=
"model"
type=
"javax.swing.ComboBoxModel"
editor=
"org.netbeans.modules.form.editors2.ComboBoxModelEditor"
>
<StringArray
count=
"0"
/>
</Property>
<Property
name=
"toolTipText"
type=
"java.lang.String"
value=
"Choose items"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"productListActionPerformed"
/>
</Events>
<AuxValues>
<AuxValue
name=
"JavaCodeGenerator_TypeParameters"
type=
"java.lang.String"
value=
"<String>"
/>
</AuxValues>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"totalLabel"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Total: "
/>
</Properties>
</Component>
<Component
class=
"javax.swing.JButton"
name=
"checkoutBtn"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Checkout"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"checkoutBtnActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"transactionLabel"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"jLabel1"
/>
</Properties>
</Component>
<Container
class=
"javax.swing.JScrollPane"
name=
"jScrollPane1"
>
<AuxValues>
<AuxValue
name=
"autoScrollPane"
type=
"java.lang.Boolean"
value=
"true"
/>
</AuxValues>
<Layout
class=
"org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"
/>
<SubComponents>
<Component
class=
"javax.swing.JTextArea"
name=
"screen"
>
<Properties>
<Property
name=
"columns"
type=
"int"
value=
"20"
/>
<Property
name=
"rows"
type=
"int"
value=
"5"
/>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Code Product Price (£) Quantity
 01 Pen 1 20
 02 Book 1 20
 03 Water 1 20
 04 Drink 2 20
 05 Snack 1 20
 06 Sweet 1 20
 07 Chocolate 1 20
 08 Biscuits 1 20
 09 Cake 1 20
"
/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component
class=
"javax.swing.JTextField"
name=
"payScreen"
>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"payScreenActionPerformed"
/>
</Events>
</Component>
</SubComponents>
</Form>
src/main/java/selfCheckoutSystem.java
0 → 100644
View file @
3c64f6cb
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment