Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpc-workflow-manager
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
Container Registry
Model registry
Operate
Environments
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
FIJI
hpc-workflow-manager
Commits
3a14790c
Commit
3a14790c
authored
7 years ago
by
Jan Kožusznik
Browse files
Options
Downloads
Patches
Plain Diff
scroll jfxpanel
parent
fd47e635
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
haas-imagej-client/src/main/java/cz/it4i/fiji/haas/ui/FXFrame.java
+7
-2
7 additions, 2 deletions
...ej-client/src/main/java/cz/it4i/fiji/haas/ui/FXFrame.java
with
7 additions
and
2 deletions
haas-imagej-client/src/main/java/cz/it4i/fiji/haas/ui/FXFrame.java
+
7
−
2
View file @
3a14790c
package
cz.it4i.fiji.haas.ui
;
import
java.awt.BorderLayout
;
import
java.awt.Dimension
;
import
java.awt.Frame
;
import
java.awt.Window
;
...
...
@@ -9,6 +10,7 @@ import java.net.URL;
import
java.util.function.Consumer
;
import
javax.swing.JDialog
;
import
javax.swing.JScrollPane
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -58,7 +60,10 @@ public class FXFrame<C extends FXFrame.Controller> extends JDialog {
this
.
controlerInit
=
controlerInit
;
this
.
fxPanel
=
new
P_JFXPanel
();
Platform
.
setImplicitExit
(
false
);
this
.
add
(
this
.
fxPanel
);
this
.
setLayout
(
new
BorderLayout
());
JScrollPane
scrollPane
=
new
JScrollPane
(
this
.
fxPanel
);
this
.
add
(
scrollPane
,
BorderLayout
.
CENTER
);
// The call to runLater() avoid a mix between JavaFX thread and Swing thread.
runOnFxThread
(()
->
initFX
(
fxPanel
));
...
...
@@ -76,7 +81,7 @@ public class FXFrame<C extends FXFrame.Controller> extends JDialog {
URL
res
=
FXFrame
.
class
.
getResource
(
fxmlFile
);
loader
.
setLocation
(
res
);
Parent
rootLayout
=
(
Parent
)
loader
.
load
();
// Show the scene containing the root layout.
Scene
scene
=
new
Scene
(
rootLayout
);
this
.
fxPanel
.
setScene
(
scene
);
...
...
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