Combining Aero Glass effects and SWT

℡╲_俬逩灬. 提交于 2019-12-04 06:33:53

The overridden methods are "package private". In order to override them without compile time errors, you have to put your classes into the same package as the super class, i.e. org.eclipse.swt or org.eclipse.swt.widgets package. The blog you cite post actually mentions this implementation detail at the end, so I don't know, it this really answers your question.

Put your control beyond glass area or try to use force Background color for the control.

You are concerned by the solution that overrides internal methods, but you are using an internal SWT class in the first place. This seems like a very hacky fragile way (at least in the current SWT implementation) to add some eye candy to your app... I hope you are not doing this in production code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!