• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic