GeeCON Prague 2014*
The moose likes Applets and the fly likes re: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "re:" Watch "re:" New topic
Author

re:

Bo Stephenson
Greenhorn

Joined: Jul 30, 2012
Posts: 3
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

Joined: May 03, 2008
Posts: 4572
    
    5

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.)


luck, db
There are no new questions, but there may be new answers.
Bo Stephenson
Greenhorn

Joined: Jul 30, 2012
Posts: 3
mapeditor is also a GUI is there anyway i can have it load inside my editor gui?
 
GeeCON Prague 2014
 
subject: re: