java.lang.RuntimeException: Uncompilable source code - non-static method setPreferredSize(java.awt.Dimension) cannot be referenced from a static context

Coderanch | abalfazl hossein | 5 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

    Swing simple

    Coderanch | 5 years ago | abalfazl hossein
    java.lang.RuntimeException: Uncompilable source code - non-static method setPreferredSize(java.awt.Dimension) cannot be referenced from a static context

    Root Cause Analysis

    1. java.lang.RuntimeException

      Uncompilable source code - non-static method setPreferredSize(java.awt.Dimension) cannot be referenced from a static context

      at simplegui.SimpleGui.main()
    2. simplegui
      SimpleGui.main
      1. simplegui.SimpleGui.main(SimpleGui.java:24)
      1 frame