java swing component cannot be resolved

前端 未结 9 2019
灰色年华
灰色年华 2020-12-11 16:43

I took the following code from a tutorial:

import javax.swing.*;
import java.util.Date;

public class SwingGUI {

    public static void main( String[] args          


        
9条回答
  •  抹茶落季
    2020-12-11 17:07

    I get this problem too. unfortunately to resolve it I was needed to install my eclipse. but I think that the problem was incompatibility between JRE and JAVA version in Eclipse.

    I used JRE supported JAVA8 when my project (and my eclipse indigo) can't upgrade to JAVA8. Updating to another eclipse that can support java 8 solve the problem.

提交回复
热议问题