Class SwingSession

java.lang.Object
fr.ifremer.isisfish.ui.widget.SwingSession

public class SwingSession extends Object
Use to store and restore position and size of application. Supported widgets are:
  • java.awt.Window (and subclasses)
  • javax.swing.JTabbedPane (and subclasses)
  • javax.swing.JSplitPane (and subclasses)
  • javax.swing.JTable (and subclasses)
usage:
  • create SwingSession object
  • add component that you want save
  • explicit call to save
You can use same SwingSession for multiple window but in this case you must have setName for each window with different name, otherwise there are collision between window component and result is undetermined This code is partially inspired from bsaf project. This project is under LGPL v2.1 license. We can't reuse directly this library because to many fields and methods are private and we can't implements it and modify some behavior.
Author:
poussin