I have a SimpleSwingBrowser in my Java Swing application. However when it runs, it opens in a new window. Is it possible to open it inside a container in the Swing application?
SimpleSwingBrowser
extends JFrame
, thus JFrame
is essentially a separate window. If you need to embed SimpleSwingBrowser
into another JFrame
, you should rewrite SimpleSwingBrowser
to extend Component
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.