How to change border color and JFrame title in Java?

1

I would like to know how to change the border color and title of a JFrame in Java. I only found information on how to remove the border and title, but how to change the color does not. I'm currently using Eclipse.

    
asked by anonymous 16.09.2018 / 04:49

1 answer

2

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

You can find some look and feels that change the appearance of the window, but the title bar is always controlled by the operating system running. The most you can do is use java's own look and feels , like the metal, which is cross-plataform , give the bar its own appearance.

References:

16.09.2018 / 04:56