Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to correct "method not found in class" error !

Status
Not open for further replies.

StanSteve

Instructor
Sep 22, 2001
16
US

Dear Java Friend,
In my attempts to understand the GridBagLayout layout manager, I attempted to run a program but the error message says
"GridBagLayoutTester method not found in class stan_GridBagLayoutTester."
It is the only line of code in the main program where the problem occurs !
public static void main(String[] args)
{
GridBagLayoutTester();
}
Thanks for your advice
Stan
 
I assume you are using codeinsight so no case sensitivity is involved.

Are you sure it shouldn't be

Code:
psvm(...)
{
new stan_
Code:
GridBagLayoutTester();
}

It seems to me your business code must be in your constructor, so it must be constructed =).

If it's not the case, and you have this method, well, why? Simply put the business code in the main function and you're set.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top