문제

I have a component that inherits Component and then does it's own paint routine. I let the background paint itself (in a native look) and would like to alter the colours I use in the paint routine to match that background. Is it possible to find what kind of background has been chosen by the system when using a native theme?

도움이 되었습니까?

해결책

f.getStyle().getBgColor();

Will work for forms or components (where f is the form, in this example).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top