AWT和Swing组件一起,同步显示?
我必须在我的应用程序中使用 AWT 和 Swing 组件。在显示 AWT 时,首先出现在屏幕上,然后出现 Swing 组件(具有 LAF 样式)
是否有可能使它们同时出现?就像之前绘制一样,一种缓冲区?
谢谢
I have to use both AWT and Swing component in my application. At displaying the AWT first appear on the screen then come the Swing component (with LAF style)
Is it possible that and make them appear simutaneously ? Like before paint, a kind of buffer ?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
1) 自 JDK 6 update 12 和 JDK7 build 19 版本,可以无缝混合重量级(AWT)和轻量级(Swing)组件,但我不建议将AWT与Swing混合使用,
2)其硬性改变外观和感觉 对于 AWT 组件,我从未见过好的组件,默认情况下有来自本机操作系统的外观和感觉, 外观和感觉是关于使用 Swing JComponents
3) 因为可以将 JComponents 具有不同的外观感觉,我建议创建类似的东西
1) since as of the JDK 6 update 12 and JDK7 build 19 releases, you can seamlessly mix heavyweight (AWT) and lightweight (Swing) components,But I don't suggest mixing AWT with Swing,
2) its hard change Look and Feel for AWT Components, I never saw good one, by default is there Look and Feel that came from Native OS, Look and Feel is about usage Swing JComponents
3) since is possible put JComponents with different Look and Feel, I'd suggest to create something similair