Javafx 2 JavaFX搜索文本字段

Javafx 2 JavaFX搜索文本字段,javafx-2,scenebuilder,Javafx 2,Scenebuilder,在JavaFX场景生成器中,库中有一个要搜索的文本字段: 这是一个默认控件(如果是的话,我找不到),还是他们只是设置了一个文本字段的样式? 我也试着查找场景生成器的源代码,但找不到它。没有预先制作的控件以这种方式工作,但您可以使用TextField事件创建一个控件 例如,请参阅下一个代码:我们可以制作自己的工具栏 我也很感兴趣。你找到任何例子了吗?有没有任何示例代码或教程? <ToolBar prefHeight="40.0" prefWidth="349.0" >

在JavaFX场景生成器中,库中有一个要搜索的文本字段:

这是一个默认控件(如果是的话,我找不到),还是他们只是设置了一个文本字段的样式?

我也试着查找场景生成器的源代码,但找不到它。

没有预先制作的控件以这种方式工作,但您可以使用TextField事件创建一个控件


例如,请参阅下一个代码:

我们可以制作自己的工具栏


我也很感兴趣。你找到任何例子了吗?有没有任何示例代码或教程?
<ToolBar prefHeight="40.0" prefWidth="349.0" >
        <items>
            <Button fx:id="buttonCloseSearch" styleClass="buttonSearchClose">
                <graphic>
                    <FontAwesomeIconView styleClass="buttonSearchCloseIcon" />
                </graphic>
            </Button>
            <CustomTextField styleClass="searchField">
                <left>
                    <Label styleClass="searchBoxLabel">
                        <graphic>
                            <FontAwesomeIconView styleClass="searchBoxLabelIcon" />
                        </graphic>
                    </Label>
                </left>
            </CustomTextField>
            <Button fx:id="buttonUpSearch" styleClass="buttonUpSearch">
                <graphic>
                    <FontAwesomeIconView styleClass="buttonSearchUpIcon" />
                </graphic>
            </Button>
            <Button fx:id="buttonDownSearch" styleClass="buttonDownSearch">
                <graphic>
                    <FontAwesomeIconView styleClass="buttonSearchDownIcon" />
                </graphic>
            </Button>
        <Label text="1 of 2 matchs" />
        </items>
    </ToolBar>