E
E
Evgeniya2017-02-20 15:06:09
Java
Evgeniya, 2017-02-20 15:06:09

Why is Intelij Idea highlighted in red when importing swing, writes an error, although the program is running?

Intelij Idea when importing swing highlights in red,
that is, in "import javax.swing.*;" the word swing is red and the error "cannot resolve symbol 'swing' " appears in the margins. And, accordingly, further in the code, all " JOptionPane
." are red with the same error in the margins.
as a beginner, they would be very useful to me)
09166aaabd03453687ac7aa66f03bc85.png
Need advice

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maks Burkov, 2017-02-21
@Maks00088

It's weird that IDEA doesn't usually do that, it's not Eclipse! If the code works, then it should usually disappear when the platform is restarted.

Y
Yurii Nekrasov, 2017-02-22
@driversti

Check if there are swing libraries in classpath Idea?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question