From f88a4a17a49e79505b63532f2846522e3bb0fb33 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 15 Oct 2021 19:51:03 +0200 Subject: [PATCH] Added vertical scrollbar to conversion results --- src/main/java/pro/litvinovg/w2phtml/gui/ResultsDialog.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/pro/litvinovg/w2phtml/gui/ResultsDialog.java b/src/main/java/pro/litvinovg/w2phtml/gui/ResultsDialog.java index 01e4ed2..de967d1 100644 --- a/src/main/java/pro/litvinovg/w2phtml/gui/ResultsDialog.java +++ b/src/main/java/pro/litvinovg/w2phtml/gui/ResultsDialog.java @@ -23,6 +23,7 @@ import java.awt.event.ActionEvent; import java.awt.Color; import javax.swing.LayoutStyle.ComponentPlacement; import java.awt.Toolkit; +import javax.swing.ScrollPaneConstants; public class ResultsDialog extends JDialog { @@ -60,6 +61,7 @@ public class ResultsDialog extends JDialog { SingleLogArray singleLogArray = SingleLogArray.create(); JScrollPane scrollPane = new JScrollPane(); + scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS); JTextArea txtrConversionCompleted = new JTextArea(); txtrConversionCompleted.setBackground(Color.WHITE);