You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Jerome Lelasseux <le...@yahoo.com.INVALID> on 2023/03/17 20:47:08 UTC
How to programmatically access to the TopComponent tab ?
Hi,
I have several TopComponents opened in editor mode. I'd like to be able to drag an item from the content of TopComponent TC1 to TopComponent TC2. I can make it work (using the Swing DnD framework) if TC1 or TC2 is undocked.
But if they are both docked, how to do it ?
Setting my own TransferHandler on the target TopComponent does not work in this case, I assume because the "tab" part does not inherit the handler. So how to access the TopComponent "tab" part (I assumeĀ JComponent) ?
Thanks!
Re: How to programmatically access to the TopComponent tab ?
Posted by Tim de Vries <te...@gmail.com>.
Probably a local network server with proprietary port until connected.
copy on drag, paste on drop, unless win/nix product; then that probably
wont work. maybe you could jni?
On 17/03/2023 2:47 p.m., Jerome Lelasseux wrote:
> Hi,
>
> I have several TopComponents opened in editor mode. I'd like to be
> able to drag an item from the content of TopComponent TC1 to
> TopComponent TC2. I can make it work (using the Swing DnD framework)
> if TC1 or TC2 is undocked.
>
> But if they are both docked, how to do it ?
>
> Setting my own TransferHandler on the target TopComponent does not
> work in this case, I assume because the "tab" part does not inherit
> the handler. So how to access the TopComponent "tab" part (I assumeĀ
> JComponent) ?
>
> Thanks!
>
>
>
>