Hi!
I created JToolBar, but it is always attached to JPanel. If I run my api, then I can drag and drop JToolBar in order to separate it from JPanel. I want to programmatically make JToolBar to look as a separate window (e.g. as a toolbar in Photoshop). Does anybody know how to do this?
public class myToolbar extends JToolBar {
public myToolbar() {
setName("My Toolbar");
setBackground(new Color(245, 245, 245));
setOrientation(1);
setBorderPainted(false);
setFloatable(true);
setOpaque(true);
}
}