如何在我的ContentPane窗口容器中添加,设置可见和装入我的“images / name.jpg”?
public class WindowName extends JFrame
{
public WindowName()
{
JFrame Window = new JFrame();
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setTitle("...");
setSize(700, 600);
setVisible(true);
Container powZawartosci = getContentPane();
powZawartosci.setLayout(null);
}
}