Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Inf2Pr_SoSe23_Gruppe03_UNO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Inf2Pr_SoSe23_Gruppe03_UNO
Inf2Pr_SoSe23_Gruppe03_UNO
Commits
0a6c8111
Commit
0a6c8111
authored
2 years ago
by
Justin Klein
Browse files
Options
Downloads
Patches
Plain Diff
Replace farbAuswahl.java
parent
78a2ed43
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/farbAuswahl.java
+16
-16
16 additions, 16 deletions
src/farbAuswahl.java
with
16 additions
and
16 deletions
src/farbAuswahl.java
+
16
−
16
View file @
0a6c8111
...
...
@@ -4,14 +4,14 @@ import java.awt.event.ActionEvent;
import
java.awt.event.ActionListener
;
public
class
farbAuswahl
extends
JFrame
{
private
JButton
kartenAuswahlButton1
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton2
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton3
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton4
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton5
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton6
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton7
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton8
=
createImageButton
(
"UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton1
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton2
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton3
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton4
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton5
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton6
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton7
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
private
JButton
kartenAuswahlButton8
=
createImageButton
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/BackSide.png"
);
public
void
farbAuswahl
(
UnoKarte
neueKarte
,
Regelwerk
regel
,
UnoSpielfeld
spielFeld
){
if
(
neueKarte
.
getFarbe
()
==
Farbe
.
Wild
){
setTitle
(
"Farbe Wählen"
);
...
...
@@ -45,7 +45,7 @@ public class farbAuswahl extends JFrame {
switch
(
g
){
case
0
:
kartenAuswahlButton1
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Multicolor_Rot.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Multicolor_Rot.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton1
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
@@ -60,7 +60,7 @@ public class farbAuswahl extends JFrame {
break
;
case
1
:
kartenAuswahlButton2
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Multicolor_Blau.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Multicolor_Blau.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton2
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
@@ -75,7 +75,7 @@ public class farbAuswahl extends JFrame {
break
;
case
2
:
kartenAuswahlButton3
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Multicolor_Gruen.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Multicolor_Gruen.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton3
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
@@ -90,7 +90,7 @@ public class farbAuswahl extends JFrame {
break
;
case
3
:
kartenAuswahlButton4
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Multicolor_Gelb.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Multicolor_Gelb.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton4
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
@@ -118,7 +118,7 @@ public class farbAuswahl extends JFrame {
switch
(
g
){
case
0
:
kartenAuswahlButton5
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Draw_Four_Rot.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Draw_Four_Rot.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton5
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
@@ -133,7 +133,7 @@ public class farbAuswahl extends JFrame {
break
;
case
1
:
kartenAuswahlButton6
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Draw_Four_Blau.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Draw_Four_Blau.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton6
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
@@ -148,7 +148,7 @@ public class farbAuswahl extends JFrame {
break
;
case
2
:
kartenAuswahlButton7
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Draw_Four_Gruen.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Draw_Four_Gruen.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton7
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
@@ -163,7 +163,7 @@ public class farbAuswahl extends JFrame {
break
;
case
3
:
kartenAuswahlButton8
.
setIcon
(
null
);
newIcon
=
new
ImageIcon
(
"UnoKarten/Wild_Draw_Four_Gelb.png"
);
// Passe den Pfad zum Uno-Bild an
newIcon
=
new
ImageIcon
(
"
Inf2Pr_SoSe23_Gruppe03_UNO-master/
UnoKarten/Wild_Draw_Four_Gelb.png"
);
// Passe den Pfad zum Uno-Bild an
kartenAuswahlButton8
.
setIcon
(
newIcon
);
revalidate
();
repaint
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment