Package de.kopis.jusenet.ui.models

Examples of de.kopis.jusenet.ui.models.GroupListModel


     */
  private void initTimer() {
        updateTimer = new Timer(Integer.parseInt(Application.getInstance().getProperty("updateinterval", "" + UPDATE_INTERVAL)),
                new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                GroupListModel model = (GroupListModel) subscribedGroupList.getModel();
                for (int i = 0; i < model.getSize(); i++) {
                    Group g = (Group) model.getElementAt(i);
                    try {
                        NNTPUtils.getInstance().getArticles(g, g.getLastUpdate());
                    } catch (NntpNotConnectedException e1) {
                        GuiUtils.showError(e1);
                    }
View Full Code Here


 
  private void createGroupTabs() {
        groupTabs = new JTabbedPane();

        // create models
        GroupListModel allgroupmodel = new GroupListModel();
        GroupListModel newgroupmodel = new GroupListModel();
        GroupListModel subscribedgroupmodel = new GroupListModel();
        // popuplate models
        try {
            Iterator<Group> it = HibernateUtils.listGroups().iterator();
            Group g;
            while(it.hasNext()) {
                g = it.next();
                allgroupmodel.addElement(g);
                if(g.isSubscribed()) {
                    subscribedgroupmodel.addElement(g);
                }
            }
        } catch (JDBCConnectionException e) {
            System.err.println("Cannot open connection to database.");
            System.err.println("Maybe you restarted to fast? Let HSQLDB recover from last session.");
View Full Code Here

TOP

Related Classes of de.kopis.jusenet.ui.models.GroupListModel

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.