This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 60804 - Cannot rearrange the window layout using DnD
Summary: Cannot rearrange the window layout using DnD
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2005-07-08 14:29 UTC by _ ttran
Modified: 2008-12-22 11:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Dragging Navigator without any effect (19.85 KB, image/png)
2005-07-08 14:33 UTC, _ ttran
Details
Dragging Output window without any effect (19.69 KB, image/png)
2005-07-08 14:34 UTC, _ ttran
Details
config/Windows2Local dir (65.95 KB, application/x-compressed)
2005-07-08 14:37 UTC, _ ttran
Details
DnD exceptions (5.83 KB, text/plain)
2005-09-16 10:49 UTC, Marian Petras
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ ttran 2005-07-08 14:29:04 UTC
[linux, JDK 1.5.0_04, NB built from CVS 2005-07-08]

Somewhat I got the window layout to the state (see attached screenshot) when I
cannot drag the Navigator back to its normal position anymore.  The Navigator is
now docked to the output window (bottom) area.  The output window shrinks to
make room for the navigator.  I want to expand the width of the output window
again and make the navigator occupy the bottom half of the projects tab (the
default) layout.  I try to DnD the Navigator and the Output window but couldn't
get it work.  The feedback (the red rectangle) indicates that if I release the
mouse button I would get what I want but when I release the button nothing
happens.  The navigator/output window doesn't move the the drop area indicated
by the red rectangle.  I am stuck.
Comment 1 _ ttran 2005-07-08 14:33:37 UTC
Created attachment 23039 [details]
Dragging Navigator without any effect
Comment 2 _ ttran 2005-07-08 14:34:24 UTC
Created attachment 23041 [details]
Dragging Output window without any effect
Comment 3 _ ttran 2005-07-08 14:37:04 UTC
Created attachment 23042 [details]
config/Windows2Local dir
Comment 4 _ ttran 2005-07-08 14:37:54 UTC
in var/log/messages.log there is no exception
Comment 5 Marian Mirilovic 2005-07-20 14:27:54 UTC
Trung is right , reproducible on Linux RH 9 / Gnome 
Comment 6 David Simonek 2005-09-09 18:33:18 UTC
Passing to Standa.
Comment 7 Marian Petras 2005-09-16 10:46:43 UTC
I experienced this bug when I started the latest NetBeans build (just created
from the updated sources, update finished at about 16 Sep 2005, 11:10 AM CET)
with a clean user dir. I closed the Runtime and Files windows, then I tried to
drag the Navigator window over the Projects window (so that there would be a
single window with two tabs for Projects and Navigator). I got three error
messages and an exception.

I accidentally killed that instance of NetBeans so I lost the three messages
(they did not get to the IDE log). I think they all started with "_X" and at
least one of them contained information about some failure of X socket().

Immediately below the three lines of error messages, the following exception was
dumped:

java.awt.dnd.InvalidDnDOperationException:
The operation requested cannot be performed by the DnD system since it is not in
the appropriate state
  at sun.awt.X11.XDragSourceContextPeer.startDrag(XDragSourceContextPeer.java:156)
  at
sun.awt.dnd.SunDragSourceContextPeer.startDrag(SunDragSourceContextPeer.java:111)
  at java.awt.dnd.DragSource.startDrag(DragSource.java:306)
  at java.awt.dnd.DragSource.startDrag(DragSource.java:376)
  at java.awt.dnd.DragGestureEvent.startDrag(DragGestureEvent.java:247)
[catch]
  at org.netbeans.core.windows.view.dnd.TopComponentDragSupport
                                     .doStartDrag(TopComponentDragSupport.java:365)
  at org.netbeans.core.windows.view.dnd.TopComponentDragSupport
                                    
.eventDispatched(TopComponentDragSupport.java:287)
  at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2297)
  ...

I will attach the full callstack of the exception.
Comment 8 Marian Petras 2005-09-16 10:49:07 UTC
Created attachment 24870 [details]
DnD exceptions
Comment 9 Marian Petras 2005-09-16 10:51:39 UTC
I am able to reproduce it.
I am running NB on JDK 1.6.0, b51.

The three messages I lost the last time were the following:

    _X11TransSocketOpen: socket() failed for local
    _X11TransSocketOpenCOTSClient: Unable to open socket for local
    _X11TransOpen: transport open failed for local/petras-ws.czech.sun.com:0
Comment 10 Stanislav Aubrecht 2005-09-21 10:50:52 UTC
this looks more like a bug in jdk or in gnome, see also issue #63800 that
produces the same exception.
Comment 11 Stanislav Aubrecht 2005-11-10 15:20:34 UTC
i can reproduce this problem on older netbeans builds but it works fine for me
in the latest ones.

the stack trace posted by mpetras is most likely related to a different bug as
the exception occurs while the drag operation is starting, not during the drag
itself.
Comment 12 Marian Mirilovic 2005-11-10 15:25:53 UTC
I am also not able to reproduce it anymore.
Comment 13 Marian Petras 2005-11-10 15:41:13 UTC
I did not not experience the bug in the last week, either.
Comment 14 Marian Petras 2005-11-11 08:11:04 UTC
Should I file another issue for the exception I get (during start of DnD)? It
happened again today (NB 20051108-1436, JDK 6.0 b59, Linux), I just wanted to
swap the first two tabs in the editor. I noticed the exception mentioned in JDK
bug 6342381 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6342381) but I
did not find it recorded separately or being solved. Do you keep track of
drag'n'drop bugs in the JDK? (product "java", category "java", subcategory
"dragndrop")
Comment 15 Marian Petras 2005-11-11 08:53:36 UTC
I found that the exception I encountered during start of DnD operation has been
already reported as JDK bug 5069437
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5069437), currently marked
as not reproducible.
Comment 16 Stanislav Aubrecht 2005-11-11 09:01:56 UTC
mpetras: you can add your stack trace and description to issue #63800 as it is a
very similar problem.
Comment 17 Stanislav Aubrecht 2005-11-14 12:51:06 UTC
still cannot reproduce -> decreasing priority to P3
Comment 18 Marian Petras 2005-11-14 13:21:34 UTC
There is a similar bug in the JDK, but it is specific to the middle mouse button
only: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4955110
Comment 19 Stanislav Aubrecht 2007-11-02 16:36:45 UTC
i think this issue is related to this JDK bug: http://bt2ws.central.sun.com/CrPrint?id=6623554

closing