Article View: borland.public.jbuilder.java.language
Article #7219Drag and drop
From: SkidMoron
Date: Tue, 03 Jul 2001 19:37
Date: Tue, 03 Jul 2001 19:37
23 lines
1748 bytes
1748 bytes
Having small issue with Drag and drop. Implemented Drag and drop in 3 JInternalFrames in a JDesktopPane. I Extended JLabel, implementing the DnD Interfaces, then placed a bunch of these in a JPanel in each JInternalFrame. If the JInternalFrame that a JLabel lives in is not selected, the JVM is throwing an InvalidDNDOperationException: Failure to create native peer - on the DragSource.startDrag() method. Since all of this happens in the sun.foo.bar classes I can't even go in a look at the code that's throwing the exception. Anybode else seen this one? Got any ideas? I've tried selecting the JInternalFrame on mouse-over, but it's klunky and a bit annoying. I also tried to use flags to abort the drag when the drag gesture is recognized - but it seems to be ignoring them. Ugh! Thanks in advance. -Skid
Technical Details
Message-ID:
<3B421EEE.7050007@home.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!news.boerde.de!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,819473625b4543d5,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-03 12:41:19 PST Message-ID: <3B421EEE.7050007@home.com> Date: Tue, 03 Jul 2001 13:37:18 -0600 From: SkidMoron <motelsound@home.com> User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.3-12 i686; en-US; rv:0.9.1) Gecko/20010608 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Drag and drop Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.91.95.13 X-Trace: dnews 994188687 209.91.95.13 (3 Jul 2001 12:31:27 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!news.boerde.de!dnews