Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
a53ed447
Commit
a53ed447
authored
Mar 24, 2016
by
Björn Richerzhagen
Browse files
Fixed Scrollbars in VisualizationTopologyView
parent
d4d15a30
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/VisualizationTopologyView.java
View file @
a53ed447
...
...
@@ -136,6 +136,9 @@ public class VisualizationTopologyView extends JFrame implements TopologyView,
VisualizationInjector
.
setVariables
(
this
,
visManager
,
worldPanel
,
WORLD_X
,
WORLD_Y
);
worldPanel
.
setPreferredSize
(
new
Dimension
(
VisualizationInjector
.
getWorldX
(),
VisualizationInjector
.
getWorldY
()));
this
.
setPreferredSize
(
new
Dimension
(
800
,
600
));
Thread
t
=
new
Thread
(
this
);
t
.
start
();
...
...
@@ -152,8 +155,8 @@ public class VisualizationTopologyView extends JFrame implements TopologyView,
* World-view
*/
JScrollPane
mapScrollPanel
=
new
JScrollPane
(
worldPanel
,
ScrollPaneConstants
.
VERTICAL_SCROLLBAR_A
S_NEEDED
,
ScrollPaneConstants
.
HORIZONTAL_SCROLLBAR_A
S_NEEDED
);
ScrollPaneConstants
.
VERTICAL_SCROLLBAR_A
LWAYS
,
ScrollPaneConstants
.
HORIZONTAL_SCROLLBAR_A
LWAYS
);
mapScrollPanel
.
getVerticalScrollBar
().
setUnitIncrement
(
50
);
mapScrollPanel
.
getHorizontalScrollBar
().
setUnitIncrement
(
50
);
mapScrollPanel
.
setBackground
(
Color
.
DARK_GRAY
);
...
...
@@ -312,9 +315,6 @@ public class VisualizationTopologyView extends JFrame implements TopologyView,
public
WorldPanel
()
{
this
.
setLayout
(
null
);
this
.
setPreferredSize
(
new
Dimension
(
VisualizationInjector
.
getWorldX
(),
VisualizationInjector
.
getWorldY
()));
}
@Override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment