Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

界面绘制冲突 #1

Open
zhongweng opened this issue May 4, 2015 · 2 comments
Open

界面绘制冲突 #1

zhongweng opened this issue May 4, 2015 · 2 comments

Comments

@zhongweng
Copy link

自己制作的界面中,有一部分是自己绘制的。然后引用了beautyeye

设置osLookAndFeelDecorated
BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.osLookAndFeelDecorated;
可以正常显示beautyeye的也可以显示自己绘制的
但是使用其他的样式,比如translucencySmallShadow
BeautyEyeLNFHelper.frameBorderStyle = BeautyEyeLNFHelper.FrameBorderStyle.translucencySmallShadow;
自己绘制的样式就显示不出来,貌似是被beautyeye的覆盖了,显示空白或者都是透明的。

@JackJiang2011
Copy link
Owner

你需要注意一个事实:Java官方的透明api存在诸多尚未解决的bug,你可以去看看开发者指南和wiki里的部分Bug说明。你使用系统的窗体边框意味着关闭了透明效果。我建议你从透明api的问题上入手。beautyeye没有使用任何高深的swing技术,仅仅调用了官方的透明api而已,你尝试关闭透明的代码试试,如果证实我的问题,你可以针对你的代码看看有没有替代方法。

@zhongweng
Copy link
Author

多谢回复,我目前在看您写的代码,感觉很棒,正在学习中。我的问题还在解决中。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants