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

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

问题描述

我发现了一个开源应用程序,它创建了一个 JFrame 显示一些内容.我想嵌入"这个 JFrame进入小程序,因此 Jframe 中显示的所有内容都将显示在小程序中 - 这可能吗?

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?

感谢您的帮助!

推荐答案

  1. 创建框架的实例.
  2. 获取框架的内容窗格.
  3. 将内容窗格添加到小程序.

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

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