mirror of https://github.com/contiki-ng/mspsim
Save and restore window position between restarts
git-svn-id: https://mspsim.svn.sourceforge.net/svnroot/mspsim/mspsim@40 23d1a52b-0c3c-0410-b72d-8f29ab48fe35
This commit is contained in:
parent
d132430db9
commit
33f1983698
|
|
@ -50,6 +50,7 @@ import javax.swing.JScrollPane;
|
|||
import javax.swing.SwingUtilities;
|
||||
|
||||
import se.sics.mspsim.util.SourceViewer;
|
||||
import se.sics.mspsim.util.WindowUtils;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -75,7 +76,8 @@ public class HighlightSourceViewer implements SourceViewer {
|
|||
scroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
|
||||
Container pane = window.getContentPane();
|
||||
pane.add(scroller);
|
||||
window.pack();
|
||||
WindowUtils.restoreWindowBounds("SourceViewer", window);
|
||||
WindowUtils.addSaveOnShutdown("SourceViewer", window);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue