File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JComboBox in the JTable Editor

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I have a JTable which is having the JComboBox as a Cell Editor.
Where JTable has the Selection Listner, Where i can select single row.

Problem is when i try to select the row, by clicking on the JComboBox cell, the both ComboBox DropDown and the Table Row selection listner will trigger.
So the Drop down will go off.. and selection will happen.

so i need to click twice to see the JCombobox dropdown menu.

Please help me how i can handle this.

Thanks in advance

 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to make use of the method setClickCountToStart(). This has been discussed most recently here
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic