• Post Reply Bookmark Topic Watch Topic
  • New Topic

double click to edit combo in JTable

 
alex earnshaw
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JComboBox as an editor in a column in a JTable. At the moment whenever I click on one of the cells in this column the combo immediately drops down and shows the options.
Is there some way I can stop this happening unless the user double clicks on the cell?
Thankyou
 
Tim Troy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the following:
 
alex earnshaw
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

thankyou so much, it worked a treat! That problem was something I've been trying to solve for weeks on and off but was getting nowhere...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!