| |

VerySource

 Forgot password?
 Register
Search
View: 980|Reply: 2

How about the tooltip label and change the background color?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-27 17:00:01
| Show all posts |Read mode
I use JComponent's setTooltip () method, and I want to change the color of the tooltip label to yellow. How do I change it?
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-2 15:15:01
| Show all posts
UIManager.put ("ToolTip.foreground", new ColorUIResource (Color.red));
    UIManager.put ("ToolTip.background", new ColorUIResource (Color.yellow));
Reply

Use magic Report

0

Threads

4

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-4 18:15:01
| Show all posts
UIManager.put( "ToolTip.foreground ", new ColorUIResource(Color.red));
I want to ask what kind of ColorUIResource is?
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