Adding images on Java JFrame - Netbeans

后端 未结 3 1100
-上瘾入骨i
-上瘾入骨i 2021-01-16 06:26

I\'m using NetBeans 7.1 to code in Java. I have already created a JFrame filled with some labels, textbox and buttons. How can I d

3条回答
  •  长情又很酷
    2021-01-16 06:45

    1. Copy Image to your Netbeans project.
    2. Add new label to the frame.
    3. Select the label and Right click->Go to Properties.
    4. In Icon property select image by down arrow as shown in image.

提交回复
热议问题