ShaggyInjun
ShaggyInjun

Reputation: 2973

Change JFrame border in UIDefaults

Image of full window showing the blue border.

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 ?

Image showing the blue borders

Upvotes: 0

Views: 1262

Answers (2)

mKorbel
mKorbel

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

Fly
Fly

Reputation: 872

Try the "windowBorder"-Key. Source: http://nadeausoftware.com/node/85#Systemcolors

Upvotes: 0

Related Questions