Article View: borland.public.jbuilder.java.swing
Article #11869JTree copy/paste
From: Eyal Kenigsvain
Date: Thu, 08 Apr 1999 00:00
Date: Thu, 08 Apr 1999 00:00
18 lines
1008 bytes
1008 bytes
hey group, I am trying to implement copy functionality on a JTree for multiple selections of nodes. I would like to be able to select a number of nodes, right click to pop a menu which contains a copy item. The tree is working and all related code is working ..... BUT, on right click my multiple selection is lost. the relevant condition in mouseClicked is: if (clicks == 1 && (ev.isPopupTrigger() || (ev.getModifiers() & Event.META_MASK) > 0 )) Any ideas? Any examples? Thank you.
Technical Details
Message-ID:
<370D2EE3.54D9CBE6@terren.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,27efa4f6026c38d4,start X-Google-Attributes: gid111d45,public From: Eyal Kenigsvain <eyal@terren.com> Subject: JTree copy/paste Date: 1999/04/08 Message-ID: <370D2EE3.54D9CBE6@terren.com> X-Deja-AN: 464208441 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing