Fix split location problem
This commit is contained in:
@@ -773,6 +773,7 @@ public class AudiobookRecorder extends JFrame {
|
|||||||
mainScroll = new JScrollPane();
|
mainScroll = new JScrollPane();
|
||||||
|
|
||||||
notesArea = new JTextArea();
|
notesArea = new JTextArea();
|
||||||
|
notesArea.setFont(new Font("Monospaced", Font.PLAIN, 10));
|
||||||
notesScroll = new JScrollPane();
|
notesScroll = new JScrollPane();
|
||||||
notesScroll.setViewportView(notesArea);
|
notesScroll.setViewportView(notesArea);
|
||||||
|
|
||||||
@@ -800,10 +801,17 @@ public class AudiobookRecorder extends JFrame {
|
|||||||
|
|
||||||
bindKeys(centralPanel);
|
bindKeys(centralPanel);
|
||||||
|
|
||||||
|
mainSplit.setResizeWeight(0.8d);
|
||||||
|
|
||||||
pack();
|
pack();
|
||||||
mainSplit.setDividerLocation(0.8d);
|
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
|
|
||||||
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
|
public void run() {
|
||||||
|
mainSplit.setDividerLocation(0.8d);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
String lastBook = Options.get("path.last-book");
|
String lastBook = Options.get("path.last-book");
|
||||||
|
|
||||||
if (lastBook != null && !lastBook.equals("")) {
|
if (lastBook != null && !lastBook.equals("")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user