Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!fi.sn.net!newsfeed2.tdcnet.fi!news.song.fi!not-for-mail Date: Sat, 31 Mar 2012 23:22:29 +0300 From: Donkey Hottie User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Compilation ....cannot find symbol References: <4f774b5c$0$1390$4fafbaef@reader2.news.tin.it> In-Reply-To: <4f774b5c$0$1390$4fafbaef@reader2.news.tin.it> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 120331-1, 31.03.2012), Outbound message X-Antivirus-Status: Clean Message-ID: <9l5k49-om3.ln1@hurricane.fredriksson.dy.fi> Lines: 19 Organization: NBL Networks Oy NNTP-Posting-Host: 213.157.94.92 X-Trace: 1333225500 news.nbl.fi 3068 213.157.94.92:33825 X-Complaints-To: abuse@nblnetworks.fi Xref: csiph.com comp.lang.java.programmer:13282 31.3.2012 21:25, linus kirjoitti: > WHAT IS WRONG IN THIS CONSTRUCTOR ? > > > > private class ImagePanel extends JPanel { > > Image image; > > private Image ImagePanel(Image image ) { > return this.image = image ;} } It is not a constructor. There is no constructor i your sample. -- FORTUNE PROVIDES QUESTIONS FOR THE GREAT ANSWERS: #5 A: The Halls of Montezuma and the Shores of Tripoli. Q: Name two families whose kids won't join the Marines.