Skip to content

Commit df949c2

Browse files
committed
minor cleanup
1 parent 6276578 commit df949c2

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

src/main/java/com.babai.maptracker/MapTrackerUIFX.java

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ public void start(Stage stage) throws Exception {
121121

122122
ScrollPane scrImg = new ScrollPane();
123123
scrImg.setContent(img);
124-
scrImg.setMaxSize(screenBounds.getWidth(), 0.70*screenBounds.getHeight());
125124

126125
// Bottom Pane
127126
GridPane pnlForm = new GridPane();
@@ -311,17 +310,14 @@ private void showHelp() {
311310
Stage stage = new Stage();
312311
stage.setTitle("Usage Guide");
313312
final SwingNode node = new SwingNode();
314-
SwingUtilities.invokeLater(new Runnable() {
315-
@Override
316-
public void run() {
317-
JTextPane textPane = new JTextPane();
318-
try {
319-
textPane.setPage(this.getClass().getResource("/docs/Usage.html"));
320-
} catch (IOException e) {
321-
e.printStackTrace();
322-
}
323-
node.setContent(new JScrollPane(textPane));
313+
SwingUtilities.invokeLater(() -> {
314+
JTextPane textPane = new JTextPane();
315+
try {
316+
textPane.setPage(this.getClass().getResource("/docs/Usage.html"));
317+
} catch (IOException e) {
318+
e.printStackTrace();
324319
}
320+
node.setContent(new JScrollPane(textPane));
325321
});
326322
VBox box = new VBox(node);
327323
VBox.setVgrow(node, Priority.ALWAYS);

0 commit comments

Comments
 (0)