1

In java, I want to set a JButton font size so that it will not display '...' (ellipsis). The text of the JButton will only ever be one character, but I want to resize the window and have the layout manager resize the font so that it won't show ... How can I do that?

mKorbel
  • 109,107
  • 18
  • 130
  • 305

1 Answers1

2

CellTest shows one approach that renders the digit at a suitably large size (128 pixels) and scales the image as required.

Community
  • 1
  • 1
trashgod
  • 200,320
  • 28
  • 229
  • 974