| |

VerySource

 Forgot password?
 Register
Search
View: 1738|Reply: 12

Dear friends, how to remove the title bar of JFrame! !! !!

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-1-23 08:20:02
| Show all posts |Read mode
I want to remove the title bar at runtime. What should I do? ?

Please enlighten me!
Reply

Use magic Report

1

Threads

51

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 Germany

Post time: 2020-2-6 10:30:01
| Show all posts
JFrame.setUndecorated (true)
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-16 11:00:02
| Show all posts
Upstairs should be a positive solution
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-4-25 21:30:01
| Show all posts
Learn to learn
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-21 04:00:01
| Show all posts
What is the title bar?
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-24 21:00:01
| Show all posts
The setUndecorated(true) method of JFrame can be implemented.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-1 12:00:01
| Show all posts
If the JFrame is displayable, this method will report an error!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-7 14:00:01
| Show all posts
JFrame.setUndecorated(true)
If you encounter a problem, you must first check the API yourself.. It will help you to learn..
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-14 15:45:01
| Show all posts
In addition to the above methods, you can also use JWindow. The usage of JWindow is basically the same as JFrame (only a few special methods are different), but JWindow has no borders, title bars, etc.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-15 12:30:01
| Show all posts
<<If the JFrame is displayable, this method will report an error!
Should be set before initialization
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