Commit 2bc03d4c authored by L.Perine's avatar L.Perine
Browse files

fix push

parent abfdf7bd
......@@ -14,7 +14,6 @@ public class Map extends JPanel implements IMap{
/**
* représentation graphique de la grille de jeu, permets d'ajouter les images sur la grille de jeu
*/
private static final long serialVersionUID = 1L;
private BufferedImage image;
......
package info1.Vue;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Toolkit;
import javax.swing.*;
import info1.application.appli;
public class ViewManager extends JFrame {
private JPanel mainView;
private Dimension ScreenSize = Toolkit.getDefaultToolkit().getScreenSize();
......@@ -27,6 +33,8 @@ public class ViewManager extends JFrame {
public void setMainView(JPanel mainView) {
this.mainView = mainView;
Dimension taille = mainView.getPreferredSize();
mainView.setBackground(Color.black);
appli.setBgColorComponents(mainView);
//TODO modifier le backgroundColor de tout les component de "this" par appli.BACKGROUND_COLOR (implémenté dans l'appli qui sera push par noah)
this.setTitle(mainView.getName());
this.setContentPane(mainView);
......@@ -36,7 +44,7 @@ public class ViewManager extends JFrame {
this.pack();
this.setVisible(true);
}
public ViewManager() {
super();
}
......
......@@ -145,12 +145,12 @@ public class appli {
public static String getServerurl() {
return serverUrl;
}
public static void setBgCComponent( JPanel component)
public static void setBgColorComponents( JPanel component)
{
for(Component component1:component.getComponents())
{
if(component1 instanceof JPanel)
setBgCComponent( (JPanel) component1);
setBgColorComponents( (JPanel) component1);
component1.setBackground(Color.black);
}
......
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