Problems with clearing frame and repainting

Hi, I'm trying to get to grips with Java 2D and as a little exercise I've set myself, i want to display a string and move it across the frame when the mouse is clicked.
Now, it will paint the string in its new position, but the string in the old position is still there. However if I maximize/de-maximise the frame the old string displayed now disappears.
Any ideas what might be happening here? Might it just be because of my operating system (XP), or have i missed something from my code? I would be thankful for any help.

http://www.java2s.com/ExampleCode/CatalogExampleCode.htm

Similar Messages

  • Problems with .ARW files and auto toning

    problems with .ARW files and auto toning
    let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
    now that I have a Sony A7R the problem is more serious
    Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
    but when I upload them to lightroom, they come out near black.
    allow me to explain
    lets say I import 100 images
    i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
    as the images import i see a preview in the thumbnail which looks fine.
    i double click on one to enlarge it, hence leave grid view.
    for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
    one by one as it inspects each image, if it was a DRO image it makes it too dark.
    to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
    how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
    i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
    but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
    now i have to tweak each file or find a profile for it which is added work.
    any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
    there are 2 phases...one is when it originally imports and they look fine
    second is scanning each image and applying some kind of toning which darkens it too much.
    thanks for the help

    sorry thats the auto reply message from yahoo email.
    i've disabled it now
    thing is, there is no DRO jpg to download from the camera
    its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
    but then sadly reverts it to no DRO settings.
    because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
    so in reality there is no point in using DRO because when i upload it lightroom removes it.
    is there a way to tell lightroom to preserve the jpg preview as it first sees it.
    its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
    what do i need to do to prevent lightroom from ruining the image? if it was good in the first place.

  • Why is Apple so bad at providing customers with information on what the problem with email is and what they are doing to fix it?

    Why is apple not providing information on what the problem withe email is and what they are doing to fix, along with a time frame for fixing the problem.

    It was because the problem was major.  If you do not know tech, you should know that a two day outage usually indicates some type of virus, hack, or a bad software load that they had to unravel.  The common way to solve that is to rebuild servers and put back into service.  That takes time.
    Apple did not want to admit this problem.  My guess at this stange was that they loaded new software that might be associated with the new IOS and it crashed.  To reveal this would be to cast into doubt their future revenue.
    Either way.  Run do not walk away from Icloud products and services.  Apple has demonstrated they can not be a business partner.

  • Problems with dropped frames in FCP 4.5 Log & Capture

    Thanks for the advice on my previous post regarding sound problems - those are now sorted, but I am having problems with dropped frames in Log and Capture. I am using FCP 4.5 with OS X 10.4.10 on a Powermac G4. CPU 867 mhz dual processor. L2 Cache 256 kb, L3 cache 1 mb. Memory 1g. Bus speed 133hz. I am capturing from a Canon XM1 via Firewire. The scratch disk is a 500gb Seagate FreeAgent USB 2.0, 7200rpm.
    Basically, the video and audio are fine while playing back in Log and Capture and I can control the device, but any attempt to capture, whether Capture Now or Clip result in a very jerky picture and aborts with dropped frames after a few seconds. The sound is ok for the few seconds before it aborts. There do not appear to be any problems with the timecode.
    My capture preset is DV Pal 48hz.
    Any advice or pointers gratefully received.
    Thanks, Ally

    Well quite. I have just tried it in the internal hard drive and it works fine now. I am going to have to capture everything to my small hard drive and move it across to the external. Then, when I have finished I am going to bang my head against the wall and buy an external HDD with Firewire.
    Thanks,
    Ally

  • Problems with still frames blurring in Final Cut Express....

    I have had problems with still frames blurring. I've discovered it's related to the green line above the time line on the sequence bar. I can't find the name of the bar but it's red if you need rendering. There are green lines and when the scrubber hits the line the frame goes blurry.
    I'm guessing it's related to another previous attempt at adding motion to the still. My question, I think, is how to eliminate the green lines to the regular blue?
    jb

    If there are any colored bars above your video other than the normal grey/light blue then you need to render the sequence out by hitting Option-R.

  • DVCPRO HD footage problems with Quicktime 10 and MacBook Pro

    I am trying to open DVCPRO HD footage in Quicktime 10 on my computer and just get black screen with no video. Cannot get these files to play yet can get other ones to play, just not the DVCPRO HD footage shot with Panasonic P2 cards. I can play the same files in Quicktime 10 on other computers with Snow Lion and on my tower with Lion. These will just not work on  my MacBook Pro 10.7.5 Everything is up to date. Can anybody trouble shoot this for me? HELP!

    I have the same model as you with the same upgrades (8GB RAM, high-res screen) and began to experience similar problems around the same time as you. And like you, I managed to work around the problem with gfxCardStatus for awhile. It was less than ideal though, since my email client, for example, uses the discrete graphics card. After a week or two, the problem got worse and my computer became virtually unusable. The screen would start to flicker at the log-in prompt, forcing me to reboot again. I could only make it to my desktop 1 time out of 10, if that. The Apple Hardware Test (both regular and extended) revealed no problems. I removed some software that I had installed the day before the problem started on the off chance that was the cause, but still it continued. I also tried to boot with a Linux LiveCD to verify that it was, in fact, a hardware issue and not software related, but never managed.
    Finally, I brought the machine into my local Apple reseller (there are no Apple Stores where I live) for repairs. It was easy enough to demonstrate the issue, and they ended up replacing the motherboard, since that's the only way to replace the discrete graphics card. The turnaround time was about a week. All covered under the standard warranty (I don't have AppleCare). I've had my computer back for a couple of days now, and it's been running smoothly. No problems with the screen, and I feel confident enough to remove gfxCardStatus.
    I hope you've managed to solve your problem by now. Even if your computer passes the Genius Bar hardware diagnostic tool, surely you should be able to demonstrate the issue to the technician and they'll see something is clearly wrong.

  • Problem with both user and cmos password

    I have problem with my user and cmos password, can formating clear the passward with remove the cmos battary.

    It depends on the model. Formatting will not touch the BIOS or power on passwords but will take away the Windows user password and allow you to have a different one, but will kill all the data on the machine. Removing the CMOS battery might clear the BIOS password and power on password, but on most current laptops even that will not help. The BIOS data is on a chip that holds its contents even when all power is removed.

  • [K8N NEO3-F] Problem with USB keyboard and PS2 mouse after upgrading BIOS

    Hello everyone!
    I have upgraded BIOS from 1.1 to 1.4... I have Sempron 2600 (64bit) so BIOS v.1.1 did not recognise it.
    The motherboard works, but after upgrading I have a small problem with my keyboard and mouse.
    When I use USB keyboard my PS2 mouse doesn't work. When I connect PS2 keyboard mouse works!!!
    Can you tell me what's wrong?                   
    Thanks, bartull@           
    PS. Does BIOS v.1.3 recognise Sempron 64bit? Can you give me a link to it?

    I think that the problem may have been caused by flashing either with liveupdate or with winflash.  I had the problem when i used winflash correctly (shutting down all programs, checking all the boxes to clear bootblock and cmos) but had usb keyboard connected during flash.  My suggestion is to reflash with floppy to last bios version that worked using only ps2 mouse and keyboard with the following instructions:
    DOS floppy flash shall be performed with :
    awfl833d.exe w7030nms.180 /py /sn /wb /cc /cd /cp /f /e
    (Replace biosfilename with appropriate version for Neo1/neo2 etc , switches remain the same )
    After flash is complete :
    TURN OFF PSU (don't restart) wait 15 seconds
    Turn on again , press the power button .
    Enter BIOS and load optimized defaults (NO OTHER CHANGES) , save + exit
    Boot the system again with the floppy in the drive to let the DMI pool build and update itself .
    If that works, then reflash to the bios you tried before with the same procedure.  Once you have stable system with ps2 keyboard and mouse working, re-enter bios and enable usb and keyboard support as a lot of bios' have it disabled by default for some strange reason.
    Good luck.

  • Problems with ListViews Drag and Drop

    I'm surprised that there isn't an Active X control that can do this more
    easily? Would
    be curious to find out if there is - although we aren't really embracing the
    use of
    them within Forte because it locks you into the Microsoft arena.
    ---------------------- Forwarded by Peggy Lynn Adrian/AM/LLY on 02/03/98 01:33
    PM ---------------------------
    "Stokesbary, Michael" <[email protected]> on 02/03/98 12:19:52 PM
    Please respond to "Stokesbary, Michael" <[email protected]>
    To: "'[email protected]'" <[email protected]>
    cc:
    Subject: Problems with ListViews Drag and Drop
    I am just curious as to other people's experiences with the ListView
    widget when elements in it are set to be draggable. In particular, I am
    currently trying to design an interface that looks a lot like Windows
    Explorer where a TreeView resides on the left side of the window and a
    ListView resides on the right side. Upon double clicking on the
    ListView, if the current node that was clicked on was a folder, then the
    TreeView expands this folder and the contents are then displayed in the
    ListView, otherwise, it was a file and it is brought up in Microsoft
    Word. All this works great if I don't have the elements in the ListView
    widget set to be draggable. If they are set to be draggable, then I am
    finding that the DoubleClick event seems to get registered twice along
    with the ObjectDrop event. This is not good because if I double click
    and the current node is a folder, then it will expand this folder in the
    TreeView, display the contents in the ListView, grab the node that is
    now displayed where that node used to be displayed and run the events
    for that as well. What this means, is that if this is a file, then Word
    is just launched and no big deal. Unfortunately, if this happens to be
    another directory, then the previous directory is dropped into this
    current directory and a recursive copy gets performed, giving me one
    heck of a deep directory tree for that folder.
    Has anybody else seen this, or am I the only lucky one to experience.
    If need be, I do have this exported in a .pex file if anybody needs to
    look at it more closely.
    Thanks in advance.
    Michael Stokesbary
    Software Engineer
    GTE Government Systems Corporation
    tel: (650) 966-2975
    e-mail: [email protected]

    here is the required code....
    private static class TreeDragGestureListener implements DragGestureListener {
         public void dragGestureRecognized(DragGestureEvent dragGestureEvent) {
         // Can only drag leafs
         JTree tree = (JTree) dragGestureEvent.getComponent();
         TreePath path = tree.getSelectionPath();
         if (path == null) {
              // Nothing selected, nothing to drag
              System.out.println("Nothing selected - beep");
              tree.getToolkit().beep();
         } else {
              DefaultMutableTreeNode selection = (DefaultMutableTreeNode) path
                   .getLastPathComponent();
              if (selection.isLeaf()) {
              TransferableTreeNode node = new TransferableTreeNode(
                   selection);
              dragGestureEvent.startDrag(DragSource.DefaultCopyDrop,
                   node, new MyDragSourceListener());
              } else {
              System.out.println("Not a leaf - beep");
              tree.getToolkit().beep();
    }

  • Problems with Customer Service AND unexplained charges!

    I've been with Verizon for I-don't-know-how-many years, and through the years you are bound to have a few problems here and there but some of the problems are just ridiculous! It's also the same reocurring problem!!!!!!!!!!!!!!!! I was with Alltel first, before it was bought out by Verizon. The years I was with Alltel, I didn't have near as many problems. It seems EVERY time I do the smallest change or something to my phone or bill, I get a ridiculous amount of charges that I was NOT aware of, nor told about... EVEN IF I ask "So this isn't going to change my bill, or there will not be any unexpected/unexplained charges that I don't know about?"... BUT not matter how many times I ask... and NO matter how many times I am told "no"... there always is. For example.... last year, I updated and signed a new 2 year contract and purchased the first Driod. Before, my 30 day warranty was up, I was having problems with my Driod, and decided to send it in and get a new one. Before I did this.. I called customer service to make sure there would be no interuption in my bill, and there wouldn't be any unexpect charges, and there would be no difference in anything. I was told there was not, and once I recieved my new phone, just send it in and nothing would be changed. Of course, when I get my bill.. I see I was charged $500 for the new phone. It was explained to me that my credit card was reimbursed (which I never check that card, because I never used it expect to purchase the phone) and that I was recharged for the new phone, since it was a new phone. So I had to fork out the $500 (on top of my bill) and then wait months to get the $100 rebate card. Months after that, I "assumed liablity of my line" because I was on a plan with my family. I decided to have my own line, so I "assumed liability." I was not told that when I did that, I "renewed" my contract date. So I just added 6 more months to my 2 year contract. Was NOT told about that! Then again...... I was recently having problems with my Driod (the screen went black and would not come back on.) I had to turn on an OLD motorola razor, so I would not be without a phone for two days while I was waiting on my phone to come in. As soon as my phone came in, I had my Droid turned back on. I recieved my bill recently, and my bill was $200 over what it normally should be.... so I called in... apparently, when I had my phone replaced, they dropped off my data package and when I recieved my replacement driod, they never put it back on. So I was being charged for alllll my data usage... again I was NOT told about this. I wasn't even aware that they had dropped off my data package, and when/where did they get the authority to do that??? These are just a FEW of the problems that I have had.................................
    Does anyone have these reoccuring problems!?

    I understand that my bill can be viewed online, and I do view it fairly regularly, so if there are any unexplained charges, I can call Verizon asap. The problem does not come from me not understanding my bill, but from customer service. I have been with Verizon for a very long time, and it is a continuing problem. Where did Verizon get the 'OK' to drop my data package off my plan? Who authorized that?
    After calling Verizon and trying to find out the problem, the gentleman told me that when I activated on old phone while I was waiting on my new Droid to arrive, my data package was dropped off and I "should" have been told about that. When I reactiviated my new Droid, I "should" have called and had them restart my data package. I was not aware that when you activate an old phone that data plan is taken off your plan. In all my years of having cell phones, I never make two years with one phone. I have always, at one point, had to turn on an old phone, and my data package has NEVER changed. Why would I have my data package dropped and why would I have to call Verizon to have it restarted. I would never know to do that unless I was TOLD that my data packaged HAD to be re-added when I recieved my new phone, but I was never told of that.
    All of that is beside the point, the point is, Verizon was never given the authorization to change my plan. Never. My bill was taken care of and readjusted, and I am thankful for that. It does not change the fact it is always a hassle with Verizon Customer Service and I am always the one having to PROVE that I am not at fault, or that I was NEVER told of certian things. EVERY TIME I HAVE CALLED CUSTOMER SERVICE, I AM TOLD "I'M SORRY, THEY SHOULD HAVE TOLD YOU THAT."
    "they should" does not help my bill with the extra armount of charges.

  • Problems with dropped calls and no reception on Samsung Continuum

    My mother and I both purchased a Samsung Continuum in late March 2011, and have experienced the same problems with the phone.  The device drops at least 2-3 calls per day, often on the same conversation; we have not found that location or time of day makes a difference.  The phone freezes up frequently, even if no apps are running in the background.  We lose our 3G network reception frequently, and cannot access our texts, emails, or the internet.  The screen saver kicks in even when we are actively dialing a number, or typing in a text message.  The overall performance of the phone is also poor, and it is quite slow much of the time.
    We have raised this issue several times with a representative at one of the Verizon stores, but he states that he can find no problem with the phone, and that these issues may not be covered under our insurance plan.  None of my friends with non-Samsung phones are having the same problems with phone reception and performance.  I am aggravated enough with these issues that I am considering reactivating my old Blackberry, which worked like a charm.
    I am not upset that my phone has not been updated to Android 2.2.  I just want the phone to perform as stated, and not fail at its primary function:  making and receiving phone calls.  I am not certain if these problems originate with the phone, Verizon, or Samsung, nor do I care.  I just want to resolve these issues as soon as possible, or I will have to look at other alternatives.
    Thank you.

    If this doesn't work...now what??? I have a useless $400 plus piece of unreliable junk. My Motorola Razor was ions more reliable than this phone...very, very sad but true.
    What carrier were you using with the Razor? AT&T? Same area?
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

  • Problems with Mail, Safari and iTunes after updating to 10.5.6

    Hi all,
    after installing 10.5.6 I have problems with Mail, Safari and iTunes.
    The time to open mails, websides and iTunes store is increasing dramatically since the update. If I open a webside parallel with Safari and Firefox, Safari needs minimum 15 times longer to open the complete side. Mails containing HTML-code also needs a long time to be opened. Tha same Problem with iTunes store. Connecting to the Store costs at least 30 - 40 seconds. And unfortunately for every iTunes store side I open. Its terrible
    Any idea or workaroung to solve that problem?
    Regards
    Michael

    First, run Disk Utility and repair permissions and then restart.
    I installed the 10.5.6 Combo update. Sometimes things get "lost in the translation" when you use Software Update depending on your installation. Perhaps you can download 10.5.6 Combo from the website and install it from your desktop.

  • Problems with the richTextEditor and quotes

    Hello
    I'm having problems with quote chars and the richText
    control's htmlText. When users enter quotes into the richTextEditor
    control. The quotes breaks the HTML text, meaning it's no longer
    well formatted. Is there an escape char that I need to use. Or do I
    need to force some kind of refresh on the control prior to using
    the htmlText string?

    I have been using RTE in a content management system and
    found a need to replace non-standard quote characters with proper
    UTF-8 character counterparts. Curly quotes in particular are
    problematic. Use a replace function to substitute non-standard for
    standard characters.

  • Problems with itunes 8 and ipod shuffle gen 2.

    Problems with itunes 8 and ipod shuffle gen 2.
    I recently upgraded from itunes 7 to itunes 8 on my windows XP PC. That's when i had issues syncing my 2nd gen shuffle.
    When i try to drag songs directly on it, itunes says i can't
    I made a playlist and use auto fill. But when I remove it from the dock, it's either not updated, or the new songs are at the bottom of the playlist when they are supposed to be up higher. I end up having to hit auto fill twice to make it sync correctly.
    Computer Specs
    Windows XP SP3
    384MB of Ram (works really good)
    USB 1.1 connection
    Pentium 4 clocked at 1.285 GHZ
    IPOD Shuffle Specs
    2nd Generation
    1GB (964MB)
    Version 1.0.4
    unchecked options: open itunes when ipod is attached, Sync only checked songs, convert higher bit rate songs to 128kbps AAC, Enable sound check, Limit MAX volume, enable disk use
    All those are NOT checked. Sometimes i enable disk use for seeing the IPOD_Control folder, but either way it still messes up.
    Itunes Specs:
    Version 8.1.1.10

    This is a well-known issue. Apple changed the internal file names used with iTunes 8, which makes the ordering on 2nd generation Shuffles behave differently. There is no good workaround, apart from moving the files with a hand-crafted AppleScript program.
    Apple has been silent on the issue, so nobody knows if we'll ever have a fix for it or not.

  • I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid co

    I have upgraded Apple Aperture from version 2 to version 3 and I'm having a problem with the "Highlights and Shadows" adjustment. According to the user's manual, I should have access to an advanced disclosure triangle which would allow me to adjust mid contrast, colour, radius, high tonal width and low tonal width.
    If anyone has any suggestions as to how to access this advanced section, I'd be most grateful.

    Hi David-
    The advanced adjustments in the Highlights & Shadows tool were combined into the "Mid Contrast" slider in Aperture 3.3 and later. If you have any images in your library that were processed in a version of Aperture before 3.3, there will be an Upgrade button in the Highlights & Shadows tool in the upper right, and the controls you asked about under the Advanced section. Clicking the Upgrade button will re-render the photo using the new version of Highlights & Shadows, and the Advanced section will be replaced with the new Mid Contrast slider. With the new version from 3.3 you probably don't need the Advanced slider, but if you want to use the older version you can download it from this page:
    http://www.apertureexpert.com/tips/2012/6/12/reclaim-the-legacy-highlights-shado ws-adjustment-in-aperture.html

Maybe you are looking for

  • Schedule background jobs at OS level.....

    Hi All, Scheduling Background Jobs at SAP Level is a very simple task. Is there any way to schedule background jobs at OS level? Please lemme ASAP.... Thanks Rhishabh

  • Can't restart ipod classic.

    When I plugged my iPod classic into my Mac this morning to update my newest songs, it said "Battery very low." I suppose that could be, but it would be unusual. I'm pretty religious about keeping my iPods charged. It's been charging for a couple of h

  • How to use structure in ABAP program

    I developing a report in smartforms but i want some fields to be display on the report but unable to find the relvent table as the field is show in structure.i can not find the actual table . is there any specfic way to find the table .or is there an

  • TS3212 i down loaded the update and now it wont open says im missing this file msvcr80 dll

    i down loaded the update and now it wont open says im missing this file msvcr80 dll

  • Rebate arrangement

    Hi, How can i configure a rebate arrangement to have 2 separate G/L accounts upon posting thru MEB4? Currently, the only account being reflected is the Purchase Rebates. i want to have it broken down into 2 separate G/L accounts, say, Purchase Rebate