hi,
i have a JLabel inside a JPanel of which layout manager is BoxLayout. i will display an image with the JLabel at runtime,
when the application first start, it will appear as an empty box with border. i've set the border for the JLabel, but then it appears as a small rectangle, i've tried to use the setSize and the setMinimumSize but still it appears so small. how to make it be displayed with a fixed size even if it's empty (contains no text).
thank you very much.
i have a JLabel inside a JPanel of which layout manager is BoxLayout. i will display an image with the JLabel at runtime,
when the application first start, it will appear as an empty box with border. i've set the border for the JLabel, but then it appears as a small rectangle, i've tried to use the setSize and the setMinimumSize but still it appears so small. how to make it be displayed with a fixed size even if it's empty (contains no text).
thank you very much.
Comment