默认
打赏 发表评论 1
想开发IM:买成品怕坑?租第3方怕贵?找开源自已撸?尽量别走弯路了... 找站长给点建议
BeautyEye的透明效果为何不支持Java1.6_u10和u11
阅读(39747) | 评论(1 收藏 淘帖
微信扫一扫关注!

原因如下


Java虽是从Java1.6_u10版(曾今被SUN寄于厚望的版本)支持透明窗体API,但BeautyEye至少需要Java1.6_u12及以上版本才可支持透明效果。原在在于:Java1.6_u10里存在一个bug(BUG ID6750920),而此bug直到Java1.6_u12才被修复(参见SUN官方的Java版本更新说明:Realease note)。明白了吧。

关于Bug: 6750920

引用:Java官方BUG ID:6750920,查看地址:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6750920

此BUG将使BueatyEye L&F(或其它使用透明API的程序)运行时产生异常而中断运行:
  1. Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
  2.     at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:999)
  3.     at sun.awt.image.SunVolatileImage.getBackupImage(SunVolatileImage.java:225)
  4.     at sun.awt.image.VolatileSurfaceManager.getBackupSurface(VolatileSurfaceManager.java:252)
  5.     at sun.awt.image.VolatileSurfaceManager.initialize(VolatileSurfaceManager.java:108)
  6.     at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:72)
  7.     at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:101)
  8.     at java.awt.GraphicsConfiguration.createCompatibleVolatileImage(GraphicsConfiguration.java:284)
  9.     at java.awt.GraphicsConfiguration.createCompatibleVolatileImage(GraphicsConfiguration.java:218)
  10.     at sun.awt.windows.TranslucentWindowPainter$VIWindowPainter.getBackBuffer(TranslucentWindowPainter.java:279)
  11.     at sun.awt.windows.TranslucentWindowPainter.updateWindow(TranslucentWindowPainter.java:131)
  12.     at sun.awt.windows.WWindowPeer.updateWindow(WWindowPeer.java:652)
  13.     at sun.awt.windows.WWindowPeer.setOpaque(WWindowPeer.java:639)
  14.     at java.awt.Window.applyOpaque(Window.java:3299)
  15.     at java.awt.Window.addNotify(Window.java:652)
  16.     at java.awt.Frame.addNotify(Frame.java:469)
  17.     at java.awt.Window.pack(Window.java:686)
  18.     at TPTest.createAndShowGUI(TPTest.java:21)
  19.     at TPTest.access$000(TPTest.java:5)
  20.     at TPTest$1.run(TPTest.java:28)
  21.     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
  22.     at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
  23.     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
  24.     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
  25.     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
  26.     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
  27.     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
  28.     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
复制代码

即时通讯网 - 即时通讯开发者社区! 来源: - 即时通讯开发者社区!

上一篇:Google code明年关闭,为BeautyEye留个纪念下一篇:BeautyEye兼容性测试结果(仅供参考)
推荐方案
评论 1
本帖最后由 码神 于 2015-8-25 15:29 编辑

很好,终于知道原因了!
签名: 家里电脑坏了,还让不让人好好撸了。
打赏楼主 ×
使用微信打赏! 使用支付宝打赏!

返回顶部