I've just recently started learning
Java. I've been looking at GUI's and everytime I try to use a GridLayout in a program, I get an error message like the one below;
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous sym type: javax.swing.JFrame.setLayout
at GridLayout.main(GridLayout.java:10)
Java Result: 1
Below is an example of some code that is throwing up the error above;
The program runs, when I comment out line 10.
Can anyone please tell me why I am getting this error?
Thanks!