package com; import java.awt.Graphics; import java.awt.Image; import javax.swing.JPanel; @SuppressWarnings("serial") public class BackgroundPanel extends JPanel { Image im; /** * This is the default constructor */ public BackgroundPanel() { super(); initialize(); setOpaque(false); setLayout(null); } public BackgroundPanel(Image im){ this(); this.im=im; } @Override protected void paintComponent(Graphics g) { if(im!=null){ g.drawImage(im, 0, 0, this); } super.paintComponent(g); } /** * This method initializes this * * @return void */ private void initialize() { this.setSize(300, 200); } }

luo110012 LV9
2023年5月17日
尹恒yingying LV18
2021年10月31日
sdasdsad LV1
2021年9月26日
sky_hui LV6
2021年8月13日
wyx065747 LV67
2021年7月9日
13043860zj LV16
2021年6月21日
yiangeee LV9
2021年1月14日
jweblogic LV1
2020年10月29日
498215790 LV1
2020年6月3日
IraqiHa LV6
2020年5月1日

GANBINWEI
1月10日
暂无贡献等级
daunjianhui LV1
2024年12月3日
微信网友_6625333836959744
2023年8月28日
暂无贡献等级
luo110012 LV9
2023年5月17日
啦啦啦7719 LV15
2023年5月15日
haoyifan
2023年3月23日
暂无贡献等级
微信网友_6370360544677888
2023年3月1日
暂无贡献等级
微信网友_5992582549164032 LV6
2023年2月16日
mthouse
2022年11月25日
暂无贡献等级
flygrass LV12
2022年9月16日