import java.awt.*;
import javax.swing.*;
class image extends JFrame
{
image()
{
super("送给你");
setDefaultCloseOperation(3);
Icon imag=new ImageIcon("0.jpg");
JLabel l=new JLabel(imag);
JScrollPane s=new JScrollPane(l);
getContentPane().add(s);
setSize(500,500);
setVisible(true);
}
}
class lianxi4
{
public static void main(String[] args)
{
image a=new image();
}
}
加载了图片的窗口
最新推荐文章于 2023-04-18 10:20:55 发布