java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static method setTabTitle(String, JPanel) from the type BrowserFrame

Coderanch | Derek Boring | 10 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

    Static question

    Coderanch | 10 years ago | Derek Boring
    java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static method setTabTitle(String, JPanel) from the type BrowserFrame

    Root Cause Analysis

    1. java.lang.Error

      Unresolved compilation problem: Cannot make a static reference to the non-static method setTabTitle(String, JPanel) from the type BrowserFrame

      at HTMLFrame.go()
    2. Unknown
      startBrowser.main
      1. HTMLFrame.go(HTMLFrame.java:23)
      2. BrowserFrame.newTab(BrowserFrame.java:36)
      3. BrowserFrame.<init>(BrowserFrame.java:16)
      4. startBrowser.main(startBrowser.java:4)
      4 frames