My Very first Java Problem - i can't solve the ok button please help
The problem:
my only problem is in the
private void OkActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
The ok Button
So here's my program about
1. Create a person Class with the following Attributes
String Fname
String Lname
Int age
char MInitial
-create constructors, setters, & getters
-create a method name public void printDetails() //This method prints the details of a person
-Create a gui Form where the person will fill up his, First name, Last name, Age, Middle Initial
- In the GUI class create an array of 5 persons
Button Functions
Clear button - Clears all Input Fields
ok Button - Submits all the personal info and places the person in the array and clears all input fields
Print All = prints all personal info of all person in the array (in the output)
It calls printDetails() method for every person in the array //don't display in the GUI
http://i125.photobucket.com/albums/p...otos/johnp.png
can u please make me a code of it?
it doesnt solve my problem