Package net.sourceforge.processdash.ui.lib

Examples of net.sourceforge.processdash.ui.lib.CheckboxList$CheckmarkTableModel


            JOptionPane.showMessageDialog(parentComponent, message, title,
                JOptionPane.ERROR_MESSAGE);
            return Collections.EMPTY_LIST;
        }

        CheckboxList cbl = new CheckboxList(taskLists.toArray());
        if (preselectedNames != null) {
            for (int i = 0;  i < taskLists.size();  i++) {
                if (preselectedNames.contains(taskLists.get(i).taskListName))
                    cbl.setChecked(i, true);
            }
        }

        JScrollPane sp = new JScrollPane(cbl);
        sp.getViewport().setBackground(cbl.getBackground());
        sp.setPreferredSize(new Dimension(200, 200));
        Object message = new Object[] {
            resources.getString("Forecast_Ranges.Historical_Data.Prompt"), sp };
        if (JOptionPane.showConfirmDialog(parentComponent, message,
            resources.getString("Forecast_Ranges.Historical_Data.Window_Title"),
            JOptionPane.OK_CANCEL_OPTION) != JOptionPane.OK_OPTION)
            return null;

        Object[] selections = cbl.getCheckedItems();
        List<String> result = new ArrayList<String>(selections.length);
        for (int i = 0; i < selections.length; i++) {
            result.add(((TaskListSelection) selections[i]).taskListName);
        }
        return result;
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ui.lib.CheckboxList$CheckmarkTableModel

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.