Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #14071

Re: Applet code conversion...

Date 2012-05-01 09:28 +0200
From linus <linus@yahoo.com>
Newsgroups comp.lang.java.programmer
Subject Re: Applet code conversion...
References <4f9e356a$0$1390$4fafbaef@reader1.news.tin.it> <jnlo8d$81j$1@news.albasani.net>
Message-ID <4f9f8fdf$0$1387$4fafbaef@reader1.news.tin.it> (permalink)
Organization TIN.IT (http://www.tin.it)

Show all headers | View raw


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:
> <http://www.johnloomis.org/cpe101/notes/SwingGUI/combined/combined.html>
> 
> 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 .



Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Applet code conversion... linus <linus@yahoo.com> - 2012-04-30 08:50 +0200
  Re: Applet code conversion... Jeff Higgins <jeff@invalid.invalid> - 2012-04-30 06:06 -0400
  Re: Applet code conversion... Lew <noone@lewscanon.com> - 2012-04-30 03:07 -0700
    Re: Applet code conversion... linus <linus@yahoo.com> - 2012-05-01 09:28 +0200
      Re: Applet code conversion... Knute Johnson <nospam@knutejohnson.com> - 2012-05-01 08:44 -0700
        Re: Applet code conversion... linus <linus@yahoo.com> - 2012-05-02 15:45 +0200
          Re: Applet code conversion... Knute Johnson <nospam@knutejohnson.com> - 2012-05-02 16:58 -0700
      Re: Applet code conversion... Roedy Green <see_website@mindprod.com.invalid> - 2012-05-02 15:51 -0700
  Re: Applet code conversion... Tsukino Usagi <usagi@tsukino.ca> - 2012-04-30 20:40 +0900
  Re: Applet code conversion... Roedy Green <see_website@mindprod.com.invalid> - 2012-04-30 07:08 -0700

csiph-web