I've created a custom JPanel, added JLabel and type some text in it, and made the JLabel as small as possible, so that the text fits it. I'm using the absolute layout.
However, when I use it in my JFrame, the text no longer fits the JLabel, even though it did in the designer. Is there any particular reason for this? Or is it a bug?