Thanks a lot gentlemen, let me improve myself.

On 25 Jul 2019, at 11:53 PM, Geertjan Wielenga 
<[email protected]<mailto:[email protected]>> wrote:

On Thu, Jul 25, 2019 at 5:21 PM Peter Cheung 
<[email protected]<mailto:[email protected]>> wrote:

I am not sure why my reason is so important,


The reason is it important is that it provides context to try to understand
what you're trying to achieve. Can you always provide context, as well as
always think about the subject line, which right now has no context at all?
In what was is this a newbie question, at all?


but i just want to do these:

   How to maintain there is only one instance of a topcomponent window of
a specific class?
   How to close all topcomponent of a specific class?

OK, my reason is:

when you open an editor, there is a property window, whatever how many
editor you are opened, since there is only one active editor, so there is
only one property window. If can't control only one instance of a
topcomponent, how can we achieve this.

I am not sure why you think it is so important to ask for my reason to
solve a specific technical question. If people ask "how to solve my
for-loop error", do we really need to know his reason to write his
for-loop? Or I am thinking i am being discriminated.



Yes, the context will always be asked. In this case, the reason why the
Properties window works with the editor is because the Lookup is used. Here
you can learn about the Lookup:

https://platform.netbeans.org/tutorials/nbm-selection-1.html

Gj




If people in here think i am disturbing, i can quit.

Thanks
>From Peter
________________________________
From: Eric Bresie <[email protected]<mailto:[email protected]>>
Sent: Thursday, July 25, 2019 10:09 PM
To: Apache NetBeans <[email protected]<mailto:[email protected]>>
Subject: Re: Re: Newbie questions

http://www.catb.org/~esr/faqs/smart-questions.html

Eric Bresie
[email protected]
On July 24, 2019 at 11:54:27 PM PDT, Geertjan Wielenga <
[email protected]> wrote:
PS: Can you think hard about the subject line when you start a new
thread?

On Thu, Jul 25, 2019 at 8:53 AM Geertjan Wielenga <[email protected]>
wrote:

More details needed, the context, the why, etc.

Gj

On Thu, Jul 25, 2019 at 6:35 AM Peter Cheung <[email protected]>
wrote:

Dear All
How to maintain there is only one instance of a topcomponent window
of a specific class?
How to close all topcomponent of a specific class?


Thanks
>From Peter

Reply via email to