-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to remove floating window title bars #136
Comments
I'm not sure I follow. The titlebar is always displayed. That's how things are displayed unless you use top tabs. |
Perhaps they want the jframe title bar to function as the dockable's title bar when it is popped out. Edit: the close button would have to close only the focused tab unless only one tab is remaining, then close the window. |
That could be interesting. It would have to revert to individual titlebars if there is more than 1 dockable in the window. |
I want to drag the panel out of the window, and it will become a floating window~ |
I want to use jFrame. setUndecorated(true); |
That should already be allowed by default. The method responsible is here: https://github.com/andrewauclair/ModernDocking/blob/main/docking-api/src/ModernDocking/Dockable.java#L95. As long as your Dockable returns true for this method then you should be able to drag and drop outside of the frame to float the Dockable. |
I think allowing customization would be better~ |
An example of floating can be seen here: https://github.com/andrewauclair/ModernDocking/blob/main/img/floating_panel.gif |
This example includes the window title bar, which is duplicated with the panel title bar. I don't need the window title bar, but I couldn't find the relevant settings~ |
Let me see if I understand now. You want the new frame to be undecorated? |
Yes, because the window title bar is the same as the panel title bar, I would like to use the panel title bar instead of the window title bar, similar to how panels in similar to Visual Studio or IDEA are dragged out of the window. |
I'll look into adding a setting. This will be more involved than simply calling |
Doing that would mean losing the ability to drag the dockable again as that titlebar is the drag source. |
Perhaps modifying the window style is not very reasonable. Since the window cannot be modified, can you customize the title bar? I have found the following examples: https://stackoverflow.com/questions/12822037/how-to-create-customize-title-bar-with-close-button-on-jframe |
Because this feature is different from typical dockable windows, I think it's possible to add a button for docking. |
I need to drag the panel out of the original window and use a window style without a title bar for the panel, but I don't know how to set it up. Please give me a suggestion. Thank you.
The text was updated successfully, but these errors were encountered: