Make FlatComboPopup accessible and do not ignore prototype display value
See original GitHub issueThere are cases when FlatComboBoxUI
and FlatComboPopup
need to be customized (i.e. to fix this problem: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4618607)
Currently FlatComboPopup
is private and cannot be overriden by any class that inherits from FlatComobBoxUI
. This leads to unnecessary copy/paste.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Why JComboBox ignore PrototypeDisplayValue - java
I debugged your SSCCE, and the value passed to setPrototypeDisplayValue is the empty string. Changing the line to cbox.
Read more >JComboBox (Java Platform SE 8 ) - Oracle Help Center
Specifying the preferred display value is often useful when the combo box will be displaying large amounts of data. If no prototype display...
Read more >JComboBox (Java Platform SE 6)
Warning: Serialized objects of this class will not be compatible with future ... Sets the prototype display value used to calculate the size...
Read more >jdk7u-jdk/JComboBox.java at master - GitHub
Specifying. * the preferred display value is often useful when the combo box will be. * displaying large amounts of data. If no...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Now changed in master branch. Thanks for pointing out the issue 👍
Good idea. Changed in master branch.
But FlatLaf uses wider popup for comboboxes by default:
Does this not work for you?