Click here to Skip to main content
15,881,653 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Visa class is my class file and i want to run that file when i clicked ok button
but this gives me an error?

Java
private void OK_BtnActionPerformed(java.awt.event.ActionEvent evt) {
       // TODO add your handling code here:
       Box1 = User_Name.getText();
       Box2 = User_Password.getText();

       LoginClass Log = new LoginClass();
       Log.setUname("bob");

       VisaClass();
   }


please help me to solve this issue?
Posted

You neither run a class file nor a class. You instead create an object, instance of a class, and the invoke object's methods.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900