标签: java eclipse swing
如何根据JLabel的大小调整图像大小?
码
lblimageA = new JLabel(""); lblimageA.setIcon(new ImageIcon(MainFrameA.class.getResource("/tn/pack/img/background/backgroundA.jpg"))); lblimageA.setBounds(0, 0, 1114, 37); panel.add(lblimageA);