Package jsky.util.gui

Examples of jsky.util.gui.DateChooserDialog


    }

    // Return the dialog used to select a date
    private DateChooserDialog getDateChooserDialog(Calendar cal, boolean controlPane) {
        if (_dateChooserDialog == null) {
            _dateChooserDialog = new DateChooserDialog(SwingUtil.getFrame(this), cal, controlPane);
        }
        return _dateChooserDialog;
    }
View Full Code Here


     * Display a dialog for selecting the date
     */
    public void selectDate() {
        Calendar cal = Calendar.getInstance(_model.getTimeZone());
        cal.setTime(_model.getDate());
        DateChooserDialog dialog = getDateChooserDialog(cal, true);
        dialog.setVisible(true);
        if (!dialog.isCanceled()) {
            Date date = dialog.getDate();
            _model.setDate(date);
        }
    }
View Full Code Here

TOP

Related Classes of jsky.util.gui.DateChooserDialog

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.