aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Run class (that generates frame) in a Frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Run class (that generates frame) in a Frame" Watch "Run class (that generates frame) in a Frame" New topic
Author

Run class (that generates frame) in a Frame

Anthony Schmitt
Ranch Hand

Joined: Nov 17, 2009
Posts: 37
Alright, going on day four trying to get this plugin to work in my application.

Previous thread:
http://www.coderanch.com/t/572432/GUI/java/Trying-run-class-JFrame

I've tried every single thing I can think of in my extremely limited knowledge of Java to get this to run in a JInternalFrame. I've tried running the applet version and calling the Main.class with no success.

I've been told I can't call an object using jInternalFrame.add(Object). When I try de.mud.jta.Main main = new de.mud.jta.Main();, I get NO SUITABLE METHOD FOUND FOR ADD on compile, and the error points to jDesktopPane1.add(main);

Here's what I know:

Main.class makes a new JFrame. If there's some way I could make it populate MY jInternalFrame in place of making a new one that would be fine. I would also be satisfied with a new JFrame opening in a DesktopFrame in my application. I'd even settle for a completely new frame opening up, (a popup of sorts) at this point. Just ANYTHING to get this SSH terminal to run in my application.

Here's the Main.class source:



How can I get this class to run, and get what it creates to run in a frame in my application?
Anthony Schmitt
Ranch Hand

Joined: Nov 17, 2009
Posts: 37
Please, please. please help. I've been stuck on this for at least 30 hours now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Run class (that generates frame) in a Frame
 
Similar Threads
JDesktopPane creates inner frame menuItem actionPerformed does not.
Trying to run class in JFrame
Trying to run applet in JEditor
JTableHeader column selection
Enabling a disabled Menu Item