时间:2024-10-12 00:34:00
1、利用JLabel自带的setIcon(Icon icon)加载icon。
3、具体的代码非常简单,如下图所示。
5、应当先添加背景JLabel,再添加其它控件。否则其它控件将被JLabel所遮挡。