Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VendingMachine_Andrea_Munoz-White
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
andrea.munoz-whiteside
VendingMachine_Andrea_Munoz-White
Commits
f41cfa35
Commit
f41cfa35
authored
Jan 07, 2020
by
andrea.munoz-white
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pog
parents
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
194 additions
and
0 deletions
+194
-0
pom.xml
pom.xml
+14
-0
VendingMachine.form
src/main/java/com/journaldev/files/VendingMachine.form
+180
-0
VendingMachine.java
src/main/java/com/journaldev/files/VendingMachine.java
+0
-0
No files found.
pom.xml
0 → 100644
View file @
f41cfa35
<?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>
VandingMachine_Andrea_MunozWhiteside
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
13
</maven.compiler.source>
<maven.compiler.target>
13
</maven.compiler.target>
</properties>
</project>
\ No newline at end of file
src/main/java/com/journaldev/files/VendingMachine.form
0 → 100644
View file @
f41cfa35
<?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=
"0"
attributes=
"0"
>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Component
id=
"jButton1"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"DropDownBox"
alignment=
"0"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<EmptySpace
min=
"-2"
pref=
"18"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Component
id=
"jScrollPane1"
min=
"-2"
pref=
"327"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<EmptySpace
min=
"-2"
pref=
"67"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Transaction1"
min=
"-2"
pref=
"186"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Group
type=
"102"
attributes=
"0"
>
<EmptySpace
type=
"separate"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Component
id=
"InputAmount"
min=
"-2"
pref=
"114"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<EmptySpace
min=
"-2"
pref=
"14"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"jLabel1"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<EmptySpace
min=
"-2"
pref=
"22"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Change"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
<EmptySpace
pref=
"18"
max=
"32767"
attributes=
"0"
/>
</Group>
<Group
type=
"102"
alignment=
"1"
attributes=
"0"
>
<EmptySpace
max=
"32767"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"1"
attributes=
"0"
>
<Component
id=
"TotalCost"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"jButton2"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<EmptySpace
min=
"-2"
pref=
"35"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout
dim=
"1"
>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<EmptySpace
min=
"-2"
pref=
"33"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Component
id=
"jScrollPane1"
max=
"32767"
attributes=
"0"
/>
<Group
type=
"102"
attributes=
"0"
>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Group
type=
"102"
attributes=
"0"
>
<EmptySpace
min=
"-2"
pref=
"33"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"jLabel1"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Component
id=
"InputAmount"
min=
"-2"
pref=
"36"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
type=
"separate"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"jButton2"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<Group
type=
"102"
attributes=
"0"
>
<EmptySpace
min=
"-2"
pref=
"98"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"DropDownBox"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
min=
"-2"
pref=
"50"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"jButton1"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
<EmptySpace
pref=
"19"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"TotalCost"
min=
"-2"
pref=
"30"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
min=
"-2"
pref=
"39"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Change"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
min=
"-2"
pref=
"117"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
<EmptySpace
min=
"-2"
pref=
"45"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Transaction1"
min=
"-2"
pref=
"38"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
min=
"-2"
pref=
"35"
max=
"-2"
attributes=
"0"
/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component
class=
"javax.swing.JComboBox"
name=
"DropDownBox"
>
<Properties>
<Property
name=
"model"
type=
"javax.swing.ComboBoxModel"
editor=
"org.netbeans.modules.form.editors2.ComboBoxModelEditor"
>
<StringArray
count=
"6"
>
<StringItem
index=
"0"
value=
"Chocolate"
/>
<StringItem
index=
"1"
value=
"Water"
/>
<StringItem
index=
"2"
value=
"Sweet"
/>
<StringItem
index=
"3"
value=
"Drink"
/>
<StringItem
index=
"4"
value=
"Snack"
/>
<StringItem
index=
"5"
value=
" "
/>
</StringArray>
</Property>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"DropDownBoxActionPerformed"
/>
</Events>
<AuxValues>
<AuxValue
name=
"JavaCodeGenerator_TypeParameters"
type=
"java.lang.String"
value=
"<String>"
/>
</AuxValues>
</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=
"SelectedProducts"
>
<Properties>
<Property
name=
"columns"
type=
"int"
value=
"20"
/>
<Property
name=
"rows"
type=
"int"
value=
"5"
/>
</Properties>
</Component>
</SubComponents>
</Container>
<Component
class=
"javax.swing.JButton"
name=
"jButton1"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Select item"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"jButton1ActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JTextField"
name=
"InputAmount"
>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"InputAmountActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"TotalCost"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Total Cost (£)"
/>
</Properties>
</Component>
<Component
class=
"javax.swing.JButton"
name=
"jButton2"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Enter"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"jButton2ActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"Transaction1"
>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"jLabel1"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Enter amount:"
/>
</Properties>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"Change"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Change (£)"
/>
</Properties>
</Component>
</SubComponents>
</Form>
src/main/java/com/journaldev/files/VendingMachine.java
0 → 100644
View file @
f41cfa35
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