Netbean要怎麼用阿???(20點相贈)

最近終於收到通知選到了物件導向程式設計 老師是用Netbean來寫JAVA程式 但我前幾堂都沒去不知道Netbean要怎麼操作>"< 軟體我是灌好了 然後老師出了以下這組程式... // Java extension packages import javax.swing.JOptionPane; // import class JOptionPane public class InputDialog { // main method begins execution of Java application public static void main(... show more 最近終於收到通知選到了物件導向程式設計
老師是用Netbean來寫JAVA程式
但我前幾堂都沒去不知道Netbean要怎麼操作>"<
軟體我是灌好了
然後老師出了以下這組程式...
// Java extension packages
import javax.swing.JOptionPane; // import class JOptionPane

public class InputDialog {

// main method begins execution of Java application
public static void main( String args[] )
{
String firstNumber; // first string entered by user
String secondNumber; // second string entered by user
int number1; // first number to add
int number2; // second number to add
int sum; // sum of number1 and number2

// read in first number from user as a string
firstNumber =
JOptionPane.showInputDialog( "Enter first integer" );

// read in second number from user as a string
secondNumber =
JOptionPane.showInputDialog( "Enter second integer" );

// convert numbers from type String to type int
number1 = Integer.parseInt( firstNumber );
number2 = Integer.parseInt( secondNumber );

// add the numbers
sum = number1 + number2;

// display the results
JOptionPane.showMessageDialog(
null, "The sum is " + sum, "Results",
JOptionPane.PLAIN_MESSAGE );

System.exit( 0 ); // terminate application

} // end method main

}

要我們作修改 改成程式run出來會有一個方塊
把三個數值填進去就能判斷這三個數值是否能組成三角形
如果可以那是正 . 直角還是等腰三角形......
我只知道一開始先按New project
然後把InputDialog打入project name
其他我完全不曉得怎麼做....
拜託哪位大大教教我
感激不盡~~~~~~~~~~~~~~~~~~~~~
1 answer 1