Hi, I'm having a little problem with swing components and actions.
I have 1 action which is shared by 2 swing components (1 menu and 1
popUpMenu). Both of them work over a Tree to do something when a node
is selected.
The problem is that the popUpMenu is getting messed up when I select a
tree node while the menu is working fine, so when I select a node, the
menu is available, but the popUpMenu isn't.
Does anybody knows why is it happening? Maybe 2 swing components
cannot use the same action...
thanks in advance
Allan Valeriano
Andrew Thompson - 16 Feb 2007 20:33 GMT
> Hi, I'm having a little problem with swing components and actions.
Where is your little SSCCE?
<http://www.physci.org/codes/sscce/>
Andrew T.
Daniel Pitts - 17 Feb 2007 00:55 GMT
> Hi, I'm having a little problem with swing components and actions.
> I have 1 action which is shared by 2 swing components (1 menu and 1
[quoted text clipped - 8 lines]
> thanks in advance
> Allan Valeriano
The only advice I can give without you providing an sscce (Andrew
provides you a link):
Make sure you're following the Swing "Single Thread" policy and only
modifying your action from within the EDT, eg with
SwingUtilities.invokeLater().