Java Stack overflow blues...

Kilrsat

Golden Member
Jul 16, 2001
1,072
0
0
The implementation of the setVisible(true) inherited function calls the inherited show() method. Unfortunately you override show to call setVisible() therefore creating an infinite loop.

If you really want a show() method, call it something else. Otherwise just use the one that is inherited since it does the same thing.

Also check your imports, you're importing "import javax.swing.*;" twice.
 

AFB

Lifer
Jan 10, 2004
10,718
3
0
Originally posted by: Kilrsat
The implementation of the setVisible(true) inherited function calls the inherited show() method. Unfortunately you override show to call setVisible() therefore creating an infinite loop.

If you really want a show() method, call it something else. Otherwise just use the one that is inherited since it does the same thing.

Also check your imports, you're importing "import javax.swing.*;" twice.

LMAO, thanks :) I had java.awt and I changed it to javax.swing without thinking . :)