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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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