kütüphanede aramak için metin alanı vardır:JavaFX arama textfield
bu bir varsayılan kontrol mı (eğer öyleyse ben bulamıyorum) ya da basitçe yaptılar Bir metin alanı stili?
Scene Builder'ın kaynak koduna bakmayı denedim, ancak bulamadım.
kütüphanede aramak için metin alanı vardır:JavaFX arama textfield
bu bir varsayılan kontrol mı (eğer öyleyse ben bulamıyorum) ya da basitçe yaptılar Bir metin alanı stili?
Scene Builder'ın kaynak koduna bakmayı denedim, ancak bulamadım.
Bu şekilde çalışmak için önceden kontrol yoktur, ancak TextField olaylarını kullanarak bir tane oluşturabilirsiniz. AutoComplete ComboBox in JavaFX
Biz de değilim kendi araç çubuğu like this
<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>
.buttonSearchCloseIcon {
-glyph-size: 15;
-glyph-name: CLOSE;
}
.buttonSearchUpIcon {
-glyph-size: 15;
-glyph-name: CARET_UP;
}
.buttonSearchDownIcon {
-glyph-size: 15;
-glyph-name: CARET_DOWN;
}
.buttonSearchClose, .buttonUpSearch, .buttonDownSearch {
-fx-background-color: transparent;
-fx-background-insets: 0;
}
.searchBoxLabel {
-fx-padding: 0 2 0 7;
}
.searchBoxLabelIcon {
-glyph-size: 13;
-glyph-name: SEARCH;
}
ilgi yapabilirsiniz: Örneğin
sonraki kod görüyoruz. Bir örnek buldun mu? –
herhangi bir örnek kod veya öğretici var mı? – Zcon