Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!usenet.ukfsn.org!not-for-mail From: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: It doesn't like 'super' where ever I put it. Date: Mon, 11 Jun 2012 22:53:54 +0000 (UTC) Organization: UK Free Software Network Lines: 31 Message-ID: References: NNTP-Posting-Host: 84.45.235.129 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: localhost.localdomain 1339455234 28647 84.45.235.129 (11 Jun 2012 22:53:54 GMT) X-Complaints-To: usenet@localhost.localdomain NNTP-Posting-Date: Mon, 11 Jun 2012 22:53:54 +0000 (UTC) User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Xref: csiph.com comp.lang.java.programmer:15211 On Tue, 12 Jun 2012 00:45:28 +0200, Gavino wrote: > "Robert Klemme" wrote in message > news:a3n43dF3fbU2@mid.individual.net... > On 11.06.2012 20:13, Gavino wrote: >>> It can't because the superclass (JFrame) does not have a constructor >>> without arguments. > >> Also wrong. > >> http://docs.oracle.com/javase/6/docs/api/javax/swing/JFrame.html#JFrame () > > My apologies. > I don't know where I got that erroneous idea from, but somehow I've been > carrying it around in my head for the last 12 years. > I should have checked the JavaDocs instead of relying on badly > remembered information. > > Now I'm equally confused about the wording of the error message. As Stefan said, I believe its objecting to the call to super("CalcFrame1") in the class erroneously declared as "public void CalcFrame1()". -- martin@ | Martin Gregorie gregorie. | Essex, UK org |