Reputation: 2973
Which key in UIDefaults should I change to change the border color of all JFrames in the application from blue to something else?
I know there is no code here but it is a very terse question.
EDIT
Attached below is the image showing the JFrames which are not main windows, but are inside a layout. I reckon the main window is pained by the Native environment, but if the JFrames are inside the main window, then shouldn't I be able to customize the borders ?
Upvotes: 0
Views: 1262
Reputation: 109823
Which key in UIDefaults should I change to change the border color of all JFrames in the application from blue to something else?
there isn't any key for JFrame (e.i.) on Java side
borders and tittle bar is decorated by Native OS, current color (font, sizing) theme is applied to all windows,
you can to get 1st component from JFrame and to change color, font, but for title bar only, borders stays unchanged
result is to use some of custom L&F can do that, e.g. Substance (I tried), there is created own Borders, titlebar and buttons as replacement
Upvotes: 2
Reputation: 872
Try the "windowBorder"-Key. Source: http://nadeausoftware.com/node/85#Systemcolors
Upvotes: 0