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,525
  • 20
  • 134
  • 319

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
  • 203,806
  • 29
  • 246
  • 1,045