Strange behaviour in JToolBar

I am using NetBeans 5.5 to create a gui application. For one of the windows, I use a JToolBar across the top of the window. I can drag this tool bar out into its own "window" and when I do all the other components move up. But when I try to put it back, the components don't seem to repaint properly; The tool bar seems to overlap over the other components that moved up where the tool bar is. How do I fix this problem?

[428 byte] By [JNooreza] at [2007-11-27 5:03:52]
# 1
[url http://java.sun.com/docs/books/tutorial/uiswing/components/toolbar.html]How to Use Toolbars[/url] has a working example.
camickra at 2007-7-12 10:22:04 > top of Java-index,Desktop,Core GUI APIs...