Well i have a button saying "Run Script"
this is its method..
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
how can i make it so when its pressed "App.java" opens?
2 replies to this topic
#1
Posted 20 November 2010 - 06:20 AM
|
|
|
#2
Posted 20 November 2010 - 07:28 AM
like
App app = new App();?
#3
Posted 21 November 2010 - 03:52 AM
Offcourse App.java should be in the same package, otherwise you have to import it.
And we don't know what App.java is, maybe it has a main which you can run;
...or maybe it's a JFrame or something;
And we don't know what App.java is, maybe it has a main which you can run;
App app = new App();
app.main(new String[]{});
...or maybe it's a JFrame or something;
App app = new App(); app.setVisible(true);
Edited by Metalhead, 21 November 2010 - 03:53 AM.
typo
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









