Eclipse sometimes has problems importing stuff from the javax.swing class. For me, it started with trying to use javax.swing.JOptionPane; Took me like an hour to find a solution. Since this worked for me, hopefully it will work for you and save you an hour of searching. I found the solution from here: https://stackoverflow.com/questions/2...
similar queries
javax.swing cannot be resolved
javax.swing is not working
javax.swing importing problem
javax.swing is not importing
javax.swing importing fix
This fix also works for java.awt imports; I figured this out while I got a cannot be resolved error while trying to import java.awt.FlowLayout .Note that awt is short for Abstract Window Toolkit
Смотрите видео javax.swing Cannot Be Resolved Error Fix онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Raqib Zaman 15 Январь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 62,863 раз и оно понравилось 787 людям.