240 * } 241 * } 242 * }; 243 * list.addMouseListener(mouseListener); 244 * </pre> 245 * <p> 246 * <strong>Warning:</strong> Swing is not thread safe. For more 247 * information see <a 248 * href="package-summary.html#threading">Swing's Threading 249 * Policy</a>. 250 * <p> 251 * <strong>Warning:</strong> 252 * Serialized objects of this class will not be compatible with 253 * future Swing releases. The current serialization support is 254 * appropriate for short term storage or RMI between applications running 255 * the same version of Swing. As of 1.4, support for long term storage 256 * of all JavaBeans<sup><font size="-2">TM</font></sup> 257 * has been added to the <code>java.beans</code> package. 258 * Please see {@link java.beans.XMLEncoder}. 259 * <p> 260 * See <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/list.html">How to Use Lists</a> 261 * in <a href="http://java.sun.com/Series/Tutorial/index.html"><em>The Java Tutorial</em></a> 262 * for further documentation. 263 * Also see the article <a href="http://java.sun.com/products/jfc/tsc/tech_topics/jlist_1/jlist.html">Advanced JList Programming</a> 264 * in <a href="http://java.sun.com/products/jfc/tsc"><em>The Swing Connection</em></a>. 265 * <p> 266 * @see ListModel 267 * @see AbstractListModel 268 * @see DefaultListModel 269 * @see ListSelectionModel 270 * @see DefaultListSelectionModel 271 * @see ListCellRenderer 272 * @see DefaultListCellRenderer 273 * 274 * @param <E> the type of the elements of this list 275 * 276 * @beaninfo 277 * attribute: isContainer false 278 * description: A component which allows for the selection of one or more objects from a list. 279 * 280 * @author Hans Muller 281 */ 282 public class JList<E> extends JComponent implements Scrollable, Accessible 283 { | 240 * } 241 * } 242 * }; 243 * list.addMouseListener(mouseListener); 244 * </pre> 245 * <p> 246 * <strong>Warning:</strong> Swing is not thread safe. For more 247 * information see <a 248 * href="package-summary.html#threading">Swing's Threading 249 * Policy</a>. 250 * <p> 251 * <strong>Warning:</strong> 252 * Serialized objects of this class will not be compatible with 253 * future Swing releases. The current serialization support is 254 * appropriate for short term storage or RMI between applications running 255 * the same version of Swing. As of 1.4, support for long term storage 256 * of all JavaBeans<sup><font size="-2">TM</font></sup> 257 * has been added to the <code>java.beans</code> package. 258 * Please see {@link java.beans.XMLEncoder}. 259 * <p> 260 * See <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/list.html">How to Use Lists</a> 261 * in <a href="http://www.oracle.com/technetwork/java/index.html"><em>The Java Tutorial</em></a> 262 * for further documentation. 263 * Also see the article <a href="http://www.oracle.com/technetwork/java/index.html">Advanced JList Programming</a> 264 * in <a href="http://java.sun.com/products/jfc/tsc"><em>The Swing Connection</em></a>. 265 * <p> 266 * @see ListModel 267 * @see AbstractListModel 268 * @see DefaultListModel 269 * @see ListSelectionModel 270 * @see DefaultListSelectionModel 271 * @see ListCellRenderer 272 * @see DefaultListCellRenderer 273 * 274 * @param <E> the type of the elements of this list 275 * 276 * @beaninfo 277 * attribute: isContainer false 278 * description: A component which allows for the selection of one or more objects from a list. 279 * 280 * @author Hans Muller 281 */ 282 public class JList<E> extends JComponent implements Scrollable, Accessible 283 { |