Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.x-privat.org!feeder.news.tin.it!spool.news.tin.it!not-for-mail Date: Tue, 01 May 2012 09:28:33 +0200 From: linus User-Agent: Thunderbird 2.0.0.24 (X11/20100228) MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Applet code conversion... References: <4f9e356a$0$1390$4fafbaef@reader1.news.tin.it> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Lines: 36 Message-ID: <4f9f8fdf$0$1387$4fafbaef@reader1.news.tin.it> Organization: TIN.IT (http://www.tin.it) X-Comments: Please send technical notifications to newsmaster@tin.it NNTP-Posting-Host: 95.252.125.220 X-Trace: 1335857120 reader1.news.tin.it 1387 95.252.125.220:7211 X-Complaints-To: Please send abuse reports to abuse@retail.telecomitalia.it Xref: csiph.com comp.lang.java.programmer:14071 Lew ha scritto: > linus wrote: >> How an applet code code can be trasformed to an application code ? >> I thought that adding a "main" would be enough .... but it is not so >> easy ! Is >> there an example about this my problem ? > > Did you try a web search? > > I found this in five minutes or less: > > > FWIW, my search string was "Java combining an applet and application". > With the code http://www.johnloomis.org/cpe101/notes/SwingGUI/combined/combined.html I get >> :174: width is not public in java.awt.Component; cannot be accessed from outside package { width = ( w >= 0 ? w : 300 ); } :177: height is not public in java.awt.Component; cannot be accessed from outside package { height = ( h >= 0 ? h : 200 ); } Wath have I to do ? Many thanks .