Java JLabel/JButton: on some systems I get “…” (an ellipsis) and on some systems I don't. how can I force to disable the ellipsis at all?
On most systems, the content in my JLabel just shows fine. It is also resided in a way that it should be always big enough to show its content text because I basically do this: label.setText(text); label.setFont(new Font(fontName, 0, 12)); int width = label.getFontMetrics(label.getFont()).stringWidth(text); int height = 21; // this should always be enough label.setBounds(new Rectangle(x, y, width, height)); But on some systems (not my own so I cannot really debug it that easy), it cuts the text and shows "..." at the end. You can see the full code here and you can see the example here