Commit d02d6c03 authored by Hugo DACLON's avatar Hugo DACLON
Browse files

Appli qui marche mieux

parent aa8d9174
This diff is collapsed.
...@@ -4,6 +4,7 @@ import java.awt.Color; ...@@ -4,6 +4,7 @@ import java.awt.Color;
import java.awt.Component; import java.awt.Component;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.JTextField; import javax.swing.JTextField;
import com.mashape.unirest.http.exceptions.UnirestException; import com.mashape.unirest.http.exceptions.UnirestException;
...@@ -119,7 +120,7 @@ public class appli { ...@@ -119,7 +120,7 @@ public class appli {
} }
public static void afficherOptPartie(boolean heberger) { public static void afficherOptPartie(boolean heberger) {
OptPartie optionsPartie = new OptPartie("Que voulez vous faire ?"); OptPartie optionsPartie = new OptPartie("Que voulez vous faire ?",heberger);
if (heberger){ if (heberger){
optionsPartie.afficherHeberger(); optionsPartie.afficherHeberger();
optionsPartie.fixeListenerRetourMenu(new RetourAuMenuControleur()); optionsPartie.fixeListenerRetourMenu(new RetourAuMenuControleur());
...@@ -216,7 +217,7 @@ public class appli { ...@@ -216,7 +217,7 @@ public class appli {
if (component instanceof JPanel){ if (component instanceof JPanel){
setBgColorComponents((JPanel) component, c); setBgColorComponents((JPanel) component, c);
} }
component.setForeground(component instanceof JTextField ? c : Color.WHITE); component.setForeground(component instanceof JTextField ? c : component instanceof JProgressBar ? Color.RED : Color.WHITE);
component.setBackground(component instanceof JTextField ? Color.WHITE : c); component.setBackground(component instanceof JTextField ? Color.WHITE : c);
} }
jPanel.setOpaque(false); jPanel.setOpaque(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment