Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTextField in JList  RSS feed

 
Ranjha Warris
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Say we put JTextField in a JPanel implement ListRenderer and Set JList to rubberStamp model element with out new ListCellRenderer; brillant - but how do we get the JTextField to recieve focus from JList .i.e how to make JTextField work as a JList element?
Peace
 
clio katz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ranjha Warris:
Say we put JTextField in a JPanel implement ListRenderer and Set JList to rubberStamp model element with out new ListCellRenderer; brillant - but how do we get the JTextField to recieve focus from JList .i.e how to make JTextField work as a JList element?

Peace


Can you give an indication of whether you are interested in solving a visual problem, or a data model problem?

(1) Do you only want the UI to show the item as selected (because you're not saying that the JList has in any way failed to propagate it as 'selected' when it has been selected). The visual stuff would be handled in the (bypassed) renderer

or

(2) Are you somehow losing the JTextField attributes in the data model?


will try to help if you can give some more details...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!