Please Help Me I am stoped at this point

I am a beginner here is my simple code:
import java.awt.*;
public class RootApplet extends com.sun.java.swing.JApplet {
     int number;
     public void init() {
          number = 225;
     public void paint(Graphics screen) {
          super.paint (screen);
     Graphics2D screen2D = (Graphics2D) screen;
     screen2D.drawString("The square root of " +
          number +
          " is " +
          Math.sqrt(number), 5, 50);
when i try to compile I recieve this error:
C:\jdk1.2.2\J24Work>javac RootApplet.java
RootApplet.java:3: Superclass com.sun.java.swing.JApplet of class RootApplet not
found.
public class RootApplet extends com.sun.java.swing.JApplet {
^
1 error
It would be highly appriciated if you help me as i am stoped at this point.thank you

You are extending the wrong class. In general, it is not a good idea to extend any of Sun's own classes. (There may be redistribution issues, and at the very least, your users will have to install the entire SDK rather than a JRE).
Extend javax.swing.JApplet instead.
- Saish

Similar Messages

  • Please help me to come out of this dilemma.

    Hi
    I am in dilemma.
    Recently i have joined a new organization which is a world leader in its field . The company name is very popular around the globe. But the thing is its almost 4 months , and as an Oracle DBA , i am not getting chance to work on something interesting / challenging . The thing is , i studied the environment here and i think most of my work involves only preparing DB docs , attending meeting and raising support tickets once a while. So very minimal technical work.
    To be honest, in last 4 years of my career i haven't worked in such a large organization before so during interview i didn't ask for type of work ,and i just wanted to join this organization as it will have a dramatic impact when i mention the name in my resume . I do not want to quit this organization so early because it will have a bad impression . Also , i think speaking to my bosses will not work because they cant help it in any way .
    I am happy with every thing else here , but i want to leave this company for doing something challenging as an Oracle DBA , but want to stay here because every thing else is damn good and also when i switch to a new company after 2 years , people will be dying to hire me ;) , am i contradicting ?
    Please help me to come out of this dilemma.
    Thanks

    Well, joining a big company from a small company and then leaving it just in few days would actually backfire. Next hiring people would think that since you were in capable to handle the workload in a big company(because you never worked in such environment before), you were thrown out. You won't be able to justify your reason that you left because you didnt' find enough challenge there because it can be completely blown away by a simple counter that how did you know that there was no challenging work there as you never stayed there even for a year too! So IMO, you would do more harm for you than anything good be quitting now. Its a mistake not to ask about the work but you have committed it already . What you should n't do is to do add another one and that is to leave the company now.
    Since you are not having much work, why don't you use it learn more about the company, its various works, other divisons and above all, to learn oracle database in your spare time. There is no place where you would be given challenges for your sake. If there is work it would come to you else you would be remaining free. You are working as a normal dba I believe not in support or something like that for you, every time, a new issue ticket is ready. If you have spare time with you, use it wisely to understand how things are working , both in your organization and with oralce db. Spend time doing trainings and learn more about the product, complete at least and then leave.
    Just my 2 cents.
    Aman....

  • Can somebody please tell me how to fix this. when i try to install appleworks this pops up  so please help me i need to get this on my mac

    can somebody please tell me how to fix this. when i try to install appleworks this pops up
    so please help me i need to get this on my mac

    AppleWorks is a very old application and requires Rosetta to run under recent systems.
    Lion does not include Rosetta.
    If you browse this forum you will find many posts on this issue.

  • Since I have Yosemite on my iMac I can't view PDF files in Safari anymore.  It keeps telling me to upgrade my Adobe Reader, but it is the latest version.  Please help?  I don't have this problem on my Macbook that does not have Yosemite installed.

    Since I have Yosemite on my iMac I can't view PDF files in Safari anymore.  It keeps telling me to upgrade my Adobe Reader, but it is the latest version.  Please help?  I don't have this problem on my Macbook that does not have Yosemite installed.

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and check the box marked
              Allow Plug-ins
    Then click
              Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
              Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

  • The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    The enter key is not working in firefox but it has working fine in chrome and IE so please help me to rid out from this.

    Hello gokulaan, '''try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Why doesn't my iPhone 4 have an 'Internet tethering' options? Is it carrier related or iOs related? Please help me find the solution for this. thanx

    Why doesn't my iPhone 4 have an 'Internet tethering' options? Is it carrier related or iOs related? Please help me find the solution for this. thanx

    Personal Hot spot
    http://support.apple.com/kb/HT3574
    Understanding
    http://support.apple.com/kb/HT4517
    Trouble Shooting
    http://support.apple.com/kb/TS2756

  • In my mac i dont create icloud keychain but it is asking password please help me to get out of this problem

    In my mac book pro i don't create icloud keychain. But it is asking password.Please help me to get out of this problem.In OS X Mavericks

    Hi, nportillo,
    The next time you attempt to reach Skype Customer Service, try again using a different web browser and choosing a different path through the various drop-down menu options presented.  Do not choose the obvious - you have already established that path is not working.  Also, look to approve a pop-up dialogue box which would connect you to start an instant message chat with a customer service agent. If you have pop-ups blocked in your browser settings, this will also impede reaching an agent.
    Skype is aware of problems reaching their customer service unit via the website, however people are getting through.  I have flagged your report for follow-up by those to whom I report.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    My 4th generation ipod touch is not turning off when i hold the wake button for few seconds the Voice Control Function Starts Automatically.Please help me to get out of this problem.

    Sorry i mistakenly made this question. It was alright. No Problem At ALL

  • Whenever i try to sync apps, tones, music etc, it says me to authorize my computer. But i had already authorized it and had even signed into my account. Can you please help me? I am facing this problems since long. please.

    Hey there.
    Please help me.
    Whenever i try to sync apps, tones, music etc, it says me to authorize my computer. But i had already authorized it and had even signed into my account. Can you please help me? I am facing this problems since long. please.
    It goes like this.
    Whenever i connect my iPhone5, it starts to sync. later when it reaches the 4th stage of 'Tranferring Purchases' it stops and says me to Authorize my computer.
    But i had already authorized it and even signed my apple id.
    Moreover, i have only authorized 1 out of my 5 computers.
    Please help me.
    I have been facing this from long.
    Thank You.

    Hi Rameez,
    Thanks for visiting Apple Support Communities.
    The steps in this article can help if iTunes is asking you to authorize your computer repeatedly:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Best,
    Jeremy

  • Hey all ,  my apple ipad 16gb wifi only  is showing a blue screen !! please help ! how do i fix this . what does it mean ? thanks in advance .

    hey all ,  my apple ipad 16gb wifi only  is showing a blue screen !! please help ! how do i fix this . what does it mean ? thanks in advance .

    Thank u verrrrrrrrrrry much FoxFifth u save my life thank u.

  • Please help me  one column i have this data col1

    Please help me
    one column i have this data
    col1
    Hi this is <SPAN style="FONT-SIZE: 18pt" data-mce-style="font-size: 18pt;">Rabindra.<SPAN style="FONT-SIZE: 10pt" data-mce-style="font-size: 10pt;">R u <SPAN style="FONT-SIZE: 18pt" data-mce-style="font-size: 18pt;">remember</SPAN> me .</SPAN></SPAN
    dfg sdfgfdsg sfdgsdf gsfdgsdfsd <SPAN style="FONT-SIZE: 18pt" data-mce-style="font-size: 18pt;"><STRONG>Rabindra</STRONG></SPAN
    i need like
    col1
    Hi this is Rabindra.R u remember me.
    dfg sdfgfdsg sfdgsdf gsfdgsdfsd Rabindra

    Hi,
    If str is a string, and you want a version of it without any of the tags (that is, without the '<' or '>' characters, or anything between them), then you can use REGEXP_REPLACE, like this:
    REGEXP_REPLACE ( str
                  , '<[^>]+>'

  • HT203175 I downloaded two videos from itunes into Media Go and I can't play or transfer them to my Walkman. Please help. I'm new at this and haven't a clue as to what I should do. Is Media Go the wrong place to put the videos? Thanks. Earl G.

    I downloaded two videos from itunes into Media Go and I can't play or transfer them to my Walkman. Please help. I'm new at this and haven't a clue as to what I should do. Is Media Go the wrong place to put the videos? Thanks. Earl G.

    I was able to transfer songs, but not the videos. You, too? Earl. G.

  • When I try to open my applications, they won't open. I can only open them by right click open. Please help. I need to use this for school.

    I can open files on my desktop and I can only open them by right click then open. Please help ASAP. I am using this MacBook for school. Pls help asap

    Macbook Pro
    System Preference > Trackpad > Point and Click
    At the bottom adjust the Tracking Speed slider.
    Best.

  • Hi, iam facing proble in synchronizing 4 ni 4472 cards input with pxi -6052e analog output. please help me out to sort out this problem

    hi, iam facing problem in synchronizing 4 ni 4472 cards input with pxi -6052e analog output. please help me out to sort out this problem

    Hi achyuth,
    Thank you for posting on the National Instruments forum.
    I am not sure what you are trying to do.  Are you trying to input and output at the
    same time?  Are you just trying to
    synchronize all of your inputs?  Do you
    want them to run off the same clock?  If
    you could, give me some more information so I can understand your problem
    better.
    In the meantime, this might help you:
    PXI Timing,
    Triggering, and Synchronization Capabilities of E-Series Multifunction Data
    Acquisition ...
    PXI Timing and Synchronization
    Thank You,
    Nick F.
    Applications Engineer

  • I am currently getting finder error screen saying "Quartz-filter plugin" error, Please report to apple. Can anyone please help me find a resolution for this error?

    I am currently getting finder error screen saying "Quartz-filter plugin" error, Please report to apple. Can anyone please help me find a resolution for this error?

    If it were me I would schedule an appointment at the store where you bought it and meet with the Manager of the store in person. Print this post and bring it with you along with your iMac.
    And change the password on your Apple ID and then see if there are in purchases in your account that you did not make. If there are then someone did get your ID and password. If not someone got your Credit Card information from somewhere and used it.

Maybe you are looking for

  • Open new window in the same Window

    Im developing a project in JavaFX where I wish to open the new window in the same window Here is my code : Stage st=(Stage)((Node)t.getSource()).getScene().getWindow(); I tried this but its giving an exception

  • ITunes Claims My iPod Touch Needs to be Erased

    Here is my issue... Our computer was recently repaired. In the process, it was discovered that iTunes had some major issues. The technician did a thorough uninstall , including removing iTunes from the registry, and reinstalled it. I added all of our

  • Problem with initialization Delta queue

    Hi Gurus, I have problem with initialization of delta queue when I try load transaction data from R3 (FM) to BI. Error message: Deviation of (64 seconds) between qRFC counter (000012365466830000080000) and actual time (08.03.2009 21:10:19). I have no

  • Increment date parameters on each run

    Hi, while scheduling concurren requests. we have option like "increment date parameters on each run" what exactly the meaning of the above

  • Setting Custom location for Portable Home Directories

    I'm using the Portable Home Directories to create a separate home on certain desktop machines for users to use on that machine only. These are not synced either way to the server. Problem is I want it to create the homes on a different internal hard