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.
[release50-rc1-200601101900, JDK 1.5.0_06] Steps to reproduce: 1) Create form (JPanel) 2) Add JTabbedPane to it, add JPanel to the tabbed pane 3) Put any component to the panel When dragging the component over the panel the component is being repainted in its original location (before dragging started) and it creates strange blinking efect.
The efect is visible even more when you are resizing the component.
This is caused by a very strange JTabbedPane behaviour. The tabbed pane tries to revalidate (e.g. relayout) itself during painting - it revalidates its content when it is not valid. The dragged component is still present in its original container, but its bounds are set to values outside the visual area of the container. This setting of bounds invalidates the JTabbedPane that in turn (due to the described behaviour) sets the bounds back. We will have to implement some workaround for that behaviour e.g. temporarily set the valid flag of the JTabbedPane to true while painting the designer.
*** Issue 154186 has been marked as a duplicate of this issue. ***
I have added a hack that makes JTabbedPane valid regularly during dragging of a component. Modified file: http://hg.netbeans.org/jet-main/rev/86d12dd3fe4e