question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make FlatComboPopup accessible and do not ignore prototype display value

See original GitHub issue

There 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
DevCharlycommented, Mar 31, 2020

Now changed in master branch. Thanks for pointing out the issue 👍

1reaction
DevCharlycommented, Mar 31, 2020

Good idea. Changed in master branch.

But FlatLaf uses wider popup for comboboxes by default:

image

Does this not work for you?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found