开发者

How to keep fieldManager in Stack

开发者 https://www.devze.com 2023-02-28 13:47 出处:网络
When i put a VerticalFieldManager to a Stack and delete all items in VerticalFieldManager, the VerticalFieldManager in Stack is also changing.

When i put a VerticalFieldManager to a Stack and delete all items in VerticalFieldManager, the VerticalFieldManager in Stack is also changing.

Does Stack keep refe开发者_StackOverflow中文版rence of object? If so, how can I keep managers in a Stack?


Does Stack keep reference of object?

Yes, it works as any other Java container, such as a Vector for example.

If so, how can I keep managers in a Stack?

Not sure what are you talking about. Once you have put an Object into container the Object is already kept by the container.

Probably say what are you trying to achieve with putting managers in a Stack.

0

精彩评论

暂无评论...
验证码 换一张
取 消