I'm using Mac for the first time and I'm assuming this is a OS specific error, because the same code worked well on Ubuntu.
I'm trying to compile this code and Eclipse is showing me a lot of errors like this one:
Access restriction: The method invokeLater(Runnable) from the type SwingUtilities is not accessible due to restriction on required library /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/rt.jar
This is the first time I facing something like this and I don't know how to continue.
I'm using Java 8.