Java JList JListClearData(javax.swing.JList list)

Here you can find the source of JListClearData(javax.swing.JList list)

Description

J List Clear Data

License

CDDL license

Declaration

public static void JListClearData(javax.swing.JList list) 

Method Source Code

//package com.java2s;
/*/*from   w ww .  ja v  a 2  s .c o m*/
Copyright (c) 2013 eBay, Inc.
This program is licensed under the terms of the eBay Common Development and
Distribution License (CDDL) Version 1.0 (the "License") and any subsequent  version 
thereof released by eBay.  The then-current version of the License can be found 
at http://www.opensource.org/licenses/cddl1.php and in the eBaySDKLicense file that 
is under the eBay SDK ../docs directory.
*/

public class Main {
    public static void JListClearData(javax.swing.JList list) {
        list.setListData(new Object[0]);
    }
}

Related

  1. getVisibleRowCount(JList list)
  2. indexList(JList list, Object object)
  3. indexOf(JList jList, Object obj)
  4. isDoubleClick(MouseEvent evt, JList lst, JButton btn)
  5. isIndexFullyVisible(JList list, int index)
  6. loc2IndexFileList(JList list, Point point)
  7. navigateThroughList(javax.swing.JList list, int keyCode)
  8. pickFirstIfNone(JList list)
  9. pointIsInActualBounds(JList list, int index, Point point)