All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lritdcs.recv.LdrMonitorGui Maven / Gradle / Ivy

Go to download

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();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy