I have been programming in Eclipse for a coupe of weeks. I had to remove Eclipse and Java for software update. However after I reinstalled Eclipse (Indigo) and Java Jdk (Java SE 8 (MacOS X Default)) I started to get errors.
The printer, scanner and object oriented programming method works fine but the Swing Components throw errors. Everytime I use method such as this.add(confirmButton);
I get errors. The Error is :
The type javax.swing.JComponent cannot be resolved. It is indirectly referenced from required .class files.
The internet suggested to fix the Build Path but I am only allowed to Use the default Java SE 8 because other execution environment gives an error
No JREs in workspace compatible with specified execution environment: JavaSE-1.7.