• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

re:

 
Bo Stephenson
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the warm welcome and this is what i mean.

I have a JFrame GUI(editor.java), and inside my jframe i have a jinternalframe, i want my jinternalframe to load a different class inside it(MapEditor.java)

how would i do this?
 
Darryl Burke
Bartender
Posts: 5115
11
Java Netbeans IDE Opera
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bo Stephenson wrote:i want my jinternalframe to load a different class inside it(MapEditor.java)


You don't load classes in an internal frame, you add Components. Read the API for JInternalFrame (not jinternalframe) and follow the link to the tutorial on How to Use Internal Frames. Go through the exercises there and oyu'l know just about as much as anybody about using internal frames!

Additionally, MapEditor.java is a source file. The class defined there would be referred to as MapEditor. (And the compiled file would be MapEditor.class.)
 
Bo Stephenson
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mapeditor is also a GUI is there anyway i can have it load inside my editor gui?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic