How do I load images in Jframe java(eclipse)?

后端 未结 4 1801
情书的邮戳
情书的邮戳 2021-01-03 16:58

I have an paneel.java file wich looks like the following code:

import java.awt.*;
import javax.swing.*;

public class Paneel extends JFrame
{
    public stat         


        
4条回答
  •  孤街浪徒
    2021-01-03 17:52

    create package named as images on your project file and import image in that perticular package. Now, take a lable and select the icon property and select image from class path.

提交回复
热议问题