Added vertical scrollbar to conversion results

This commit is contained in:
Georgy Litvinov 2021-10-15 19:51:03 +02:00
parent c417b4fcd0
commit f88a4a17a4

View file

@ -23,6 +23,7 @@ import java.awt.event.ActionEvent;
import java.awt.Color; import java.awt.Color;
import javax.swing.LayoutStyle.ComponentPlacement; import javax.swing.LayoutStyle.ComponentPlacement;
import java.awt.Toolkit; import java.awt.Toolkit;
import javax.swing.ScrollPaneConstants;
public class ResultsDialog extends JDialog { public class ResultsDialog extends JDialog {
@ -60,6 +61,7 @@ public class ResultsDialog extends JDialog {
SingleLogArray singleLogArray = SingleLogArray.create(); SingleLogArray singleLogArray = SingleLogArray.create();
JScrollPane scrollPane = new JScrollPane(); JScrollPane scrollPane = new JScrollPane();
scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
JTextArea txtrConversionCompleted = new JTextArea(); JTextArea txtrConversionCompleted = new JTextArea();
txtrConversionCompleted.setBackground(Color.WHITE); txtrConversionCompleted.setBackground(Color.WHITE);