forked from menault/TD3_DEV51_Qualite_Algo
Compare commits
2 Commits
c87527973e
...
master
Author | SHA1 | Date | |
---|---|---|---|
9512df6c58 | |||
07c0e435be |
38
.gitignore
vendored
Normal file
38
.gitignore
vendored
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
target/
|
||||||
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
|
!**/src/main/**/target/
|
||||||
|
!**/src/test/**/target/
|
||||||
|
|
||||||
|
### IntelliJ IDEA ###
|
||||||
|
.idea/modules.xml
|
||||||
|
.idea/jarRepositories.xml
|
||||||
|
.idea/compiler.xml
|
||||||
|
.idea/libraries/
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
|
||||||
|
### Eclipse ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
|
||||||
|
### NetBeans ###
|
||||||
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
build/
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
### Mac OS ###
|
||||||
|
.DS_Store
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
52
.idea/workspace.xml
generated
Normal file
52
.idea/workspace.xml
generated
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="8fb861b5-29c0-47e2-a838-348dc02d9dc0" name="Changes" comment="" />
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="ComposerSettings">
|
||||||
|
<execution />
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectColorInfo"><![CDATA[{
|
||||||
|
"associatedIndex": 0
|
||||||
|
}]]></component>
|
||||||
|
<component name="ProjectId" id="33mEzzBwtK7Ze4qzSZYMoaUAwYr" />
|
||||||
|
<component name="ProjectViewState">
|
||||||
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
|
<option name="showLibraryContents" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PropertiesComponent"><![CDATA[{
|
||||||
|
"keyToString": {
|
||||||
|
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
||||||
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
|
"RunOnceActivity.git.unshallow": "true",
|
||||||
|
"git-widget-placeholder": "master",
|
||||||
|
"last_opened_file_path": "C:/Users/rapha/Documents/Depo/TD3_DEV51_Bridja_Creuzet_Hochlaf",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
|
}
|
||||||
|
}]]></component>
|
||||||
|
<component name="SharedIndexes">
|
||||||
|
<attachedChunks>
|
||||||
|
<set>
|
||||||
|
<option value="bundled-jdk-9823dce3aa75-bf35d07a577b-intellij.indexing.shared.core-IU-252.26830.84" />
|
||||||
|
</set>
|
||||||
|
</attachedChunks>
|
||||||
|
</component>
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="Default task">
|
||||||
|
<changelist id="8fb861b5-29c0-47e2-a838-348dc02d9dc0" name="Changes" comment="" />
|
||||||
|
<created>1759914117184</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1759914117184</updated>
|
||||||
|
<workItem from="1759914119706" duration="22000" />
|
||||||
|
</task>
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
</project>
|
17
TD3_DEV51_Qualite_Algo/pom.xml
Normal file
17
TD3_DEV51_Qualite_Algo/pom.xml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?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>fr.iutfbleau.TD3_DEV51_Qualite_Algo</groupId>
|
||||||
|
<artifactId>TD3_DEV51_Qualite_Algo</artifactId>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<maven.compiler.source>23</maven.compiler.source>
|
||||||
|
<maven.compiler.target>23</maven.compiler.target>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
</project>
|
22735
TD3_DEV51_Qualite_Algo/resources/liste_francais.txt
Normal file
22735
TD3_DEV51_Qualite_Algo/resources/liste_francais.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,15 +1,13 @@
|
|||||||
package fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers;
|
package fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers;
|
||||||
|
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Word;
|
import java.text.Normalizer;
|
||||||
|
|
||||||
;
|
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Difficulty;
|
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Word;
|
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Word;
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Word;
|
||||||
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Difficulty;
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.View.hangedManView;
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.View.hangedManView;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
|
|
||||||
public class Game {
|
public class Game {
|
||||||
private Word word;
|
private Word word;
|
||||||
private hangedManView hangedManView;
|
private hangedManView hangedManView;
|
||||||
@@ -25,35 +23,48 @@ public class Game {
|
|||||||
|
|
||||||
/* Hangmam Game */
|
/* Hangmam Game */
|
||||||
// Constructor
|
// Constructor
|
||||||
public Game(Word word ,List<Word> allWord,hangedManView hangedManView) {
|
public Game(hangedManView hangedManView, Difficulty difficulty) {
|
||||||
this.word = word;
|
|
||||||
this.hangedManView = hangedManView;
|
this.hangedManView = hangedManView;
|
||||||
this.errors = 0;
|
this.errors = 0;
|
||||||
this.wrongLetters = "";
|
this.wrongLetters = "";
|
||||||
this.startTime = System.currentTimeMillis();
|
this.startTime = System.currentTimeMillis();
|
||||||
this.endTime = 0;
|
this.endTime = 0;
|
||||||
|
|
||||||
|
allwords = WordList.readWordsFromFile();
|
||||||
|
|
||||||
switch (difficulty) {
|
switch (difficulty) {
|
||||||
case EASY:
|
case EASY:
|
||||||
this.word = selectWord(allWord, 0 , 7 );
|
this.word = selectWord(allwords, 0 , 7 );
|
||||||
break;
|
break;
|
||||||
case MEDIUM:
|
case MEDIUM:
|
||||||
this.word = selectWord(allWord, 0, Integer.MAX_VALUE);
|
this.word = selectWord(allwords, 0, Integer.MAX_VALUE);
|
||||||
break;
|
break;
|
||||||
case HARD:
|
case HARD:
|
||||||
this.allwords = selectTwoWords(allWord);
|
this.allwords = selectTwoWords(allwords);
|
||||||
|
this.word = new Word(this.allwords.get(0).getText()+"- "+this.allwords.get(1).getText());
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
hangedManView.setWord(word.getWord());
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Selected Word with conditions */
|
/* Selected Word with conditions */
|
||||||
private Word selectWord(List<Word> list, int min, int max) {
|
private Word selectWord(List<Word> list, int min, int max) {
|
||||||
for (Word word : list) {
|
|
||||||
int length = word.getWord().length();
|
for(int i = 0; i< list.size();i++){
|
||||||
|
|
||||||
|
//génère un int aléatoire
|
||||||
|
Random randomiser = new Random();
|
||||||
|
randomiser.setSeed(System.currentTimeMillis()-i);
|
||||||
|
Word word = list.get(randomiser.nextInt(0, list.size()));
|
||||||
|
|
||||||
|
int length = word.getText().length();
|
||||||
if (length >= min && length <= max) {
|
if (length >= min && length <= max) {
|
||||||
return word;
|
// Supprime les caractères diacritiques (accents)
|
||||||
|
return new Word(Normalizer.normalize(word.getText(), Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return list.getFirst();
|
return list.getFirst();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,19 +73,6 @@ public class Game {
|
|||||||
return list.subList(0, Math.min(2, list.size()));
|
return list.subList(0, Math.min(2, list.size()));
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean playLetter(char caractere) {
|
|
||||||
boolean correct;
|
|
||||||
|
|
||||||
if(difficulty == Difficulty.HARD){
|
|
||||||
correct = this.allwords.get(0).VerifyLetter(caractere) || this.allwords.get(1).VerifyLetter(caractere);
|
|
||||||
} else{
|
|
||||||
correct = word.VerifyLetter(caractere);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!correct) errors++;
|
|
||||||
return correct;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Getters - Errors
|
// Getters - Errors
|
||||||
public int getErrors() {
|
public int getErrors() {
|
||||||
return this.errors;
|
return this.errors;
|
||||||
@@ -97,32 +95,40 @@ public class Game {
|
|||||||
public boolean isWon() {
|
public boolean isWon() {
|
||||||
int score = calculateScore();
|
int score = calculateScore();
|
||||||
if (word.IsComplete() && score > 0) {
|
if (word.IsComplete() && score > 0) {
|
||||||
|
JOptionPane.showMessageDialog(null, "Bravo, voici ton score : "+score+"\n et ton temps : "+this.calculateTime()+"s (⓿_⓿).","(⓿_⓿)", JOptionPane.WARNING_MESSAGE);
|
||||||
|
System.exit(0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// From view, verify if the letter is correct & finish the game if necessary (lost or won)
|
// From view, verify if the letter is correct & finish the game if necessary (lost or won)
|
||||||
public boolean playLetter(char c) {
|
public boolean playLetter(char caractere) {
|
||||||
boolean correct = word.VerifyLetter(c);
|
boolean correct;
|
||||||
|
|
||||||
|
if(difficulty == Difficulty.HARD){
|
||||||
|
correct = this.allwords.get(0).VerifyLetter(caractere) || this.allwords.get(1).VerifyLetter(caractere);
|
||||||
|
} else{
|
||||||
|
correct = word.VerifyLetter(caractere);
|
||||||
|
}
|
||||||
|
|
||||||
if (!correct) {
|
if (!correct) {
|
||||||
errors++;
|
errors++;
|
||||||
hangedManView.setState(errors);
|
hangedManView.setState(errors);
|
||||||
|
|
||||||
wrongLetters += c + " ";
|
wrongLetters += caractere + " ";
|
||||||
hangedManView.setWrongLetters(wrongLetters);
|
hangedManView.setWrongLetters(wrongLetters);
|
||||||
|
|
||||||
if (isLost()) {
|
if (isLost()) {
|
||||||
finishedGame();
|
finishedGame();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
hangedManView.setCorrectLetters(word.getHiddenWord());
|
hangedManView.setWord(word.getWord());
|
||||||
|
|
||||||
if (word.IsComplete()) {
|
if (word.IsComplete()) {
|
||||||
finishedGame();
|
finishedGame();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
hangedManView.setWord(word.getWord());
|
||||||
|
|
||||||
return correct;
|
return correct;
|
||||||
}
|
}
|
||||||
@@ -132,6 +138,8 @@ public class Game {
|
|||||||
this.endTime = System.currentTimeMillis();
|
this.endTime = System.currentTimeMillis();
|
||||||
|
|
||||||
if (isLost()) {
|
if (isLost()) {
|
||||||
|
JOptionPane.showMessageDialog(null, "T'a perdu, pauvre con (⓿_⓿).\n Le mot était : "+this.word.getText(),"(⓿_⓿)", JOptionPane.WARNING_MESSAGE);
|
||||||
|
System.exit(0);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -3,6 +3,7 @@ package fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers.Handler;
|
|||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers.Game;
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers.Game;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
import java.awt.*;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
|
||||||
@@ -20,12 +21,16 @@ public class SendLetterHandler implements ActionListener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
// on récupère la lettre du champs de saisie
|
try {
|
||||||
if(this.letterField.getText().length() > 1) {
|
// on récupère la lettre du champs de saisie
|
||||||
JOptionPane.showMessageDialog(this.frame, "Veuillez n'envoyer qu'une seule lettre. Merci (⓿_⓿).","(⓿_⓿)", JOptionPane.WARNING_MESSAGE);
|
if(this.letterField.getText().length() > 1) {
|
||||||
return;
|
JOptionPane.showMessageDialog(this.frame, "Veuillez n'envoyer qu'une seule lettre. Merci (⓿_⓿).","(⓿_⓿)", JOptionPane.WARNING_MESSAGE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
char letter = letterField.getText().charAt(0);
|
||||||
|
this.gameControler.playLetter(letter);
|
||||||
|
this.letterField.setText("");
|
||||||
|
} catch (Exception ex) {
|
||||||
}
|
}
|
||||||
char letter = letterField.getText().charAt(0);
|
|
||||||
this.gameControler.playLetter(letter);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -0,0 +1,35 @@
|
|||||||
|
package fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers;
|
||||||
|
|
||||||
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Word;
|
||||||
|
|
||||||
|
import java.io.BufferedReader;
|
||||||
|
import java.io.FileReader;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class WordList {
|
||||||
|
|
||||||
|
public WordList()
|
||||||
|
{}
|
||||||
|
|
||||||
|
public static List<Word> readWordsFromFile() {
|
||||||
|
List<Word> words = new ArrayList<>();
|
||||||
|
|
||||||
|
try (BufferedReader br = new BufferedReader(new FileReader("resources/liste_francais.txt"))) {
|
||||||
|
String line;
|
||||||
|
|
||||||
|
while ((line = br.readLine()) != null) {
|
||||||
|
line = line.trim(); // Supprime les espaces inutiles
|
||||||
|
if (!line.isEmpty()) {
|
||||||
|
words.add(new Word(line));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch (IOException e) {
|
||||||
|
System.err.println("Erreur lors de la lecture du fichier : " + e.getMessage());
|
||||||
|
}
|
||||||
|
|
||||||
|
return words;
|
||||||
|
}
|
||||||
|
}
|
@@ -2,6 +2,7 @@ package fr.iutfbleau.TD3_DEV51_Qualite_Algo;
|
|||||||
|
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers.Game;
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers.Game;
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers.Handler.SendLetterHandler;
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Controllers.Handler.SendLetterHandler;
|
||||||
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Difficulty;
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Word;
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.Models.Word;
|
||||||
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.View.hangedManView;
|
import fr.iutfbleau.TD3_DEV51_Qualite_Algo.View.hangedManView;
|
||||||
|
|
||||||
@@ -11,9 +12,6 @@ import java.io.IOException;
|
|||||||
|
|
||||||
public class Main {
|
public class Main {
|
||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) throws IOException {
|
||||||
// TODO
|
|
||||||
Game gameControler = new Game(new Word(""));
|
|
||||||
// TODO
|
|
||||||
|
|
||||||
JFrame frame = new JFrame();
|
JFrame frame = new JFrame();
|
||||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
@@ -44,6 +42,8 @@ public class Main {
|
|||||||
TextField.setColumns(10);
|
TextField.setColumns(10);
|
||||||
panel.add(TextField,GBC);
|
panel.add(TextField,GBC);
|
||||||
|
|
||||||
|
Game gameControler = new Game(drawingView, Difficulty.HARD);
|
||||||
|
|
||||||
JButton button = new JButton("send");
|
JButton button = new JButton("send");
|
||||||
button.addActionListener(new SendLetterHandler(frame,gameControler,TextField));
|
button.addActionListener(new SendLetterHandler(frame,gameControler,TextField));
|
||||||
panel.add(button);
|
panel.add(button);
|
||||||
|
@@ -19,4 +19,13 @@ public class Letter{
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
if(this.status){
|
||||||
|
return letter + "";
|
||||||
|
}else{
|
||||||
|
return "_ ";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
@@ -4,13 +4,13 @@ import java.util.*;
|
|||||||
|
|
||||||
public class Word {
|
public class Word {
|
||||||
private final String word;
|
private final String word;
|
||||||
private Letter[] tabLetter;
|
private ArrayList<Letter> tabLetter;
|
||||||
private String character;
|
|
||||||
|
|
||||||
public Word(String word){
|
public Word(String word){
|
||||||
this.word = word;
|
this.word = word;
|
||||||
|
this.tabLetter = new ArrayList<>();
|
||||||
for(int i = 0; i< this.word.length();i++){
|
for(int i = 0; i< this.word.length();i++){
|
||||||
this.tabLetter[i] = new Letter(this.word.charAt(i));
|
this.tabLetter.add(new Letter(this.word.charAt(i)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Lettre dans le mot */
|
/* Lettre dans le mot */
|
||||||
@@ -37,7 +37,14 @@ public class Word {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
public String getWord() {
|
public String getWord() {
|
||||||
return word;
|
String return_word = "";
|
||||||
|
for(Letter letter : this.tabLetter){
|
||||||
|
return_word += letter.toString();
|
||||||
|
}
|
||||||
|
return return_word;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getText(){
|
||||||
|
return this.word;
|
||||||
|
}
|
||||||
}
|
}
|
@@ -12,18 +12,11 @@ public class hangedManView extends JComponent {
|
|||||||
|
|
||||||
public hangedManView() throws IOException {
|
public hangedManView() throws IOException {
|
||||||
super();
|
super();
|
||||||
this.state = 8;
|
this.state = 0;
|
||||||
this.word = "";
|
this.word = "";
|
||||||
this.wrongLetters = "";
|
this.wrongLetters = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
public hangedManView(String word) throws IOException {
|
|
||||||
super();
|
|
||||||
this.state = 8;
|
|
||||||
this.word = word;
|
|
||||||
this.wrongLetters = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void paintComponent(Graphics g) {
|
protected void paintComponent(Graphics g) {
|
||||||
super.paintComponent(g);
|
super.paintComponent(g);
|
||||||
Graphics2D g2d = (Graphics2D) g;
|
Graphics2D g2d = (Graphics2D) g;
|
||||||
|
Reference in New Issue
Block a user