Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #14164
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Applet code conversion... |
| Date | 2012-05-02 15:51 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <f9e3q79d1ljhncjdq22ksi8kr9g59b2foe@4ax.com> (permalink) |
| References | <4f9e356a$0$1390$4fafbaef@reader1.news.tin.it> <jnlo8d$81j$1@news.albasani.net> <4f9f8fdf$0$1387$4fafbaef@reader1.news.tin.it> |
On Tue, 01 May 2012 09:28:33 +0200, linus <linus@yahoo.com> wrote, quoted or indirectly quoted someone who said : >:174: width is not public in java.awt.Component; cannot be accessed from >outside package What can you do in those situations? 1. see if what you want is declared protected. If so, you can extend the class as use it just as if were package default. 2. look around for some accessors, perhaps in some other place in the class hierarchy. 3. look for another class with similar functionality. E.g. JComponent. 4. Roll your own taking inspiration from the recalcitrant class. But doing this is not necessary to run an Applet as an Application. One easy way is to have a width and height constant to put put in Applet tags or twith an adjust in the surrounding Frame when run as an Applet. Please read the material already given you before you ask for more. -- Roedy Green Canadian Mind Products http://mindprod.com Programmers love to create simplified replacements for HTML. They forget that the simplest language is the one you already know. They also forget that their simple little markup language will bit by bit become even more convoluted and complicated than HTML because of the unplanned way it grows. .
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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