>>When setting a new menu item text while the program is running, nothing
>>happens visually. Does anyone know why and how to fix it?
>
> call validate() on the menu/item
Doesn't work. I tried
revalidate();
repaint();
before, and even that didn't work. So, I'm completely in the dark.
I did a System print to verify that the string to be set is correct, so
there must be some (again) weird Swing redrawing problem.
I definitely don't want to rebuild the GUI because of such an event.
Any other ideas?
Karsten
VisionSet - 20 Dec 2003 21:57 GMT
> > call validate() on the menu/item
>
> Doesn't work. I tried
>
> Any other ideas?
Yes, write a small piece of code that illustrates the problem 9/10 you
usually spot it in doing so. If not post it here. Should only need to be
20ish lines.

Signature
Mike W
Karsten Wutzke - 20 Dec 2003 22:11 GMT
>>>call validate() on the menu/item
I found it somewhere in the trenches of my old code. My fault.
The GUI component didn't hook its model, and the model printed the same
diagnostics message as the menu item, so I thought the update method on
my custom menu item got called... -> Duh.
Copy and paste sometimes is dangerous...
Karsten