Skip to content

Commit

Permalink
Window was too large
Browse files Browse the repository at this point in the history
  • Loading branch information
DyspC committed Oct 4, 2020
1 parent e01af1d commit f7a0898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/fr/enssat/dysp/lyrics/LyricsPrimer.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public LyricsPrimer() {
JPanel sourceTextPanel = new JPanel();
sourceTextPanel.setBorder(BorderFactory.createTitledBorder("In"));
final JTextPane sourceText = new JTextPane();
sourceText.setPreferredSize(new Dimension(600, 800));
sourceText.setPreferredSize(new Dimension(450, 600));
((DefaultCaret) sourceText.getCaret()).setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
JScrollPane sourceSP = new JScrollPane(sourceText, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
Expand All @@ -39,7 +39,7 @@ public LyricsPrimer() {
destTextPanel.setBorder(BorderFactory.createTitledBorder("Out"));
final JTextPane destText = new JTextPane();
destText.setEditable(false);
destText.setPreferredSize(new Dimension(600, 800));
destText.setPreferredSize(new Dimension(450, 600));
((DefaultCaret) destText.getCaret()).setUpdatePolicy(DefaultCaret.ALWAYS_UPDATE);
JScrollPane destSP = new JScrollPane(destText, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
Expand Down

0 comments on commit f7a0898

Please sign in to comment.