right click menu not highlighting  
Author Message
6e





PostPosted: 2006-1-21 5:58:00 Top

java-programmer, right click menu not highlighting Im working with a jtree and I have added the jpopupmenu to the jtree
object.

When I right click a node the menu comes up appropriately, it even
accepts clicks and performs the appropriate action. The only thing
that isnt working is the right menu highlighting when I have the mouse
over the menu items...

Im wondering if there is some place in my code where I perhaps overrode
some code that would typically be responsible for highlighting the
right click menu... I implemented a little drag and drop functionality
for the jtree, could this be messing with the highlighting of the menu?

Thanks

 
Thomas Fritsch





PostPosted: 2006-1-24 0:24:00 Top

java-programmer >> right click menu not highlighting 6e wrote:
> Im working with a jtree and I have added the jpopupmenu to the jtree
> object.
What exactly do you mean with "added the jpopupmenu to the jtree" ?
(1) called setComponentPopupMenu(JPopupMenu) on your JTree
(that would make much sense)
(2) called one of the add(...) methods on your JTree
(that would be wrong in my opinion)
(3) called something else
>
> When I right click a node the menu comes up appropriately, it even
> accepts clicks and performs the appropriate action. The only thing
> that isnt working is the right menu highlighting when I have the mouse
> over the menu items...
>
> Im wondering if there is some place in my code where I perhaps overrode
and so wonder I without seeing your code

> some code that would typically be responsible for highlighting the
> right click menu... I implemented a little drag and drop functionality
> for the jtree, could this be messing with the highlighting of the menu?

--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')