任何方式嵌入在从SWT_AWT桥AWT框架一个Swing JFrame的? [英] Any way to embed a Swing JFrame in the AWT Frame from the SWT_AWT bridge?

查看:505
本文介绍了任何方式嵌入在从SWT_AWT桥AWT框架一个Swing JFrame的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我整合Swing应用程序到 Bioclipse / Eclipse插件,而且由于Eclipse使用SWT,我有以某种方式使用SWT_AWT桥梁。

I'm integrating a Swing application into an Bioclipse/Eclipse plug-in, and since Eclipse uses SWT, I have to use the SWT_AWT bridge somehow.

问题是起点我从SWT_AWT桥得到的是一个AWT框架,像这样:

The problem is that the starting point I get from the SWT_AWT bridge is an AWT Frame, like so:

 java.awt.Frame awtFrame = SWT_AWT.new_Frame(composite);

...(可充满AWT组件),但情况是,Swing应用程序包含了许多的它的功能在它的主要的JFrame组件。现在,一个Swing的JFrame不能被集成为是到一个AWT框架。

... (which can be filled with AWT components), but the situation is that the Swing application contains much of it's functionality in it's main JFrame component. Now, a Swing JFrame can not be integrated as is into an AWT Frame.

原来的Swing应用程序的重构已经与原来的应用程序的开发者讨论。只是希望确保我们没有错过任何明显的解决方法呢?

Refactoring of the original Swing application has been discussed with the developer of the original application. Just wanted to make sure we didn't miss any obvious workaround for this?

推荐答案

是如何使用您的SWT / RCP应用程序里面摆的优秀文章。这应该是有帮助的。

This is an excellent article on how to use Swing inside your SWT/RCP apps. This should be helpful.

这篇关于任何方式嵌入在从SWT_AWT桥AWT框架一个Swing JFrame的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆