< prev index next >

src/java.desktop/share/classes/javax/swing/JList.java

Print this page

        

@@ -2888,10 +2888,13 @@
         implements AccessibleSelection, PropertyChangeListener,
         ListSelectionListener, ListDataListener {
 
         int leadSelectionIndex;
 
+        /**
+         * Constructs an {@code AccessibleJList}.
+         */
         public AccessibleJList() {
             super();
             JList.this.addPropertyChangeListener(this);
             JList.this.getSelectionModel().addListSelectionListener(this);
             JList.this.getModel().addListDataListener(this);

@@ -3191,10 +3194,15 @@
             private Component component = null;
             private AccessibleContext accessibleContext = null;
             private ListModel<E> listModel;
             private ListCellRenderer<? super E> cellRenderer = null;
 
+            /**
+             * Constructs an {@code AccessibleJListChild}.
+             * @param parent the parent
+             * @param indexInParent the index in the parent
+             */
             public AccessibleJListChild(JList<E> parent, int indexInParent) {
                 this.parent = parent;
                 this.setAccessibleParent(parent);
                 this.indexInParent = indexInParent;
                 if (parent != null) {
< prev index next >