Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: It doesn't like 'super' where ever I put it. Date: Mon, 11 Jun 2012 22:51:50 +0200 Lines: 34 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: individual.net ZDadY/62g6oG6UjILR2VwAPYNKrleoM8xd4a09jV65DugQ+Hs45jf0CpCierfLzEg= Cancel-Lock: sha1:YkkGplCTkDH4TcNhwPnMDCecB4I= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:15208 On 11.06.2012 20:13, Gavino wrote: > "Stefan Ram" wrote in message > news:constructor-20120610205100@ram.dialup.fu-berlin.de... >> Robert Klemme writes: >>> On 10.06.2012 19:10, Stefan Ram wrote: >>>> v_borchert@despammed.com (Volker Borchert) writes: >>>>> This is not a constructor, but a method named like one. >>>> I'm not sure, whether this explains the error message given: >>>> |Constructor must call super() or this() before >>>> , because when there is no explicit constructor, the compiler >>>> will generate one, and this generated constructor /should/ >>>> call =BBsuper() or this() before=AB. >>> The compiler will only generate a default constructor (i.e. without >>> arguments) if there is no other constructor. >> >> There was no (other) constructor in the code of the OP, >> so a default constructor must have been generated, which >> will include a correct call of =BBsuper()=AB. > > It can't because the superclass (JFrame) does not have a constructor wi= thout > arguments. Also wrong. http://docs.oracle.com/javase/6/docs/api/javax/swing/JFrame.html#JFrame()= robert --=20 remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/