Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run class (that generates frame) in a Frame

 
Anthony Schmitt
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please, please. please help. I've been stuck on this for at least 30 hours now.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic