Ok, another one for you guys!

import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class Scribble extends Applet implements
MouseListener,
     MouseMotionListener {
     int oldX, oldY;
     public void init() {
          // Register the event handlers
          addMouseListener(this);
          addMouseMotionListener(this);
     public void mouseMoved(MouseEvent evt) {
          Graphics g = getGraphics();
          g.drawLine(oldX, oldY, evt.getX(), evt.getY());
          g.dispose();
          oldX = evt.getX();
          oldY = evt.getY();
     public void mouseEntered(MouseEvent evt) {
     public void mouseExited(MouseEvent evt) {
     public void mousePressed(MouseEvent evt) {
          oldX = evt.getX();
          oldY = evt.getY();
     public void mouseReleased(MouseEvent evt) {
     public void mouseClicked(MouseEvent evt) {
Error:
Scribble.java:5: Scribble should be declared abstract; it does not define mouseD
ragged(java.awt.event.MouseEvent) in Scribble
public class Scribble extends Applet implements
^
1 error

So? It's saying you didn't implement mouseDragged, which you agreed to do when you said it implements MouseMotionListener. So implement it.
Rather than making your applet implement the mouse interfaces, you could create inner classes that do, and then make those inner classes subclass MouseAdapter and MouseMotionAdapter.
You'd end up with smaller, tighter code.

Similar Messages

  • Ralph... here's another one for you

    I've had this problem where I can talk to Craig, Craig can talk to Joe but I can't talk to Joe.
    I've now fixed it so I can ANSWER an invitation from Joe and chat fine.
    However, if I call HIM, he sees the invite, tries to accept, then basically locks up,
    having to restart iChat completely.
    He's on a wireless router in his home, from a DSL connection.
    I went to his Mac firewall and opened all the 5000 ports, etc. and the 1024 - etc. ports.
    This seemed to make the difference in my being able to accept. I tried turning off his firewall completely and it's still no go.
    I'm still stumped. I talk with everyone I contact, all over the place. What's the problem with this one person?
    Thanks!

    Hi Rick,
    If the ports are open with Port Forwarding or Port Triggering it can be a NAT consistency problem.
    This app will tell you if this is the problem http://bleu.west.spy.net/~dustin/projects/natcheck.xtp
    The solution can be as simple as using UPnP if it is an option on the router or modems.
    This mirror of my site has some options to try various things regarding this
    http://homepage.mac.com/ralphjohnsuk1/skidoo/page15.html#CertainBuddy
    There is a bottom line on this and that is to try a different modem/router.
    11:08 PM Thursday; April 27, 2006

  • Another one for you...now the typing is off

    Hi again all,
    I am using CS4, and I have made my circle. Still haven't completely figued out the eyedropper thing, but I worked around.
    Now I want to type around the circle, but when I click in the shape, it just makes a big text box the size of the circle. I still can't seem to get the text to go around my circle.
    I must be missing something...Any suggestions?
    Thanks,
    Cherie

    You hover your type tool icon over the path you made with the ellipse tool. Click when the type tool icon changes into an i with a wavy slash. See below.
    Above shows a screen capture of a section of a circular path with the type tool on the shape path (above) and within the shape path (below). You want the icon to look like the upper example.

  • How can I manage several ID on my computer, one for my iPhone and another one for the iPad of the family?

    Hi everybody
    Just have bought an ipad2 and i would like to manage several IDs on my computer (i.e keep my iPhone ID and create another one for the ipad to manage apps for my iPhone (4) and the apps for the iPad).
    How can I resetup the iPad to create that new ID on itunes?
    Thanks for your help
    Jp

    If you have separate iTunes accounts for the two devices then you'll need to buy 2 copies of any app that you want on both device - you can't copy or move apps from one account to another (they are tied to the account that bought/downloaded them). If you want to reset the iPad then logout of the account on it (Settings > Store and tap the id on the right-hand side) and then Settings > General > Reset > Erase All Content And Settings will reset it back to factory defaults.
    You may want to consider one of three options mentioned on this page http://support.apple.com/kb/HT1495

  • I would like to cancel all itune charges on my credit card there is one for 4.99 and .99 now I see another one for 7.95 as of March 16 Please cancel all of them. I didn't charge them.

    I would like to cancel all itune charges on my credit card there is one for 4.99 and .99 now I see another one for 7.95 as of March 16 Please cancel all of them. I didn't charge them.

    Do what Roger says above.
    Do you have 'in-app' purchases enabled on an iPhone/iPad or other device that kids or other family members use ?  That could be the issue.
    If not change your iTunes Store password to try to prevent whatever is doing this making further charges.
    Also if you can't find the cause, talk to your cc company.

  • How to cancle the previous apple ID and creat another one for the same ipad mini

    Please advise how to cancle the previous apple ID and creat another one for the same ipad mini.
    Thank you.

    You can log out of an account (you can't 'cancel' an account) by tapping on it in Settings > iTunes & App Store - any content that you downloaded with that account will remain tied to that account. You can then create a new account via the Create New Apple ID button on that screen. If you don't want to give credit card details then follow the instructions on this page when creating the new account : http://support.apple.com/kb/HT2534

  • I have keynotes in my ipad and iphone, do I need to buy another one for my mac

    have keynotes in my ipad and iphone, do I need to buy another one for my mac

    Yes. They are not interchangeable. Different hardware platforms and different operating systems.

  • Can you change a package to another one for free?

    I want to know if you can change a packa to a differnt one for free.  If not for free can you change it.

    You can upgrade for free, but you have to start a new contract at the time of upgrade.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • UK Delivery - How long was it for you guys?

    really didn't know where to put this topic, so sorry if it's in the wrong place.
    Basically just curious to know how long delivery normally is, I ordered a quad G5 yesterday or so, order status says it should be shipped by Jan 12th, but while completing the order it said delivery should take 5-7 days, 10 days at most etc.. but i am finding it hard to believe in this day and age and from such a company like Apple that Next Day delivery wasn't an option.
    Am i really going to have to wait a week for delivery?? bad enough having to wait a week for the building etc...? what length of time have you guys experienced from shipping to delivery?? i want my G5 now! :o
    NB- refers to UK orders

    Just as reference for those awaiting delivery, i'll just run through the various stages i experienced. Ordered 5th January, Powermac G5, Cinema Display and Ipod Nano with other various accessories.
    Estimated Shipping Date was 12th Jan.
    Actual Shipping Date was 9th Jan.
    The G5 was shipped via Kuhne & Nagel Spedition s.a r., the package was picked up from Cork, Ireland at 18:15. The remaining items were picked up by Flextronics c/o Express Cargo , i am unsure where it came from originally, but i assume it was these items that caused the slight delay. As all items need to accumulate in one place before being handed over to UPS or TNT.
    I called Apple yesterday (12th Jan) they had no extra information than that on the Tracking page, and said delivery was estimated for 17th Jan, but he said could come sooner, which it did, it arrived today (13th Jan).
    Early this morning, the Tracking page changed. All the items, except the PC, were under the Carrier name of FLEX POST & HUB UK.. this changed to APPLE EUROPE, MIDDLE EAST AND AFRICA, and new tracking numbers had been applied to ALL the items. After some googling i discovered the new numbers belonged to UPS.. a quick visit to their website turned up some results. They had revieved the packages yesterday, and had been sent out for delivery this morning...
    Packages recieved at 12:05 13th January. So for me build time was 3-4 days, and shipping was 3-4 days. All under the estimates. I think the ipod and the extras that resulted in the 1-2 delay, from what i've read apart from John Keith's experience, is that shipping usually takes no more than 3days after you get the shipping confirmation.
    All in all very happy, Apple's tracking page should display more and update more, a fair majority of the info i recieved was due to a lot of googling and trial and error. I've yet to open the pc and monitor so can't comment on the state, read some horror stories so am waiting with trepidation mixed with huge excitement!!!
    hope this is of some help

  • Ok here is a good one for you all

    So here is the problem.
    We use PPTP VPN for our Exe's at my company and most of them are using airbooks or power books now.
    They also use the ATT USB Mercury/ATT USB lighting cards for in emergency no network connection while traveling.
    10.5 - all works great no issues ... ATT cards VPN no issues
    10.6 - ATT cards work fine to get to the internet but as soon as you fire up the vpn connection and get connected to the vpn all traffic stops no internet and no intranet access. ( we send all traffic over the PPTP connections )
    Both are connected and with out errors .. sometimes if you wait 30 minutes it all starts working , disconnect and re try nada.
    I have upgraded firmware in the ATT cards , using the new 3Gwatcher application provided by sierra wireless and still nothing.
    The PPTP works fine form home wireless , hotels , hot-spots seems to be related to the att cards form all the troubleshooting I am doing
    Anyone have any thoughts - i did send a support ticket into sierra for some help to but I figured maybe you guys have seen this and no a fix or solution

    I have no expertise with VPN, but here are some links that may help you. Two of them are related to Cisco VPN which may or may not be relevant to you, but you did not mention whether you were using Cisco VPN.
    Mac OS X 10.6 (Snow Leopard) Built-in VPN Setup » Information Technology
    HDC >> Cisco VPN for Mac OS X 10.6
    Fix Cisco VPN in 10.6

  • This is going to be easy for you guys

    hello all !
    i'm working on simple createAccount page where login, email and other data are written to mySQL db thru dataProvider.
    here's the snippet from my code of create button:
    public String createAccount_action() {
                Object login=fieldLogin.getText();
                Object email=fieldEmail.getText();
                Object psw=fieldPsw.getPassword();
                membersDataProvider.cursorLast();
                membersDataProvider.setValue("members.login",login);
                membersDataProvider.setValue("members.email",email);
                membersDataProvider.setValue("members.psw",psw);
                membersDataProvider.commitChanges();
    return null;
    everything works fine except
    Object psw=fieldPsw.getPassword();where fieldPsw is an id of Password Field component
    i get NULL here
    any ideas ?
    thanks in advance !
    null

    ok i fixed it !
    sorry i'm bothering you guys with such a trifle!
    last night (actually it was dawning : / ) i was apparently too tired to think of virtual forms, i just forgot to add these fields to participate : /
    sorry again and thanks for feedback

  • Here's a different one for you...

    I have an original iphone which i have had very little, if any problems. I updated to the 2.0.2 software that came out recently and everything was once again going fine. Here's where it gets interesting.
    Two days ago, the bottom row of icons (phone, mail, safari, ipod) stopped responding. All of the other icons on both screen pages work fine. The "slide to unlock" works fine. I have noticed when I go to settings, the bottom icon doesn't respond in any screen either. Luckily, I can still use the phone through contacts and can still receive calls, but with no luck using the "end call" button.
    I've read several of the posts in these discussions and have tried the reset, hard reset, restore, reinstall of 2.0.2. I know I'm not crazy, these icons don't work! Anyone out there ever had this happen or have any suggestions?

    I would suggest an appointment at the Genius Bar and see what they can do for you.

  • I lost my iPod and I've been using the app find my iPhone. But when I would use it it would tell me, my iPod has been offline like (no wifi). Is there a way for you guys to turn it online?

    I lost my iPod it's almost been a week now , but I've been using find my iPhone to track it. Recently it showed that my IPod has been offline (wifi) now so I've been wondering if there's a way for Apple to turn it back online (wifi)

    - If you previously turned on FIndMyiPod on the iPod in Settings>iCloud and wifi is on and connected go to iCloud: Find My iPhone, sign in and go to FIndMyiPhone. If the iPod has been restored it will never show up.
    iCloud: Find My iPhone
    - You can also wipe/erase the iPod and have the iPod play a sound via iCloud.
    - If not shown, then you will have to use the old fashioned way, like if you lost a wallet or purse.
    - Change the passwords for all accounts used on the iPod and report to police
    - There is no way to prevent someone from restoring the iPod (it erases it) using it unless you had iOS 7 on the device. With iOS 7, one has to enter the Apple ID and password to restore the device.
    - Apple will do nothing without a court order                                                        
    Reporting a lost or stolen Apple product                                               
    - iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Here's a new one for you

    Been having nothing but problems with idvd 08 in the past couple of days. The old won't open problem. Did the usual suggested fixes including a new user account. Also did "Old Toad's" preference fix. Can now open idvd but when I go to an existing project and open it, I get the first page menus and nothing else so try to reload the movie into the project and it kicks it back out(??).
    Do I need to re-install idvd 08 and if so, what prefs etc do I delete?
    Also one other question . . . if I have a project that exceeds the 4.2 capacity, can I burn it on a dual layer using the dual layer setting to accommodate the size of the file?
    thanks in advance for any input

    so try to reload the movie into the project and it kicks it back out(??).
    Check to see if the movie you wish to import is supported by iDVD. This is from Help:
    _Video and image formats that work with iDVD_
    You can use these movie and graphic formats in iDVD:

    Most video or image files supported by QuickTime (see the list of unsupported QuickTime formats below)

    16:9 widescreen formats

    AAC, MP3, and AIFF audio files

    Any format from iMovie: DV, high-definition video (HDV), MPEG-2 SD, MPEG-2 SD, MPEG-4 SD, MPEG-4 HD, and AVCHD
    High definition video is converted to work with the format of your project. iDVD supports using 16:9 widescreen video; therefore, when your DVD plays on a DVD player that supports widescreen format, the footage appears in its original aspect ratio.
    The following video and image formats are not supported in iDVD:

    Copyrighted or protected videos.

    Movies saved in thousands of colors using the “none” compression setting in iMovie.

    48-bit color images (16 bits per color). To use source files in one of these formats in iDVD, save them in a supported format.

    Aurora uncompressed files. For best results, export Aurora clips as DV-format video before importing them into iDVD.

    QuickTime VR, MPEG-1 or MPEG-2, Flash, streaming or encrypted movies, or QuickTime spanned movies. You can’t add MPEG-1 or MPEG-2 files to an iDVD project because they don’t contain standard video tracks.

    QuickTime Fast Start movies. (Fast Start movies are intended for Internet playback.) When saving a QuickTime movie for use with iDVD, click the Options button in the QuickTime Export dialog and make sure that the “Prepare for Internet Streaming” checkbox is not selected.

  • Got a question for you guys...

    I just got a AMD 6400+ for my DKA790GX Platinum and my question is this...
    In EVEREST under CPU Type its calling it "dual core AMD athlon 64 X2 black edition". From what I understand the black edition is a special edition processor
    that comes in a all black box. the box is saying its a ADX6400CZBOX.
    why is EVEREST calling it a black edition??

    1) Go to file, select new playlist. Creat the playlaist.
    2) Download your music into iTunes.
    NOTE: CHECK 'Recently Added' before you download your music.
    If the select boxes has a check in them, turn it off by
    holding down the 'ctrl' key and selecting one of the
    checked boxes. This shold turn off all the checks.
    It would be better to clear 'Resently Add' of all
    previous downloads, but I don't know how to do that
    yet.
    3) under 'PLAYLIST' on the right, select 'Recently Add'.
    all of your song should show there with a check in the selection
    box.
    4)Hold the shift key and select the frist (selete records name),
    then the last recorded tune. All of the recordings shouls light
    up blue.
    5) While holding the 'shift' key, drag one of the records to your new
    playlist. All of the blue highlighted song will transfer to the new
    playlist.

Maybe you are looking for

  • Text in the document line item

    Hi, In COI, I am doing reclassification using document type. System has posting the documents correctly, but strange thing is in the document header text, it was giving some text by itself. Example of the actual text in the document header is as belo

  • Run Multiple SQL's in one Database and record there counts automatically.

    Hi , I have to run 33 Sql's in three databases seperately and then have to match there counts, manually if i do it takes 3+ hours, is there any way to automate this in Toad i.e all 33 Sql's run in different databases and in the end i get the result c

  • Mouselistener error

    I am getting this error G:\Java\Exam2\Prob01\Prob01.java:63: local variable label is accessed from within inner class; needs to be declared final                          label.setText("CounterClockwise"); ^ 1 error Tool completed with exit code 1 He

  • Taskjuggler from AUR does not install

    Hi List, I'm kind of trapped in a vicious circle - I want to use taskjuggler with Emacs Org-mode, but thats much easier with taskjuggler2. However, I cannot install taskjuggler2 from the AUR (only taskjuggler3), there are always errors (="Fehler" in

  • How do I turn off autofill

    When I go into email, my name and password are already in place. How do I disable this feature? Is it Autofill?