dcsimg
how to trap mouse double clicks in a jcombobox?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   param_gundeti
Posted On:   Friday, April 6, 2001 05:46 AM

how to trap mouse double clicks in a jcombobox?

Re: how to trap mouse double clicks in a jcombobox?

Posted By:   Sandip_Chitale  
Posted On:   Monday, April 9, 2001 12:43 PM

The obvious answer is -

jcombobox.addMouseListener(
new MouseAdapter() {
public void mouseClicked(MouseEvent me) {
if (me.getClickCount() == 2) {
// double click.
}
}
}
);

Is your JComboBox editable ? If so the
JComboBox editor may be kicking in after
first click and intercepting your second click.
About | Sitemap | Contact