Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SAE2.01 - Developpement application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIQUEREZ Corentin
SAE2.01 - Developpement application
Commits
f4ff850e
Commit
f4ff850e
authored
1 year ago
by
CHEVALIER Noemy
Browse files
Options
Downloads
Patches
Plain Diff
Ajout de la couleur de la barre des élèves
parent
58dbc243
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shukan/ShukanParameters.java
+11
-3
11 additions, 3 deletions
shukan/ShukanParameters.java
with
11 additions
and
3 deletions
shukan/ShukanParameters.java
+
11
−
3
View file @
f4ff850e
...
...
@@ -18,12 +18,15 @@ class ShukanParameters extends JFrame {
/** Number of modules to display */
private
int
nbModules
=
STD_MODULES_NUMBER
;
/** Standard number of modules */
private
final
static
int
STD_MODULES_NUMBER
=
14
;
private
final
static
int
STD_MODULES_NUMBER
=
14
;
/**view of the app */
private
ShukanStudent
student
;
/** built a parameter window */
public
ShukanParameters
(
String
titre
,
ShukanView
canvas
)
{
public
ShukanParameters
(
String
titre
,
ShukanView
canvas
,
ShukanStudent
student
)
{
super
(
titre
);
this
.
canvas
=
canvas
;
this
.
student
=
student
;
p
=
new
JPanel
(
new
GridBagLayout
());
GridBagConstraints
gbcprinc
=
new
GridBagConstraints
();
...
...
@@ -61,7 +64,8 @@ class ShukanParameters extends JFrame {
INACTIVE_COLOR
=
new
Color
(
204
,
204
,
204
);
canvas
.
setBackgroundColor
(
BACK_COLOR
,
BACK_COLOR2
);
canvas
.
setForeground
(
TEXT_COLOR
,
HOLLY_COLOR
,
INACTIVE_COLOR
);
student
.
setBackgroundColor
(
BACK_COLOR2
);
student
.
setForeground
(
TEXT_COLOR
);
}
canvas
.
repaint
();
}
...
...
@@ -79,6 +83,8 @@ class ShukanParameters extends JFrame {
INACTIVE_COLOR
=
new
Color
(
51
,
51
,
51
);
canvas
.
setBackgroundColor
(
BACK_COLOR
,
BACK_COLOR2
);
canvas
.
setForeground
(
TEXT_COLOR
,
HOLLY_COLOR
,
INACTIVE_COLOR
);
student
.
setBackgroundColor
(
BACK_COLOR2
);
student
.
setForeground
(
TEXT_COLOR
);
}
canvas
.
repaint
();
}
...
...
@@ -96,6 +102,8 @@ class ShukanParameters extends JFrame {
INACTIVE_COLOR
=
new
Color
(
0.5f
,
0.5f
,
0.5f
);
canvas
.
setBackgroundColor
(
BACK_COLOR
,
BACK_COLOR2
);
canvas
.
setForeground
(
TEXT_COLOR
,
HOLLY_COLOR
,
INACTIVE_COLOR
);
student
.
setBackgroundColor
(
BACK_COLOR2
);
student
.
setForeground
(
TEXT_COLOR
);
}
canvas
.
repaint
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment