I like the new forum

i havent been able do any programing for over a week
i came back and see the new forum
my question is how would i convert this to a applet
class Art {
Art() {
System.out.println("Art ");
class Drawing extends Art {
Drawing() {
System.out.println("Drawin");
public class Cartoon extends Drawing {
Cartoon () {
System.out.println("Cartoon");
public static void main(String[] args) {
Cartoon x = new Cartoon();

Hello xlightwavex,
To convert your application into an applet you need to create a class that extends the java.applet.Applet class. Below is the complete applet version of your application Cartoon.
class Art {
Art() {
System.out.println("Art ");
class Drawing extends Art {
Drawing() {
System.out.println("Drawin");
class Cartoon extends Drawing {
Cartoon() {
System.out.println("Cartoon");
public class CartoonApplet extends Applet {
public void init() {
Cartoon x = new Cartoon();
However, like your application, this applet sends all output to the system console (the DOS window in Microsoft's Windows for example). If you want the output on the applets panel itself you will need to update each class and replace the System.out.println methods. The applet below shows how you might do this, this is just one out of the many ways you might do it:
import java.applet.Applet;
import java.awt.*;
class Art {
public String toString() {
return( "Art.");
class Drawing extends Art {
public String toString(){
return( "Drawin, " + super.toString());
class Cartoon extends Drawing {
public String toString() {
return( "Cartoon, " + super.toString());
public class CartoonApplet extends Applet {
Cartoon x;
public void init() {
x = new Cartoon();
public void paint(Graphics g) {
g.drawString( x.toString(), 25, 25);
The output of this program verifies that a Cartoon object, Drawing object and Art object have been constructed. The output is show below, which appears on the Applets Panel:
Cartoon, Drawin, Art.
Is this output just helping in debugging, or is it vital to the applet? If it is for debugging purposes, the System.out.println method is a good way of doing it. If not, do you need the output to appear antwhere in the applet? If so, it is hard to create output from the object of which other object can inherit - it is not the usual way of doing it. Otherwise, the above CartoonApplet is a good way of getting information about an inheritance model.
I hope this helps.
Best reguards
-Marek.

Similar Messages

  • Love the new forums... but

    love the new forums... but hate the performance.  Keep in mind my internet connection is 20MB/S download speed, there are times the pages wont even finish loading and you have to stop and reload again and/or very slow loading times.  Of course, there are times the performance is as expected, but rarely.  I hope Adobe plans to support the forums with better hosting.

    jon@cmiwebstudio wrote:
    love the new forums... but hate the performance.  Keep in mind my internet connection is 20MB/S download speed, there are times the pages wont even finish loading and you have to stop and reload again and/or very slow loading times.  Of course, there are times the performance is as expected, but rarely.  I hope Adobe plans to support the forums with better hosting.
    As an od adage says: "Don't feel like the Lone Ranger".
    which means everyone and his , brother, sister, Aunts, Uncles, mothers's and Father, and cousins on the Acrobat forums are complaing about the Speed.
    There is really we as Users of the Forums can do about it other than complain and hope adobe will do something about it when they get finished with their easter holiday. Maybe that will be before their 4th of July vacation.

  • The new forum software

    Folks,
    Lets take a vote. Do you just love (10) or utterly despise (-10) the new forum software?
    -8
    Against
    1. It's kitchy.
    2. It's buggy.
    3. Source code is HARDER to read than ever.
    4. They should have adopted wiki markup.
    For
    Ummm. RTF is kinda cute, I suppose.

    i like the look and feel, but i have to agree that the speed is not wonderful.
    of course i have a lot more tolerance for slow these days, since i became
    a full time DBA and some of our runs literally take days.

  • The new forums

    Hi all,
    I don't know if it is just me . But I didn't like the new interface of forums.
    Each threads appear big to me and 15 threads will fill up one page.
    Of course, I can click on 'Load more Items' button and see more threads but threads appear big in an unfriendlier way.
    Maybe I'll get used to it.
    I don't see the preview button (to preview the content before posting).
    Is there an option to switch to the old 'Classic View' as we get in Gmail and Yahoo ?
    How do I reward the volunteer who gave the correct answer ? And how do i mark a reply 'Helpful' ?
    On the plus side:
    I liked the design of the  top section  filled with red with 'OTN Community' written on it.
    More formatting options

    Regarding the threads appearing big issue. I think you are in 'Overview' tab. Choose 'Content' tab ;   the next one on the right and you'll get a more friendlier interface than earlier one.
    How do I reward the volunteer who gave the correct answer ? And how do i mark a reply 'Helpful' ?
    The same options still exist.

  • Difference between the TABs  "All Content" and "Discussions" on the new forum?

    Hi,
    Does anyone know the difference between the TABs  "All Content" and "Discussions" on the new forum?  They seem to be the same.  I'm confused.
    Petey

    Petey,
    Though I was part of the forum update beta, there was some that we could not effectively test, plus some aspects (like "Like"), that some liked, but others did not. That sort of thing happens.
    Also, now that we have the full version, and all servers are synced, there will probably be things that the beta testers did not get to experience. We will all be learning, in the process too. Also remember, much of the new forum software was provided by Jive, and though many of us commented (pros and cons), only so much could be addressed. It was not quite like doing a beta on Adobe software, as there was a complete, separate layer in between.
    So far, what I see looks close to what we saw a few weeks (months?) ago. Now, I need to really put the real software through its paces, to see what got changed from then, until now.
    Good luck,
    Hunt

  • When is the ipod touch going to have a radio built into it, like the new ipod nano

    I was wondering when the ipod touch will come out and have radio inbuilt into it like the new ipod nano. I used to have an ipod touch, lost it and got the nano and one of the best things about the nano was the FM radio! So I decided that I wouldn't buy an ipod touch until it had a radio because I listen to the radio more than my music... So I wanted to know how lond I would have to wait.

    You are not addressing Apple in this forum.  We are only users like you and hve no idea since Apple has not made any announcement.  To make a suggestion to Apple go her:
    Apple - iPod touch - Feedback

  • Trying to create a new movie.  It tells me to name my movie, and the only event choice is the last movie I made.  I don't want it there.  I'm lost and I'm just starting.  Not sure I like the new version.  Any help out there?

    I'm trying to create a new movie.  It tells me to name my movie, and the only event choice in the drop down menu is the last movie I made. IMovie Library is greyed out. I'm lost and I'm just starting.  Not sure I like the new version.  Any help out there?

    peggy818 wrote:
    … I'm lost and I'm just starting.  Not sure I like the new version.  …
    have a read in the Manual:
    http://help.apple.com/imovie/mac/10.0/?lang=en#mov755717b21

  • Welcome to the new forums

    Welcome to the new forums for GroupWise 2014. You can find more information about GroupWise 2014 at http://www.novell.com/products/groupwise/
    Here you can ask questions, share experiences, and talk to others about your 2014 experiences and/or get the information you need about upgrading to this new version of GroupWise.
    Thank You for participating with us in this community and sharing your knowledge/experiences!

    Forums,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • How do I make my old user account perform like the new one?

    I have a macbook pro 13" 2008 with 8 gb of ram that has been showing stuttering in hd video lately (or maybe when i upgraded to lion). I created another user and it doesn't seem to suffer any stuttering. Perhaps it doesn't have weird things running the background like the 655mb kernal task I see in activity monitor. My question is, how do I make my old user account perform like the new one? I've tried to turn off things running the background, but it doesn't seem to do anything. Thanks!

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
    http://ipad.about.com/od/iPad_Guide/ss/How-To-Wipe-Your-iPad-And-Erase-Data.htm
     Cheers, Tom

  • I downloaded ios5.1.1 to my phone, but i dont like the new software. The face detection used in the camera jut isnt for me. So, i would like to know if there was a way to undo the update and go back to ios 5.0.1. My iphone is not jailbroken or unlocked.

    i downloaded ios5.1.1 to my phone, but i dont like the new software. The face detection used in the camera jut isnt for me. So, i would like to know if there was a way to undo the update and go back to ios 5.0.1. My iphone is not jailbroken or unlocked.

    The face detection used in the camera jut isnt for me.
    Try a different camera app.  Camera Plus is a good one and there are many others.

  • I just updated my iTunes and I do not like the newer version.....can I go back to the earlier version??  This new version does not have the iTunes DJ nor does is show at the bottom as in the earlier version how many songs and the size of my library.

    I just updated my iTunes on 12-7-2012 and I do not like the newer version.....can I go back to the earlier version??  This new version does not have the iTunes DJ nor does is show at the bottom as in the earlier version how many songs and the size of my library.

    To do this in iMovie 11. use the SHARE menu. Share your project using the Share menu and choose Export Using QuickTime.
    In the Dialog box that comes up, choose Sound to AIFF, or one of the other sound options. This will create a file that you can drag into iTubes.

  • How many do not like the new update for the droid maxx? How do you unupdate your phone?

    The alarm clock is harder to manage. Before it was nice neat simple and easily readable. I have 4 alarms I use. I change the times around sometimes and I used to be able to see them all. I pick the one I want. Quick 2 sec change and done.
    Now its large and harder to read. Go into the Alarm and you have to go around. I used to just type the hr I want or scroll up.
    After selecting an alarm. When I was done. I could easily select the next one I wanted because It would revert back to neat simple view. Not now. That alarm takes up the whole screen.
    When unlocking the screen I used to be able to go left to get straight to the phone. Go down for a text. Not anymore.
    When in a call and I changed apps. I could go back to the phone by selecting the phone pic. The dial pad would be right there. Switch the speaker on and off.
    Now once I switch out from phone and I can't get back to the dial pad.
    From home screen scroll left to bring up
    ringtone.
    wifi
    bluetooth and so on.
    I select the on off for wifi in 1 second. Nope. Have to go into the option and change it.
    It updated my google maps. I don't like the new one and I can't change it back to the original. On the original I used to be and to look at different options to my routing. Now thats not possible.
    Hasn't any business ever heard of the term.
    IF IT AINT BROKE DON'T FIX IT.

    Did the issues start right after the software update?
    Umm. Yeah. thats usually what happens when you update something. Things change.
    I didn't say I didn't want my phone to be improved to work faster.
    I did however say I didn't want it completely changed.
    The look of it alone causes me headaches.
    I don't want you to fix any issues other than getting rid of the update. Thats it. I will be, along with everyone else, will be happy when someone does something to get rid off this ugly looking, update.
    Its simple. I just don't want the new look.
    If I wanted it to look the way it does now. I would have gone to the store and bought a phone that has this look.
    I like the way it was.
    I did a factory reset. It does not do anything except remove the settings app and other info.
    Then when the phone turned on. It started updating every single app I owned. Its trying to run up my bill.
    Let me do this when I am using wifi or something. Not on my service.
    Before anyone answers about this.
    Go to app store hit stop. Change the settings auto update off.
    Didn't work. 10 minutes later while waiting on hold I happen to look at my phone again. It started downloading them all again. I stopped them. Double checked my settings. Made sure auto update was off.
    I have a few apps I don't update and they work perfectly fine.
    I like them that way.
    Ann154
    You should also try the recent app screen/view to switch between apps and the dialer to return to the dialer screen.
    Your in a phone call. Go to the home screen. Click the phone button.
    3 things come up.
    Use touch tone keypad.
    Return call in progress.
    3rd unimportant for this. I want to see the dialpad.
    Option 1. Use touch tone keypad. Select to bring up the dialpad. Ok. Got it.
    Option 2. Return to call in progress. Select to ring up the dialpad.....
    Hmmm. Option 1 and 2 do exactly the same thing. Now whos bright idea was it to have 2 options in the same menu. To do exactly the same thing.
    Why don't we just select the phone and it brings up the dialpad.
    Want to add a call.
    You could try the recent app screen/view to switch between apps.

  • I upgraded to Mavericks.  I just spent an hour in Pages.  Now I can't open my documents, it says I need to upgrade to a newer version.  It looks like the new 5.0 when I typed but it's saying I'm running 4.3.  the App store says I've already upgraded.  Hel

    I upgraded to Mavericks.  I just spent an hour in Pages.  Now I can't open my documents, it says I need to upgrade to a newer version.  It looks like the new 5.0 when I typed but it's saying I'm running 4.3.  the App store says I've already upgraded.  HelP

    Actually, there seems to be a bit of a bug.  Encountered this with a couple of files my wife made.  The files were set to "open with" the new Keynote, but clicking the file brought up this error.  Right-clicking and selecting "open with..." worked correctly.  I can only assume the OS was attempting to open the file with Keynote '09 despite the file property setting.
    Probably requires a Launch Services DB reset (although I haven't actually tried it on my wife's MBA yet...since she's still "working on stuff".  So I can't confirm if it will solve the problem).
    /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.fram ework/Support/lsregister -kill -r -domain local -domain system -domain user ; killall Dock

  • HT1222 I like the new iOS 7 for iphone... But i think it's not a good idea to allow switch the iphone on flight mode when it is locked.. What happens if your iphone is stolen or lost? You couldn't be able to locate it using find my iphone... Can i remove

    I like the new iOS 7 for iphone... But i think it's not a good idea to allow switch the iphone on flight mode when it is locked.. What happens if your iphone is stolen or lost? You couldn't be able to locate it using find my iphone... Can i remove this from the bottom menu?

    And have your phone set to require a passcode before it can be accessed.

  • Since upgrading to 8.0 I can no longer print from Mapquest Classic. I an from IE. How can I fix that? ALSO I don't like the new layout. How can I go back to my pervious version?

    Since upgrading to 8.0 I can no longer print from Mapquest Classic. It's not a Mapquest problem it's a Firefox problem as I am able to print using IE. I haven't encountered any other sites problems yet but I'm sure it's to come if I don't get this fixed. I need to be able to print. How can I fix this?
    I also do not like the new layout. How can I go back to my previous version?

    What precisely do you mean by deleting the podcast app from both the phone and Mac? I have deleted the podcast app from my phone but on my Mac in iTunes->iPhone->Apps it shows up albeit with a button labelled "Install". I've resynced 3 times and when I try to access my Podcast playlist in the Music app, I still get a message telling me that podcasts have moved to the Podcast app. I'm really sick of some of the changes Apple  has made to their software.

Maybe you are looking for