Package javax.swing

Examples of javax.swing.DefaultListModel.indexOf()


       
        ActionListItem item = new ActionListItem (actionDescription);
       
        actionListModel.addElement(item);

        int index = actionListModel.indexOf(item);
       
        actionList.setSelectedIndex(index);
    }
   
    /**
 
View Full Code Here


                // Update the controls with the current values.
                List<Integer> selectionIndexList = new ArrayList<Integer>();

                for (final String table : wizardState.tables) {
                    int listIndex = tableListModel.indexOf(table);
                    if (listIndex >= 0) {
                        selectionIndexList.add(Integer.valueOf(listIndex));
                    }
                }
View Full Code Here

                    if (_curTrec == null) {
                        return;
                    }
                    _quickList.clearSelection();
                    DefaultListModel model = (DefaultListModel) _quickList.getModel();
                    int olddex = model.indexOf(_curTrec);
                    if (olddex != -1) {
                        model.set(olddex, "");
                    }
                    model.set(index, _curTrec);
                    _quickList.setSelectedIndex(index);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.