Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hard problem? How to force JComboBox to clip instead three dots?  RSS feed

 
Andrzej Borucki
Ranch Hand
Posts: 86
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have small combobox, but big font.

I can choose "2" and "8", but if I want choose "10" or "16" then it show three dot, and I prefer clip, even in part of letter. Prefer no margin, no dots.
It is possible?

But I content with simpler(?) solving: big font for expanded list, smaller for editbox.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm going to assume that you are making a common beginner mistake and using a null layout with hardcoded values for sizes. In the tutorial I pointed you to in your other thread, there's a section on how to layout components in a container; use layout managers, pack() your top level window and you shouldn't have these problems.

If you still have problems, you will need to post a SSCCE <- link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!