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
9893862a
Commit
9893862a
authored
1 year ago
by
BERRADA Louise
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of
https://gitlab.univ-lorraine.fr/piquerez/sae2.01-developpement-application
parents
65fcdaf8
5050c711
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
shukan/ShukanParameters.java
+2
-3
2 additions, 3 deletions
shukan/ShukanParameters.java
shukan/ShukanStudent.java
+5
-2
5 additions, 2 deletions
shukan/ShukanStudent.java
with
7 additions
and
5 deletions
shukan/ShukanParameters.java
+
2
−
3
View file @
9893862a
...
@@ -71,7 +71,7 @@ class ShukanParameters extends JFrame {
...
@@ -71,7 +71,7 @@ class ShukanParameters extends JFrame {
}
}
});
});
theme2
=
new
JButton
(
"Thème
clair
"
);
theme2
=
new
JButton
(
"Thème
modéré
"
);
theme2
.
setPreferredSize
(
new
Dimension
(
150
,
25
));
theme2
.
setPreferredSize
(
new
Dimension
(
150
,
25
));
theme2
.
addActionListener
(
new
ActionListener
()
{
theme2
.
addActionListener
(
new
ActionListener
()
{
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
...
@@ -90,7 +90,7 @@ class ShukanParameters extends JFrame {
...
@@ -90,7 +90,7 @@ class ShukanParameters extends JFrame {
}
}
});
});
theme3
=
new
JButton
(
"Thème
modéré
"
);
theme3
=
new
JButton
(
"Thème
clair
"
);
theme3
.
setPreferredSize
(
new
Dimension
(
150
,
25
));
theme3
.
setPreferredSize
(
new
Dimension
(
150
,
25
));
theme3
.
addActionListener
(
new
ActionListener
()
{
theme3
.
addActionListener
(
new
ActionListener
()
{
public
void
actionPerformed
(
ActionEvent
e
)
{
public
void
actionPerformed
(
ActionEvent
e
)
{
...
@@ -104,7 +104,6 @@ class ShukanParameters extends JFrame {
...
@@ -104,7 +104,6 @@ class ShukanParameters extends JFrame {
canvas
.
setForeground
(
TEXT_COLOR
,
HOLLY_COLOR
,
INACTIVE_COLOR
);
canvas
.
setForeground
(
TEXT_COLOR
,
HOLLY_COLOR
,
INACTIVE_COLOR
);
student
.
setBackgroundColor
(
BACK_COLOR2
);
student
.
setBackgroundColor
(
BACK_COLOR2
);
student
.
setForeground
(
TEXT_COLOR
);
student
.
setForeground
(
TEXT_COLOR
);
}
}
canvas
.
repaint
();
canvas
.
repaint
();
}
}
...
...
This diff is collapsed.
Click to expand it.
shukan/ShukanStudent.java
+
5
−
2
View file @
9893862a
...
@@ -48,6 +48,9 @@ public class ShukanStudent extends JPanel{
...
@@ -48,6 +48,9 @@ public class ShukanStudent extends JPanel{
private
final
Color
GRID_COLOR
=
Color
.
BLACK
;
private
final
Color
GRID_COLOR
=
Color
.
BLACK
;
/** Text color */
/** Text color */
private
Color
TEXT_COLOR
=
Color
.
BLACK
;
private
Color
TEXT_COLOR
=
Color
.
BLACK
;
/** Color background, text, hollydays*/
private
Color
BACK_COLOR2
=
Color
.
LIGHT_GRAY
;
/** Displayed data */
/** Displayed data */
private
ShukanData
data
=
null
;
private
ShukanData
data
=
null
;
...
@@ -74,7 +77,7 @@ public class ShukanStudent extends JPanel{
...
@@ -74,7 +77,7 @@ public class ShukanStudent extends JPanel{
fontMetrics
=
g2
.
getFontMetrics
();
fontMetrics
=
g2
.
getFontMetrics
();
fontHeight
=
fontMetrics
.
getAscent
();
fontHeight
=
fontMetrics
.
getAscent
();
g2
.
setColor
(
BACK_COLOR
);
g2
.
setColor
(
BACK_COLOR
2
);
g2
.
fillRect
(
appliWidth
-
w
,
appliHeight
-
h
,
w
,
h
);
g2
.
fillRect
(
appliWidth
-
w
,
appliHeight
-
h
,
w
,
h
);
drawBox
(
g2
,
appliWidth
-
w
,
appliHeight
-
h
,
w
,
h
);
drawBox
(
g2
,
appliWidth
-
w
,
appliHeight
-
h
,
w
,
h
);
displayCalendar
(
g2
);
displayCalendar
(
g2
);
...
@@ -167,5 +170,5 @@ public class ShukanStudent extends JPanel{
...
@@ -167,5 +170,5 @@ public class ShukanStudent extends JPanel{
public
void
setForeground
(
Color
c
){
public
void
setForeground
(
Color
c
){
TEXT_COLOR
=
c
;
TEXT_COLOR
=
c
;
repaint
();
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