在一个Applet中嵌入一个JFrame [英] Embedding a JFrame in an Applet

查看:103
本文介绍了在一个Applet中嵌入一个JFrame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现,创建一个一个开源应用程序JFrame的来显示一些内容。我谨以嵌入这的JFrame 成小应用程序,所以一切显示在JFrame中,将显示在该小程序 - 这可能

感谢您的帮助!


解决方案

  1. 创建该帧的一个实例。

  2. 获取帧的内容窗格中。

  3. 添加内容窗格中的小程序。

I have found an open source application that creates a JFrame to display some content. I would like to "embed" this JFrame into an applet, so everything that is displayed in the Jframe will be displayed in the applet - is this possible?

Thanks for your help!

解决方案

  1. Create an instance of the frame.
  2. Get the content pane of the frame.
  3. Add the content pane to the applet.

这篇关于在一个Applet中嵌入一个JFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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