Codigo Java
“void” | add”(“String “item)“
Adds the specified item to the end of scrolling list. |
“void” | add”(“String “item, int index)“
Adds the specified item to the the scrolling listat the position indicated by the index. |
“void” | addActionListener”(“ActionListener “l)“
Adds the specified action listener to receive action events from this list. |
“void” | addItem”(“String“item)“
Deprecated. replaced by “add(String)”. |
“void” | addItem”(“String “item, int index)“
Deprecated. replaced by “add(String, int)”. |
“void” | addItemListener”(“ItemListener “l)“
Addsthe specified item listener to receive item events from this list. |
“void” | addNotify”()“
Creates the peer for the list. |
“boolean” | allowsMultipleSelections”()“
Deprecated. As of JDK version1.1, replaced by “isMultipleMode()”. |
“void” | clear”()“
Deprecated. As of JDK version 1.1, replaced by “removeAll()”. |
“int” | countItems”()“
Deprecated. As of JDK version 1.1, replaced by“getItemCount()”. |
“void” | delItem”(int position)“
Deprecated. replaced by “remove(String)” and “remove(int)”. |
“void” | delItems”(int start, int end)“
Deprecated. As of JDK version 1.1, Not forpublic use in the future. This method is expected to be retained only as a package private method. |
“void” | deselect”(int index)“
Deselects the item at the specified index. |
AccessibleContext| getAccessibleContext”()“
Gets the AccessibleContext associated with this List. |
String | getItem”(int index)“
Gets the item associated with the specified index. |
“int” | getItemCount”()“Gets the number of items in the list. |
String”[]” | getItems”()“
Gets the items in the list. |
EventListener”[]” | getListeners”(“Class “listenerType)“
Return an array of all the listeners thatwere added to the List with addXXXListener(), where XXX is the name of the “listenerType” argument. |
Dimension | getMinimumSize”()“
Determines the minimum size of this scrolling list. |...
Regístrate para leer el documento completo.