split panes simplified (base class stores the position)

This commit is contained in:
2015-05-06 10:51:05 +02:00
parent 93dca87ec9
commit 40217c0a39
28 changed files with 420 additions and 527 deletions
@@ -16,7 +16,9 @@
*/
package com.jpexs.decompiler.flash.gui.timeline;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.gui.ImagePanel;
import com.jpexs.decompiler.flash.gui.controls.JPersistentSplitPane;
import com.jpexs.decompiler.flash.timeline.Timelined;
import java.awt.BorderLayout;
import javax.swing.JPanel;
@@ -45,7 +47,7 @@ public class TimelineViewPanel extends JPanel {
setLayout(new BorderLayout());
timeline = new TimelinePanel();
timeline.setTimelined(timelined);
add(new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, timeline, previewPanel = new ImagePanel()));
add(new JPersistentSplitPane(JSplitPane.HORIZONTAL_SPLIT, timeline, previewPanel = new ImagePanel(), Configuration.guiTimeLineSplitPaneDividerLocationPercent));
previewPanel.setTimelined(timelined, timelined.getTimeline().swf, 0);
//previewPanel.setPreferredSize(new Dimension(400,300));