-
Notifications
You must be signed in to change notification settings - Fork 105
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
Blue area position issue #34
Comments
I understand, the docking area does not include the list at the bottom and the docking indicator is going outside of that area. The relevant code is here: DockFX/src/main/java/org/dockfx/DockPane.java Line 574 in 8d44134
The blue rectangle with dotted border is called the dockAreaIndicator and it is moved to the node you are dragging over:DockFX/src/main/java/org/dockfx/DockPane.java Line 586 in 8d44134
|
Hi RobertBColton and lovky, I am new JavaFX developer, I am trying to do JavaFX docking UI and see DockFX is very good framework to use. But i don't sure how to add menu file and tools bar with DockFX source demo. Can you guide me how to do? Above i see lovky has done very good UI looking include Menu Toolbar and Menu file. Thanks, |
@xhuutrix I don't mean to be rude when I say this, but please try not to takeover other people's tickets with unrelated questions. In the future, please open a new ticket if you have questions that are not related to any issue. Regardless, I'll answer your question anyway this one time. Following the Layouts tutorial here: https://docs.oracle.com/javafx/2/layout/builtin_layouts.htm NOTE: It seems there is a mistake in the ToolBar example about the type of Separator's constructor parameter. I was able to add a MenuBar and ToolBar to the scene, however, this reproduces the problem reported by the OP with the blue areas: This is the modified demo code: final Menu menu1 = new Menu("File");
final Menu menu2 = new Menu("Options");
final Menu menu3 = new Menu("Help");
MenuBar menuBar = new MenuBar();
menuBar.getMenus().addAll(menu1, menu2, menu3);
ToolBar toolBar = new ToolBar(
new Button("New"),
new Button("Open"),
new Button("Save"),
new Separator(),
new Button("Clean"),
new Button("Compile"),
new Button("Run"),
new Separator(),
new Button("Debug"),
new Button("Profile")
);
VBox vbox = new VBox();
vbox.getChildren().addAll(menuBar, toolBar, dockPane);
VBox.setVgrow(dockPane, Priority.ALWAYS);
primaryStage.setScene(new Scene(vbox, 800, 500)); |
If I happen to find the time this weekened, I may update the demo and push a fix for the blue areas. |
Alright, I've a pushed a fix: f369da8 I simply needed to subtract the A MenuBar and ToolBar are both included in the demo now. You can find the 0.4 Beta, with this fix included, on the releases page: https://github.com/RobertBColton/DockFX/releases/tag/0.4b |
I have scenebuilder 2.0, when I try to import into scene builder for the version 4.0 betea dockfx, no controls are loaded |
When I move a window I get this error, this is because I use Java 11. How could that problem be solved with Java 11? java.lang.IllegalAccessError: class org.dockfx.DockEvent (in unnamed module @0x204594b6) cannot access class com.sun.javafx.scene.input.InputEventUtils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.scene.input to unnamed module @0x204594b6 |
add "--add-exports=javafx.graphics/com.sun.javafx.scene.input=ALL-UNNAMED" to VM arguments when using Java 11+ |
Hello, I have this issue with Dock as you can see the blue area is moved down for size of menu and tcs (200 heigh). I found out if I change dockAreaDrag.localToScene(0, 0); to y = -200 blue area is fixed but buttons are the moved down.
How can I hotfix it ?
The text was updated successfully, but these errors were encountered: