java swing component cannot be resolved

前端 未结 9 2036
灰色年华
灰色年华 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:00

    I was also facing the same problem in eclipse IDE but after changing the jar file to jre7(Right-click project>>Buildpath>>Configure build path>> AddLibrary>>Jre System Library) the error has resolved, i don't know how it happens can some one explain it.

提交回复
热议问题