java.lang.Error: Unresolved compilation problems: The method setDefaultCloseOperation(int) is undefined for the type MainFrame The method setTitle(String) is undefined for the type MainFrame The method setBounds(int, int, int, int) is undefined for the type MainFrame Syntax error, insert ";" to complete Statement The method setSize(int, int) is undefined for the type MainFrame

Coderanch | Jeff Karr | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    methods in java swing not working in eclipse

    Coderanch | 4 years ago | Jeff Karr
    java.lang.Error: Unresolved compilation problems: The method setDefaultCloseOperation(int) is undefined for the type MainFrame The method setTitle(String) is undefined for the type MainFrame The method setBounds(int, int, int, int) is undefined for the type MainFrame Syntax error, insert ";" to complete Statement The method setSize(int, int) is undefined for the type MainFrame

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problems: The method setDefaultCloseOperation(int) is undefined for the type MainFrame The method setTitle(String) is undefined for the type MainFrame The method setBounds(int, int, int, int) is undefined for the type MainFrame Syntax error, insert ";" to complete Statement The method setSize(int, int) is undefined for the type MainFrame

      at javax.swing.MainFrame.main()
    2. Java RT
      MainFrame.main
      1. javax.swing.MainFrame.main(MainFrame.java:27)
      1 frame