我在JLabel中添加imageicon对象,结果图片占满了整个屏幕,请问怎么调整大小呢?
核心语句就是:
Container container=getContentPane();
JLabel jl=new JLabel();
Icon icon=new imageicon(“c:\图片.jpg”);
jl.setIcon(icon);
JLabel label = new JLabel("Search",icon, JLabel.CENTER);
https://blog.csdn.net/msh2016/article/details/104407083 https://blog.csdn.net/msh2016/article/details/104407083