logo       

Re: Edit in place: msg#00036

java.netbeans.modules.graph.user

Subject: Re: Edit in place


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>
Google Custom Search

News | FAQ | advertise