Commit abfdf7bd authored by L.Perine's avatar L.Perine
Browse files

ajout setBgColorComponents

parent 2c121ff6
package info1.application; package info1.application;
import java.awt.Color;
import java.awt.Component;
import javax.swing.JPanel;
import com.mashape.unirest.http.exceptions.UnirestException; import com.mashape.unirest.http.exceptions.UnirestException;
import info1.Vue.*; import info1.Vue.*;
...@@ -140,4 +145,14 @@ public class appli { ...@@ -140,4 +145,14 @@ public class appli {
public static String getServerurl() { public static String getServerurl() {
return serverUrl; return serverUrl;
} }
public static void setBgCComponent( JPanel component)
for(Component component1:component.getComponents())
if(component1 instanceof JPanel)
setBgCComponent( (JPanel) component1);
} }
\ No newline at end of file
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