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, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 63,374 раз и оно понравилось 782 зрителям. Приятного просмотра!