0

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);
    }
}
2
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by LianaN
0

Thanks!

I found out that JFrame could do this job.

Edited by LianaN: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.