Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JList Problem  RSS feed

 
Ganesh R Murugan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai friends

i am using JList in a java program , and inserting values using vectors
i need to get all the elements from the JList.
can any one know the ans please help me

by

Ganesh R Murugan(Annan Thambi)
[ February 10, 2006: Message edited by: Ernest Friedman-Hill ]
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I edited your subject line. Please see here for an explanation.

As this is a Swing question, it belongs in our Swing/AWT forum; I will move it there for you.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call getModel() on the JList to get the ListModel; ask the ListModel for the data (see the Javadocs for details.)
 
Ganesh R Murugan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Thanks for your keen observation and timely help.

by
Ganesh R Murugan.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!