-
April 11th, 2019, 06:50 AM
#1
Can I hide the 'carrot' caused by the JavaFX ComboBoxListViewSkin on a ComboBox?
Java SE v. 1.8.0 / Intellij IDE
Can I hide or remove the 'carrot' (upside down triangle) from a JavaFX ComboBox caused after implementing the ComboBoxListViewSkin class (see pic below)?
The ComboBoxListViewSkin class was implemented as part of an AutoComplete method to manage and consume the [SPACE] character in the JavaFX ComboBox though the class's getPopupContent().addEventFilter. After implementing, it adds the 'carrot' in the upper left corner of the JavaFX ComboBox.
I'm a little naive about such things. I was hoping someone may know how I could hide or remove it. I'm not sure what it even indicates. I've messed with a few class methods but I haven't been able to figure it out. I haven't worked little or not at all with CSS, so I wasn't sure if that was also a more likely solution. Any thoughts welcome.
Thanks!
The implementing code, to help demonstrate what I'm doing.
Code:
cbSkin = new ComboBoxListViewSkin(cmb);
cbSkin.getPopupContent().addEventFilter(KeyEvent.KEY_PRESSED, (event) -> {
if(event.getCode() == KeyCode.SPACE){
filter += " ";
event.consume();}
});
-
April 12th, 2019, 10:52 PM
#2
Re: Can I hide the 'carrot' caused by the JavaFX ComboBoxListViewSkin on a ComboBox?
What does the variable comb represent?
-
April 15th, 2019, 02:47 PM
#3
Re: Can I hide the 'carrot' caused by the JavaFX ComboBoxListViewSkin on a ComboBox?
Originally Posted by Arjay
What does the variable comb represent?
Hi Arjay! I did reply to you comment from my phone but apparently it didn't go through. "cmb" represents the ComboBox in which the ComboBoxListViewSkin manipulates the popup.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|