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
64d83a29
Commit
64d83a29
authored
1 year ago
by
BERRADA Louise
Browse files
Options
Downloads
Patches
Plain Diff
apparence texte
parent
16f02370
No related branches found
Branches containing commit
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
+55
-19
55 additions, 19 deletions
shukan/ShukanParameters.java
with
55 additions
and
19 deletions
shukan/ShukanParameters.java
+
55
−
19
View file @
64d83a29
...
...
@@ -36,11 +36,7 @@ class ShukanParameters extends JFrame {
changerdetheme
=
new
JButton
(
"Changer de thème"
);
changerdetheme
.
setPreferredSize
(
new
Dimension
(
190
,
25
));
para
=
new
JButton
(
"Raccourcis"
);
para
.
setPreferredSize
(
new
Dimension
(
190
,
25
));
changerdetheme
.
addActionListener
(
new
ActionListener
()
{
public
void
actionPerformed
(
ActionEvent
e
)
{
remove
(
pPrincipal
);
...
...
@@ -116,6 +112,7 @@ class ShukanParameters extends JFrame {
gbcprinc
.
gridy
=
0
;
gbc
.
fill
=
GridBagConstraints
.
HORIZONTAL
;
p
.
add
(
changerdetheme
,
gbcprinc
);
gbcprinc
.
gridx
=
0
;
gbcprinc
.
gridy
=
1
;
p
.
add
(
para
,
gbcprinc
);
...
...
@@ -151,16 +148,20 @@ class ShukanParameters extends JFrame {
}
});
para
=
new
JButton
(
"Raccourcis"
);
para
.
setPreferredSize
(
new
Dimension
(
190
,
25
));
para
.
addActionListener
(
new
ActionListener
()
{
public
void
actionPerformed
(
ActionEvent
e
){
remove
(
pPrincipal
);
validate
();
repaint
();
p2
=
new
JPanel
();
p2
.
setLayout
(
new
BoxLayout
(
p2
,
BoxLayout
.
Y_AXIS
));
setSize
(
new
Dimension
(
400
,
300
));
p2
=
new
JPanel
(
new
GridBagLayout
());
GridBagConstraints
gbcpara
=
new
GridBagConstraints
();
setSize
(
new
Dimension
(
500
,
400
));
Labq
=
new
JLabel
(
"q : Quitter"
);
Labl
=
new
JLabel
(
"l : Déplace extremité gauche vers gauche"
);
...
...
@@ -183,11 +184,13 @@ class ShukanParameters extends JFrame {
p2
.
removeAll
();
gbcprinc
.
insets
=
new
Insets
(
10
,
10
,
10
,
10
);
setSize
(
new
Dimension
(
300
,
300
));
gbcprinc
.
gridx
=
0
;
gbcprinc
.
gridy
=
0
;
gbc
.
fill
=
GridBagConstraints
.
HORIZONTAL
;
p
.
add
(
changerdetheme
,
gbcprinc
);
gbcprinc
.
gridx
=
0
;
gbcprinc
.
gridy
=
1
;
p
.
add
(
para
,
gbcprinc
);
...
...
@@ -199,17 +202,50 @@ class ShukanParameters extends JFrame {
}
});
p2
.
add
(
Labq
);
p2
.
add
(
Labl
);
p2
.
add
(
Labm
);
p2
.
add
(
LabLO
);
p2
.
add
(
LabMP
);
p2
.
add
(
Lableft
);
p2
.
add
(
Labright
);
p2
.
add
(
LabE
);
p2
.
add
(
LabX
);
p2
.
add
(
retour
);
gbcpara
.
insets
=
new
Insets
(
10
,
10
,
10
,
10
);
gbcpara
.
anchor
=
GridBagConstraints
.
WEST
;
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
0
;
gbc
.
fill
=
GridBagConstraints
.
HORIZONTAL
;
p2
.
add
(
Labq
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
1
;
p2
.
add
(
Labl
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
2
;
p2
.
add
(
Labm
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
3
;
p2
.
add
(
LabLO
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
4
;
p2
.
add
(
LabMP
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
5
;
p2
.
add
(
Lableft
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
6
;
p2
.
add
(
Labright
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
7
;
p2
.
add
(
LabE
,
gbcpara
);
gbcpara
.
gridx
=
0
;
gbcpara
.
gridy
=
8
;
p2
.
add
(
LabX
,
gbcpara
);
gbcprinc
.
gridx
=
0
;
gbcprinc
.
gridy
=
9
;
p2
.
add
(
retour
,
gbcprinc
);
add
(
p2
);
...
...
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