-1

enter image description here

how preven jlabel from appear 3 dots when text size large?

  • Answer: don't make the text too large. – Stephen C Jan 15 '17 at 05:30
  • You can try using tags as - `yourLabel.setText(""+ inputString +"");` Though would probably suggest for a use case related to Calculator, you intend not to do so. Not sure if the dup link answers it in the same way. – Naman Jan 15 '17 at 05:37

1 Answers1

0

A common approach is to not use a JLabel and instead use a JTextArea with word-wrap and line-wrap turned on. You could then decorate the JTextArea to make it look like a JLabel (border, background color, etc.).

textArea.setLineWrap(true);
jack jay
  • 2,493
  • 1
  • 14
  • 27