help.
because I extended JComboBox and such things are handled by JComboBox.
It is always better to extend something existing then write it from scratch.
> > I think you ask second time.
> > See http://www.imagero.com/java/mcb/
[quoted text clipped - 12 lines]
> > >
> > > Help!!!
Alright well thanks. But I still am looking for answer to my question
which I will repeat: Does anyone know how th add a mouse listener to
the actual popup box of the jcombobox in order to register clicks on
the particular items?
Any help appreciated
> > This code doesn't have any mouse listener on it so it really doesn't
> help.
[quoted text clipped - 19 lines]
> > > >
> > > > Help!!!
Bryan E. Boone - 05 Nov 2003 02:48 GMT
The popup part is really a JPopupMenu. What you'll want to do is grab the
popup menu
when you create this guy and add an ActionListener to the menu items.
(and a PopupMenuListener to the popup menu)
You should probably add the actionlistener when you get a
popupWillBecomeVisible message.
I had to so something similar when I created a calender ui component that
looked like
the one in OutLook. The combo box had an editable date, but when it popped
up, it displayed a calendar ui.
Under the covers, I grabbed the popup menu and removed all the items from it
and then added
my calendar ui when I got the popupWillBecomeVisible message.
-Bryan
> Alright well thanks. But I still am looking for answer to my question
> which I will repeat: Does anyone know how th add a mouse listener to
[quoted text clipped - 25 lines]
> > > > >
> > > > > Help!!!