Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using JMenuBar how do open another file?

Status
Not open for further replies.

Kruzer

Programmer
Jun 16, 2000
117
US
I have the JMenuBar created with several sub menu items

|File Sort Filter Actions etc |
test

within Filter I have a sub menu item "test" when clicking on the item, the item will open another java file (test.java).

void actions_mnI_actionPerformed(java.awt.event.ActionEvent event)
{
//need to open up test.java
}

Dano
dskryzer@hotmail.com
What's your major malfunction
 
Dont really understand your question. What is this file and what do you want it to do? and what do you mean by open, dont you just mean that you want to start an instance of your test.java ie test whatever=new test(?);??


 
I figured it out and yes on instance of a class

void actions_mnI_actionPerformed(java.awt.event.ActionEvent event)
{
test();
}

Dano
dskryzer@hotmail.com
What's your major malfunction
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top