How to change border color and Jframe title in Java?

Asked

Viewed 661 times

1

I would like to know how to change the border and title color of a Java Jframe. I only found information on how to remove the border and title, but how to change the color not. I am currently using Eclipse.

  • Do you have a tool to help change the border color? I’m still a beginner in Java.

  • I already answered your question below, there is more to clarify with what was asked.

  • Thank you. -----

1 answer

2

This is not possible. The Jframe window edge (where the close, minimize, maximize buttons are located) is controlled by look and Feel of the operating system on which the application is running.

You can find some look and Feels that even change the appearance of the window, but the title bar is always controlled by the running operating system. The most you can do is use look and Feels native to java itself, such as metal, which because they are cross-Platform, give the bar its own appearance.


References:

  • But how do many Windows apps have this property changed? Chrome for example changes this easily. Programs like Steam, Baidu Antivirus and Skype are also other examples of programs that have the edge and the full custom title.

  • @Gabrielaugusto none of them is made in java-swing and much less uses jframe.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.