0

Let's say that I have a file: 'mainGUI.java' and I want to, from a menu item,
open another GUI file: 'tutorialGUI.java'.

What would the code be to preform this?

Thanks everyone!

-WolfShield

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by WolfShield
0

Let's say that I have a file: 'mainGUI.java' and I want to, from a menu item,
open another GUI file: 'tutorialGUI.java'.

What would the code be to preform this?

Thanks everyone!

-WolfShield

Do you mean you want to open the file and view the code? Or do you want to run the "tutorialGUI.java" file?

If you want to open it you need to add a menubar to the GUI. Consult this website for steps on how to do this:

http://download.oracle.com/javase/tutorial/uiswing/components/filechooser.html

Cheers

0

Sorry,
I meant that if a user clicked on the menu item, another
window would come up with the tutorial in it.

So I would need to run the second file when the user clicked
the menu item.

-WolfShield

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.