Skip to content

Commit

Permalink
Changed combobox to searchablecombobox
Browse files Browse the repository at this point in the history
  • Loading branch information
selfemp committed Dec 14, 2021
1 parent 10be024 commit 351f960
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
import javax.imageio.ImageIO;
import net.sf.image4j.codec.ico.ICOEncoder;
import org.controlsfx.control.PopOver;
import org.controlsfx.control.SearchableComboBox;
import org.kordamp.ikonli.IkonProvider;
import org.kordamp.ikonli.javafx.FontIcon;

Expand Down Expand Up @@ -164,7 +165,7 @@ private void setupPopOver() {
fontSelBox.setSpacing(5);
fontSelBox.setAlignment(Pos.CENTER_RIGHT);
fontSelBox.getChildren().add(new Label("Font Family"));
ComboBox<IkonData> cbox = new ComboBox<>();
SearchableComboBox<IkonData> cbox = new SearchableComboBox<>();
cbox.setMinWidth(160);
cbox.setMaxWidth(160);
cbox.setItems(ikons);
Expand Down Expand Up @@ -207,7 +208,7 @@ protected void updateValue(IkonData v) {
iconSelBox.setSpacing(5);
iconSelBox.setAlignment(Pos.CENTER_RIGHT);
iconSelBox.getChildren().add(new Label("Icon:"));
ComboBox<Label> cboxIcons = new ComboBox<>();
SearchableComboBox<Label> cboxIcons = new SearchableComboBox<>();
cboxIcons.setMinWidth(160);
cboxIcons.setMaxWidth(160);
cboxIcons.setItems(ikonLiterals);
Expand Down

0 comments on commit 351f960

Please sign in to comment.