| |

VerySource

 Forgot password?
 Register
Search
View: 802|Reply: 4

How does the panel add a background image or which container can have a background image?

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-3 18:00:01
| Show all posts |Read mode
As the title.
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-3-25 11:15:02
| Show all posts
I don't know what it is
Do not clear range
Reply

Use magic Report

0

Threads

18

Posts

15.00

Credits

Newbie

Rank: 1

Credits
15.00

 China

Post time: 2020-3-25 19:45:01
| Show all posts
Any container can
Override the paint method to draw the picture
Reply

Use magic Report

1

Threads

12

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 Invalid IP Address

Post time: 2020-4-13 07:15:01
| Show all posts
Use a JLabel with a picture as a background in a JLayeredPane

JLayeredPane can set the z depth of the component
Reply

Use magic Report

1

Threads

12

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 Invalid IP Address

Post time: 2020-4-13 10:00:02
| Show all posts
Use a JLabel with a picture as the background of JLayeredPane
Then add JLayeredPane to JFrame
JLayeredPane can set the stacking order of components
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list