Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DiceGame_Oliver_Warrilow
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
oliver.warrilow
DiceGame_Oliver_Warrilow
Commits
b58d44a4
Commit
b58d44a4
authored
Jan 07, 2020
by
Oliw2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dice game (almost) working.
parents
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
190 additions
and
0 deletions
+190
-0
pom.xml
pom.xml
+14
-0
DiceGameFrame.form
src/main/java/DiceGameFrame.form
+176
-0
DiceGameFrame.java
src/main/java/DiceGameFrame.java
+0
-0
No files found.
pom.xml
0 → 100644
View file @
b58d44a4
<?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>
DiceGame
</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/DiceGameFrame.form
0 → 100644
View file @
b58d44a4
<?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"
/>
<Property
name=
"title"
type=
"java.lang.String"
value=
"Dice game"
/>
<Property
name=
"background"
type=
"java.awt.Color"
editor=
"org.netbeans.beaninfo.editors.ColorEditor"
>
<Color
blue=
"66"
green=
"66"
red=
"66"
type=
"rgb"
/>
</Property>
</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
min=
"-2"
pref=
"18"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<Group
type=
"103"
groupAlignment=
"0"
attributes=
"0"
>
<Component
id=
"RoundLabel"
alignment=
"0"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<Component
id=
"Player1RollButton"
min=
"-2"
pref=
"119"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
type=
"unrelated"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Player1Rolled"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<Component
id=
"TotalLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"102"
attributes=
"0"
>
<Component
id=
"Player2RollButton"
min=
"-2"
pref=
"119"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
type=
"unrelated"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Player2Rolled"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<Component
id=
"WinnerText"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<EmptySpace
max=
"32767"
attributes=
"0"
/>
</Group>
<Group
type=
"102"
alignment=
"0"
attributes=
"0"
>
<Component
id=
"TitleLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
min=
"-2"
pref=
"54"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"P1Points"
min=
"-2"
pref=
"120"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
pref=
"32"
max=
"32767"
attributes=
"0"
/>
<Component
id=
"P2Points"
min=
"-2"
pref=
"120"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
min=
"-2"
pref=
"32"
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=
"27"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"3"
attributes=
"0"
>
<Component
id=
"TitleLabel"
alignment=
"3"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"P1Points"
alignment=
"3"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"P2Points"
alignment=
"3"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<EmptySpace
type=
"separate"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"RoundLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
type=
"separate"
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"3"
attributes=
"0"
>
<Component
id=
"Player1RollButton"
alignment=
"3"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Player1Rolled"
alignment=
"3"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<EmptySpace
max=
"-2"
attributes=
"0"
/>
<Group
type=
"103"
groupAlignment=
"3"
attributes=
"0"
>
<Component
id=
"Player2RollButton"
alignment=
"3"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"Player2Rolled"
alignment=
"3"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
</Group>
<EmptySpace
type=
"separate"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"TotalLabel"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
type=
"unrelated"
max=
"-2"
attributes=
"0"
/>
<Component
id=
"WinnerText"
min=
"-2"
max=
"-2"
attributes=
"0"
/>
<EmptySpace
pref=
"64"
max=
"32767"
attributes=
"0"
/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Component
class=
"javax.swing.JLabel"
name=
"TitleLabel"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"24"
style=
"1"
/>
</Property>
<Property
name=
"foreground"
type=
"java.awt.Color"
editor=
"org.netbeans.beaninfo.editors.ColorEditor"
>
<Color
blue=
"33"
green=
"0"
red=
"cc"
type=
"rgb"
/>
</Property>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Dice game"
/>
</Properties>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"RoundLabel"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"24"
style=
"1"
/>
</Property>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Round:"
/>
</Properties>
</Component>
<Component
class=
"javax.swing.JButton"
name=
"Player1RollButton"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Player 1 roll"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"Player1RollButtonActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JButton"
name=
"Player2RollButton"
>
<Properties>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Player 2 roll"
/>
</Properties>
<Events>
<EventHandler
event=
"actionPerformed"
listener=
"java.awt.event.ActionListener"
parameters=
"java.awt.event.ActionEvent"
handler=
"Player2RollButtonActionPerformed"
/>
</Events>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"Player1Rolled"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"14"
style=
"1"
/>
</Property>
</Properties>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"Player2Rolled"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"14"
style=
"1"
/>
</Property>
</Properties>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"TotalLabel"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"24"
style=
"1"
/>
</Property>
<Property
name=
"text"
type=
"java.lang.String"
value=
"Total:"
/>
</Properties>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"WinnerText"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"18"
style=
"1"
/>
</Property>
</Properties>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"P1Points"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"18"
style=
"1"
/>
</Property>
<Property
name=
"text"
type=
"java.lang.String"
value=
"P1 Points:"
/>
</Properties>
</Component>
<Component
class=
"javax.swing.JLabel"
name=
"P2Points"
>
<Properties>
<Property
name=
"font"
type=
"java.awt.Font"
editor=
"org.netbeans.beaninfo.editors.FontEditor"
>
<Font
name=
"Helvetica"
size=
"18"
style=
"1"
/>
</Property>
<Property
name=
"text"
type=
"java.lang.String"
value=
"P2 Points:"
/>
<Property
name=
"toolTipText"
type=
"java.lang.String"
value=
""
/>
</Properties>
</Component>
</SubComponents>
</Form>
src/main/java/DiceGameFrame.java
0 → 100644
View file @
b58d44a4
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