Is there any way I can remove the white title bar and change it to black?I am working on making my own look and feel, how can we change the color of it so that all the derivatives that have the title bar should have a black title bar instead of white.
Asked
Active
Viewed 480 times
-1
-
Did you search for a solution? – Nov 30 '18 at 15:22
-
1Possible duplicate of [How to remove title bar in JFrame](https://stackoverflow.com/questions/8701716/how-to-remove-title-bar-in-jframe) – XtremeBaumer Nov 30 '18 at 15:22
-
@EugenCovaci Yes, I searched for solution. I can remove the titlebar by setting setundecorated(true); but I dont know how turn it black? – Navpreet Kaur Nov 30 '18 at 15:36
-
If there is no other way, remove it and add the (x) button and the header text, in the code. that is static anyway :) – Nenad Vichentikj Nov 30 '18 at 16:14
-
@NenadVichentikj Thank you so much! How can i add the button and header text.? – Navpreet Kaur Nov 30 '18 at 16:24
1 Answers
0
class MyJDialog extends JDialog{
public MyJDialog(){
super()
// add the text and button here including positioning
}
}

Nenad Vichentikj
- 111
- 2
- 10