Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AMAPVox Stubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AMAP
AMAPVox
AMAPVox Stubs
Commits
dca3fbec
Verified
Commit
dca3fbec
authored
5 years ago
by
tristan.muller
Committed by
philippe.verley_ird.fr
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix the JProgressFrame centering
parent
9be14232
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
AMAPVox/Dependencies/Commons/commons-util/src/main/java/fr/amap/commons/util/swing/jprogress/JProgressFrame.java
+12
-14
12 additions, 14 deletions
.../fr/amap/commons/util/swing/jprogress/JProgressFrame.java
with
12 additions
and
14 deletions
AMAPVox/Dependencies/Commons/commons-util/src/main/java/fr/amap/commons/util/swing/jprogress/JProgressFrame.java
+
12
−
14
View file @
dca3fbec
...
@@ -41,6 +41,13 @@ public class JProgressFrame extends FrameView {
...
@@ -41,6 +41,13 @@ public class JProgressFrame extends FrameView {
public
JProgressFrame
()
throws
Exception
{
public
JProgressFrame
()
throws
Exception
{
super
();
super
();
setLocationRelativeTo
(
getParent
());
setResizable
(
false
);
setVisible
(
true
);
if
(
onInitCallback
!=
null
)
{
onInitCallback
.
run
();
}
}
}
public
void
setOnInitCallback
(
final
Runnable
onInitCallback
)
{
public
void
setOnInitCallback
(
final
Runnable
onInitCallback
)
{
...
@@ -60,14 +67,11 @@ public class JProgressFrame extends FrameView {
...
@@ -60,14 +67,11 @@ public class JProgressFrame extends FrameView {
@Override
@Override
protected
void
initContainer
()
throws
Exception
{
protected
void
initContainer
()
throws
Exception
{
setLocationRelativeTo
(
getParent
());
setIconImage
(
loadIcon
(
"/icons/progression.png"
).
getImage
());
setIconImage
(
loadIcon
(
"/icons/progression.png"
).
getImage
());
setVisible
(
true
);
setDefaultCloseOperation
(
javax
.
swing
.
WindowConstants
.
DISPOSE_ON_CLOSE
);
setResizable
(
false
);
setTitle
(
"Progression"
);
getContentPane
().
setLayout
(
new
javax
.
swing
.
BoxLayout
(
getContentPane
(),
if
(
onInitCallback
!=
null
)
{
javax
.
swing
.
BoxLayout
.
PAGE_AXIS
));
onInitCallback
.
run
();
}
}
}
@Override
@Override
...
@@ -77,11 +81,6 @@ public class JProgressFrame extends FrameView {
...
@@ -77,11 +81,6 @@ public class JProgressFrame extends FrameView {
jPanelStatus
=
new
javax
.
swing
.
JPanel
();
jPanelStatus
=
new
javax
.
swing
.
JPanel
();
jLabelStatus
=
new
javax
.
swing
.
JLabel
();
jLabelStatus
=
new
javax
.
swing
.
JLabel
();
setDefaultCloseOperation
(
javax
.
swing
.
WindowConstants
.
DISPOSE_ON_CLOSE
);
setTitle
(
"Progression"
);
getContentPane
().
setLayout
(
new
javax
.
swing
.
BoxLayout
(
getContentPane
(),
javax
.
swing
.
BoxLayout
.
PAGE_AXIS
));
jProgressBar
.
setPreferredSize
(
new
java
.
awt
.
Dimension
(
500
,
19
));
jProgressBar
.
setPreferredSize
(
new
java
.
awt
.
Dimension
(
500
,
19
));
jPanelProgress
.
add
(
jProgressBar
);
jPanelProgress
.
add
(
jProgressBar
);
...
@@ -94,6 +93,5 @@ public class JProgressFrame extends FrameView {
...
@@ -94,6 +93,5 @@ public class JProgressFrame extends FrameView {
pack
();
pack
();
}
}
}
}
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