• Post Reply Bookmark Topic Watch Topic
  • New Topic

Editable JList

 
satya saha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Every Body,


I have a Jlist in my desktop application ,i want to make it editable in runtime
i have a feature some thing like this
myJList.editable(true);


please help me
Thanks in advance.

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search the forums.
This has been discussed before.
 
satya saha
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply
 
Brian Cole
Author
Ranch Hand
Posts: 920
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
satya saha wrote:
I have a Jlist in my desktop application ,i want to make it editable in runtime
i have a feature some thing like this
myJList.editable(true);


JList just wasn't designed to be editable. It supports ListCellRenderer but there is no ListCellEditor.

The easiest way to get around this is to use a JTable with only one column. Alas, you lose wrapping functionality this way.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!