|
Re: Edit in place: msg#00036java.netbeans.modules.graph.user
Hi Chris, I am not sure if I understand it correctly but I think that you have forgotten to call Scene.validate method after all changes of widgets in scene. Scene.validate method notifies the library that a scene has to be calculated/repainted. Usually this method is called automatically when the library can track the end of scene modifications e.g. at the end of WidgetAction method calls. On the other hand, if you are changing a scene in a ActionListener.actionPerformed method, then the library cannot track the end of scene modifications. Therefore you have to call Scene.validate manually. Widget.revalidate is meant to be used internally by Widget-based classes. If you are using built-in widget implementations, then you do not need to call Widget.revalidate or Widget.repaint anytime. If I misunderstand you, please, send me a test-case to reproduce your problem. Thanks, David Chris Palmer wrote: > Hello! > > I implemented an edit in place component. It derived from > ComponentWidget and my swing component is in side. However when the > edit is done the orginal text is still displayed any reason for this? > Or did I do something wrong....? I tried revalidate on the widget but > it didn't work..... > > Chris > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > users-unsubscribe-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx > For additional commands, e-mail: > users-help-Hi7mZnf3vbIkiw2pgZvNdR2eb7JE58TQ@xxxxxxxxxxxxxxxx >
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Mouse Cursor Changes when at control point, David Kaspar |
|---|---|
| Next by Date: | Re: Edit in place, Chris Palmer |
| Previous by Thread: | Edit in place, Chris Palmer |
| Next by Thread: | Re: Edit in place, Chris Palmer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |