Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loïc Perine
ProjetS2-2021-20-JMM
Commits
abfdf7bd
Commit
abfdf7bd
authored
Jun 24, 2021
by
L.Perine
Browse files
ajout setBgColorComponents
parent
2c121ff6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/info1/application/appli.java
View file @
abfdf7bd
package
info1.application
;
import
java.awt.Color
;
import
java.awt.Component
;
import
javax.swing.JPanel
;
import
com.mashape.unirest.http.exceptions.UnirestException
;
import
info1.Vue.*
;
...
...
@@ -140,4 +145,14 @@ public class appli {
public
static
String
getServerurl
()
{
return
serverUrl
;
}
public
static
void
setBgCComponent
(
JPanel
component
)
{
for
(
Component
component1:
component
.
getComponents
())
{
if
(
component1
instanceof
JPanel
)
setBgCComponent
(
(
JPanel
)
component1
);
component1
.
setBackground
(
Color
.
black
);
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment