lritdcs.recv.LdrMonitorGui Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opendcs Show documentation
Show all versions of opendcs Show documentation
A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.
The newest version!
package lritdcs.recv;
import ilex.gui.WindowUtility;
import javax.swing.UIManager;
public class LdrMonitorGui
{
boolean packFrame = false;
//Construct the application
public LdrMonitorGui()
throws Exception
{
LdrMonitorFrame frame = new LdrMonitorFrame();
//Validate frames that have preset sizes
//Pack frames that have useful preferred size info, e.g. from their layout
if (packFrame)
{
frame.pack();
}
else
{
frame.validate();
}
WindowUtility.center(frame);
LritDcsRecvConfig cfg = LritDcsRecvConfig.instance();
cfg.setPropFile("ldr.conf");
cfg.load();
frame.init();
frame.setVisible(true);
}
//Main method
public static void main(String[] args)
{
try
{
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
new LdrMonitorGui();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}