remove file

to remove single file and multiple file from list

Page 1 of 1

3 Replies - 836 Views - Last Post: 16 June 2009 - 06:40 PM Rate Topic: -----

#1 qema_86   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 04-June 09

remove file

Post icon  Posted 16 June 2009 - 05:55 PM

i want to clear or remove all the file from the list area. i try this code
 

private void remove1ActionPerformed(java.awt.event.ActionEvent evt) {										
	plain1.clearAll ();
	}




plain1 is the JList.
what is the meaning of the clearAll() and different with the clearSelection()?
Is This A Good Question/Topic? 0
  • +

Replies To: remove file

#2 AbuJaFaR   User is offline

  • D.I.C Regular

Reputation: 13
  • View blog
  • Posts: 330
  • Joined: 13-December 07

Re: remove file

Posted 16 June 2009 - 06:07 PM

Where did u find the clearAll() method??
First time I see it.

The clearSelection method removes the selected item from the JList.
Was This Post Helpful? 0
  • +
  • -

#3 qema_86   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 04-June 09

Re: remove file

Posted 16 June 2009 - 06:33 PM

actually it is

 
removeAll()



i use netbeansIDE6.5.1. when we click the . the list will come out. i use GUI builder.
how can i remove all the file in the list?
Was This Post Helpful? 0
  • +
  • -

#4 pbl   User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8381
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: remove file

Posted 16 June 2009 - 06:40 PM

removeAll() empties the list
clearSelection() unselect the previously selected entries if there was some selected
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1