Jump to content

Quick Help Please?

- - - - -

  • Please log in to reply
2 replies to this topic

#1
GoldBot

GoldBot

    Newbie

  • Members
  • Pip
  • 2 posts
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
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
like
App app = new App();
?

#3
Metalhead

Metalhead

    Newbie

  • Members
  • PipPip
  • 27 posts
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;
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