From 2f9abf76295d487d9e154d6a31df1b8e39dadfdc Mon Sep 17 00:00:00 2001 From: Matt Jenkins Date: Sun, 12 Jan 2020 15:01:22 +0000 Subject: [PATCH] Fix split location problem --- .../majenko/audiobookrecorder/AudiobookRecorder.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java b/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java index dd761a4..d722b8f 100644 --- a/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java +++ b/src/uk/co/majenko/audiobookrecorder/AudiobookRecorder.java @@ -773,6 +773,7 @@ public class AudiobookRecorder extends JFrame { mainScroll = new JScrollPane(); notesArea = new JTextArea(); + notesArea.setFont(new Font("Monospaced", Font.PLAIN, 10)); notesScroll = new JScrollPane(); notesScroll.setViewportView(notesArea); @@ -800,10 +801,17 @@ public class AudiobookRecorder extends JFrame { bindKeys(centralPanel); + mainSplit.setResizeWeight(0.8d); + pack(); - mainSplit.setDividerLocation(0.8d); setVisible(true); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + mainSplit.setDividerLocation(0.8d); + } + }); + String lastBook = Options.get("path.last-book"); if (lastBook != null && !lastBook.equals("")) {