• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Run class (that generates frame) in a Frame

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alright, going on day four trying to get this plugin to work in my application.

Previous thread:
https://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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please, please. please help. I've been stuck on this for at least 30 hours now.
 
A sonic boom would certainly ruin a giant souffle. But this tiny ad would protect it:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic