Re: How to replace the Swing Container in the TopComponent with a Frame?
Wade Chandler <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CALiWaWnVqA+w4TPEwz3H2NbVR2mxw7DgMe9nY=cn8xzqsg_HvQ@mail.gmail.com> |
A top level Frame can not be added as a child per my memory, but you may be able to look at their frame class for guidance, and use this: https://sourceforge.net/p/properjavardp/code/HEAD/tree/trunk/src1.4/net/propero/rdp/RdesktopCanvas_Localised.java Maybe there is some way to then incorporate this for a menu in each tab if you need it: http://wadechandler.blogspot.com/2008/04/who-says-rootpane-always-has-to-be-at.html Wade On Aug 12, 2016 4:27 AM, "bradon" <[email protected]> wrote: > Hi Everyone, > > I'm working in a project which is composed by several tabs and all of them > have been created extending TopComponent and setting editor as mode. > > Actually I'm working on a tab which should show the screen of a Virtual > Machine (this one is running on VirtualBox). To reach this goal I'm using > the open source project properJavaRDP. The problem is: this project is > quite old, it uses as top level container a Frame from java.awt and if I > extend the TopComponent class, it already includes a top level container > from Swing. How can I include this Frame inside my component? > > Inside the frame is included a Canvas. For some reasons I have to use the > class RDesktopFrame (which extends Frame) of the project, and I can't > include the Canvas inside a JInternalFrame (just for example). > Even if I've already searched information in the web, I didn't find > anything so far. > > Thanks in advance! > > > > >