Package com.fiveht.tick.data

Examples of com.fiveht.tick.data.Properties


       
        init();
    }

    private void init() throws SQLException {
        Properties p = Properties.getInstance();
       
        setLocation(p.getInt("x"), p.getInt("y"));
        setSize(p.getInt("width", 360), p.getInt("height", 480));
        setIconImage(Toolkit.getDefaultToolkit().getImage(Frame.class.getResource("/com/fiveht/tick/icons/clock.png")));
       
        addWindowListener(this);
        view.addExitListener(this);
       
View Full Code Here


    }

    @Override
    public void exitSelected(ExitEvent event) {
        try {
            Properties p = Properties.getInstance();

            p.set("x", getLocation().x);
            p.set("y", getLocation().y);
            p.set("width", getSize().width);
            p.set("height", getSize().height);
        }
        catch (Throwable thrown) {
            Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, thrown);
            JOptionPane.showMessageDialog(this, thrown.getMessage());
        }
View Full Code Here

TOP

Related Classes of com.fiveht.tick.data.Properties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.