dlsc-software-consulting-gmbh / GemsFX

A collection of JavaFX controls and utilities.
Apache License 2.0
421 stars 47 forks source link

other components? #149

Open Thinker888 opened 3 weeks ago

Thinker888 commented 3 weeks ago

Great job!Excellent native component! Can other custom components be generated? For example, the password box can display passwords, tabpane‘s header can hold other components,the menu list on the left similar to web-ui, custom pagination, and so on. 11 00 22,

leewyatt commented 3 weeks ago

Thank you! Here's a quick update regarding your queries:

  1. JavaFX’s built-in Tab component supports the setGraphic(Node node) method, which allows you to insert additional nodes as needed.
    Tab tab = new Tab();
            tab.setText("Tab 1");
            HBox graphicNode = new HBox(new ImageView(), new Label("Label"));
            tab.setGraphic(graphicNode);
  2. For the side menu, you can implement it using the TreeView component.
  3. Regarding the other components you mentioned, we may introduce them in the future, though I cannot commit to a specific release date at this time.

If you are interested in contributing code to add these features, we would warmly welcome your involvement!

Thinker888 commented 3 weeks ago

好的,大佬!非常感谢!我会根据你的建议进行尝试的。不过,tabpane的那个样式,我的想法是要实现类似idea那种的tabpane,也就是会在tabpane顶部的最右边或者最左边添加组件。大佬有什么建议吗?我将不胜感激!

leewyatt commented 2 weeks ago

@Thinker888

  1. We've create a new component called EnhancedPasswordField, which is quite similar to your requirements. You can test it to see if there are any bugs. If you find any bugs, please remember to let us know. Thank you!
  2. If you want to extend TabPane, you typically need to override both TabPane and TabPaneSkin, mainly focusing on rewriting the skin class.
image
Thinker888 commented 2 weeks ago

ok,that's great ! I wil try,thanks.