I REALLY NEED to update my graphics - please

Please, someone help me.
The blue shape does not update when you scroll
the panel.
It happens because i am using variable to set the shape
coordinates.
i need to make it possible (update the shapes using variables).
understood ???
thanks.
here's the simplified code to execute:
import java.awt.*;
import java.awt.event.*;
public class SamS extends Frame
public SamS()
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent ev)
dispose();
System.exit(0);
ScrollPane sp = new ScrollPane();
Board pan = new Board();
sp.add(pan);
add(sp);
setSize(700,500);
setVisible(true);
public class Board extends Panel
int x=20;
int y=20;
public Board()
super();
setLayout(null);
setSize(2400,2400);
setBackground(Color.white);
public void paint(Graphics g)
g.setColor(Color.black);
g.fillRect(10,10,100,100);
g.setColor(Color.red);
g.fillRect(410,410,100,200);
g.setColor(Color.orange);
g.fillRect(490,210,300,100);
g.setColor(Color.blue);
g.fillRect(x+100,y+100,150,150);
x=x+100;
y=y+100;
public void update(Graphics g)
paint(g);
public static void main(String args[])
new SamS();

Try this:
sp.setViewportView(pan);
<tg>

Similar Messages

  • HT4623 i am trying to download normal applications on my iphone 2g and i really need to update and it is frustrating please i need help

    i am trying to download normal applications on my iphone 2g and i really need to update and it is frustrating please i need help

    Help with what?
    You did not ask a question.
    The original iphone can go to 3.1.3

  • What is the latest update available for Mac OSX 10.5.8 that will allow me to get the latest update for iTunes.  I really need to update my iPhone and CAN'T!!  GRRRR!!!

    What is the latest update available for Mac OSX 10.5.8 that will allow me to get the latest update for iTunes.  I really need to update my iPhone and CAN'T!!  GRRRR!!!

    Minimally you need Snow Leopard or greater:
    Upgrade Paths to Snow Leopard, Lion, and/or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99. To access the App Store you must have Snow Leopard 10.6.6 or later installed.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard — Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service — this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion — System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) — Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) —
                 Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) — Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) — Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) — Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) — Model Identifier 3,1 or later
             7. Xserve (Early 2009) — Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
    Are my applications compatible?
             See App Compatibility Table — RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.

  • PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    http://kb.mozillazine.org/Recovering_deleted_mail_accounts

  • I need help updating the graphic drivers for my laptop.

    Recently purchasd a new game and I am having some issues with the graphics. Every post I have read suggests it is an issue between HP and amd. I keep trying and seem to be going backwards. I would love to actually talk to someone from hp but they haven their number very well. I have tried every combination between hp and amd and I am obviously missing something. I dont have much hair left to pull out.

    Hi there ,  Thank you for visiting the HP Support Forums and Welcome! This is a great site to get answers and ask questions.  I read your post on the HP Support Forums and you had mentioned that you are looking for help Updating the Graphics Drivers on your HP Pavilion dv7t-6c00 CTO Notebook PC.  I have the actual drivers page for your specific HP Pavilion dv7t-6c00 CTO. It has the AMD Graphic Driver on this page. You could also update the drivers a couple other ways.  1. Using the HP Support Assistant2. Going into the Device Manager, Right click on the AMD Graphic and doing an update.  You had also mentioned that you wanted to actually talk to someone from HP. Please use the following link to create yourself a case number, then call and it may help speed up the call process:
    Step 1. Open link: www.hp.com/contacthp/Step 2. Enter Product number or select to auto detect
    Step 3. Scroll down to "Still need help? Complete the form to select your contact options"
    Step 4. Scroll down and click on: HP contact options - click on Get phone number
    Case number and phone number appear.
    They will be happy to assist you immediately. Let me know how everything goes.  Have a great day!

  • RSS Bug getting closer to a fix... I really need your help!!  Please?

    Background: Cannot get SUBSCRIBE button to shoot me into iTunes/podcasts like it did before in v06.
    Situation: (iWeb08) and http://www.threeboysproductions.com is a godaddy domain buy. http://web.mac.com/captmench is the actual address.
    LONG AND SHORT: I really need to get rid of the www.threeboysetc from anywhere in iWeb but I can't seem to find a way.
    Here's why:
    Clicking on SUBSCRIBE from my Zachary's Film page generates this address:
    http://www.threeboysproductions.com/Site/Zachary_Films/rss.xml
    which, if you click on it you'll get the homepage. Why? Not sure but anything past the www.threeboyspetc/ just sends you to the homepage.
    so
    change www.tbp.com to actual title and you get a nice RSS feed:
    http://web.mac.com/captmench/Site/Zachary_Films/rss.xml
    HOWEVER --
    Take any of those feeds and you'll get the main page again because they all say www.threeboysproductions.com.
    For Example this from the RSS feed:
    http://www.threeboysproductions.com/Site/ZacharyFilms/Entries/2007/8/25_FirstDinner.html
    Sends you back to homepage
    change it from www.threeboysproductions... and:
    http://web.mac.com/captmench/Site/ZacharyFilms/Entries/2007/8/25_FirstDinner.html
    It works fine!!
    The xml file generated by iWeb confirms this:
    <?xml version="1.0" encoding="UTF-8"?>
    <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:iweb="http://www.apple.com/iweb" version="2.0">
    <channel>
    <title>Filming Zachary</title>
    <link>http://www.threeboysproductions.com/Site/ZacharyFilms/ZacharyFilms.html</link>
    <description>Zachary’s never known any other camera but the DVX... so I’ve been able to get some very nice stuff of him all along.</description>
    <generator>iWeb 2.0.1</generator>
    <ttl>60</ttl>
    <itunes:explicit>no</itunes:explicit>
    <itunes:author>ThreeBoys Productions</itunes:author>
    <itunes:owner>
    <itunes:name>ThreeBoys Productions</itunes:name>
    </itunes:owner>
    AND --
    <description><a href="http://www.threeboysproductions.com/Site/Media/ElmoShirt.mov"><img src="http://www.threeboysproductions.com/Site/ZacharyFilms/Media/ElmoShirt1.png" style="float:left; padding-right:10px; padding-bottom:10px; width:192px; height:108px;"/></a>Zachary’s grandmother sent him an Elmo shirt... This is what happened when he opened it up.</description>
    <enclosure url="http://www.threeboysproductions.com/Site/Media/ElmoShirt.mov" length="26452526" type="video/quicktime"/>
    <itunes:explicit>no</itunes:explicit>
    <itunes:duration>00:04:18</itunes:duration>
    Please help me get this squared away.
    Thanks,
    CaptM

    Ok... part of this might have come from the migration to 08. I had to trash my old site and rebuilt from ground up (using the same dirt, I think) and maybe I ended up keeping some of the old information.
    look at the forward link:
    http://web.mac.com/captmench/iWeb/Site/ThreeBoys.html/Site/Zachary_Films/rss.xml
    The part iWeb/Site/ThreeBoys.html must be from your old version , so you may want to look at your forward config at your domain host.
    You may want to talk to your domain host, because the forward frame is generated by them.

  • I can not update to OSI 5. My computer keeps telling me I have timed out and to check settings and try aagin. I really need to update my software.

    I need to update my phone. Do I need to reset the whole phone? If I hit reset will I beable to restore my old information?

    For iTunes to get iOS 5.0.1 you need to turn OFF computer FireWall and AntiVirus.

  • I am getting this mandatory webOS system update.  do I really need to update this?

    I am getting e-mails stateing the I need to Mandatory webOS system update.  I do not use HP and do not use cloud, do I need to update this?

    WebOS is the operating system for some mobile devices including late model Palms and some HP items. If you're not using any of these it's irrelevant to you.

  • I have iphone 3g ios 4.2.1 i want to install viber but need ios update 4.3 please solve me.

    i have iphone 3g ios 4.2.1 i want to install viber but need ios update 4.3 p

    There is no solution available other than selling it and putting the money towards a new iPhone.
    (77645)

  • HT4623 I need help updated my iphone, please help

    My need help updating my iphone, I went through the steps to update and now it shows connect to itunes, what do I need to do next.?

    Rajan Gupta wrote:
    ...it is continuously showing an error.
    See here  >  http://support.apple.com/kb/TS3424
    Also see this discussion.
    https://discussions.apple.com/message/21189708

  • I really need help, it's urgent, PLEASE!

    I got a Blackberry for Christmas, and of course I immediately tried to find out about applications. So, I installed "App World". When I started putting themes, applications, etc.. I received a message saying that I would exceed the space limit and that if that happened, I would have to pay € 0.50 per day. I did not realize this and have not given much attention, and I even deleted the message.This week I realized that I've lost more than € 20 in less than a month becauseof this! What can I do to STOP this?? PLEASE HELP ME! Thank you for your attention
    Solved!
    Go to Solution.

    lauraprovi wrote:
    What can I do to STOP this?? PLEASE HELP ME! Thank you for your attention
    The answer lies in your own hand... stop downloading piles of apps and themes.
    Those you've downloaded that consume mass quantities of data... delete them or at least close or exit those apps so they are not using data when closed.
    If you need more specific answer, please be specific about which apps you've down loaded and installed.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I would like to use icloud on my mac which has snow leopard, so do I really need to update to snow lion, is it worth it and if so, how do I do it?

    Ok, so how do I get icloud on this snow leapord imac? Is it worth updating to lion, and if so how do I do it?

    If you need iCloud, you need Lion. You buy it from the App Store for $29.99.
    If you are running Snow Leopard, your system already meets the minimum specfications for Lion. However, the 2 GB minimum memory requirement is generally considered inadequate. 4 GB is a more realistic minimum; 8 GB for Lion to be comfortable.
    How to upgrade to OS X Lion: http://www.apple.com/macosx/how-to-buy/

  • My 7th gen ipod nano wil not show up on my laptop when I plug it in and neither will my brothers new ipad,they don't come up in my computher either and I've installed the new itunes twice but still no change,I really need to get this working,Please help

    I need help

    Thanks for a reply
    The cable that I'm using came with my 5th gen nano. The 6th gen Ipod shows that it's connected but the computer doesn't see it, so I don't think that it's the cable.
    I did try this before when looking at the troubleshooting guide and nothing happens. It just resets and then the Ipod screen tells me that it's connected to the computer. It still is unseen by Itunes and no where to be found in my computer.
    I don't have another computer to plug it into at the moment but I may be able to visit a friend that owns a decent PC in a few days. If that doesn't work out I will be getting a new lap top in a week and I'm hoping that it will work on that, but it won't be a Mac. So, let's say it works when I plug it into one of these computers, should I reset my Ipod from there or is there something else I should do?

  • I really need help on this one, please!

    So I'm trying to download terraria for mac, but my computer keeps telling me this can not be opened because it comes from an unidentified developer. Please help me!

    Johask wrote:
    But, there's no allow applications downloaded from: "Anywhere" button there.
    Should be......
    Having said that you can still right click and then press and hold 'Option' whilst clicking Open and gives a pass for that time.

  • Need to update software - Help please? :/

    So, I have a Nokia C3-00. My current software details are:
    V 03.61
    05-08-10
    RM-614
    (c) Nokia
    I know that this version is way out of date because I bought it years ago, and have never updated it.
    I think the current version is now 7.20 or something like that. Don't quote me on it
    Anyways, when I run the Software Update through OVI Suite, it just says that my current software 
    is up to date. I read somewhere that this phone is supposed to have WLAN settings, and mine has
    no such thing. So I can't check for updates via my phone, considering I cannot access the internet.
    Is there any way that I can download the newest version through my PC and update my phone manually?
    I don't know if I'm missing something here, and I just sound stupid right now. But I would appreciate all the help I can get. Thank you.

    In fact the latest version is v08.70
    ..but since the Nokia Suite doesn't show any availability and you don't have internet access thru' the phone there is nothing that you can do yourself.. You may ask your local Nokia care which can be found thru' this link whether they can help you.
    BTW, Availability of update depends on Region / Product Code and also, for Network locked devices, update is possible only after an approval from the Operator ..

Maybe you are looking for

  • How to Tell if the Song is iTunes Plus before purchase

    Sometimes I hear a song on the Internet radio and want to make a purchase via the iTunes Store. There is no search function in the actual iTunes Plus part of the store is there? If I search for the song I want to download at the regular store I used

  • Custom field not appearing in Japanese language in some pages of SRM portal

    Hi, We have a requirement to add a customer field(a check box) to the shopping cart. To do this we have enhanced a Webdynpro component along with the desired changes in the shopping cart header table. The problem that we are facing is that, this cust

  • ORA-01438 occurred during "Explain plan"!

    Here is my query: SELECT rtrim(T1.col_id) Field0 , count(T2.col_id) Field2 , count(T3.col_id) Field3 FROM SS.Table1 T1 LEFT JOIN SS.Table2 T2 ON (rtrim(T1.col_id) = rtrim(T2.col_id)) LEFT JOIN SS.Table3 T3 ON (rtrim(T1.col_id) = rtrim(T2.col_id)) GRO

  • Ease of rotating and cropping images in CS6

    There is much I like about the new crop: Rotating the image instead of the box is SO much easier and the straighten option is a great time saver. But in one instance, I'm finding cropping in CS6 to be harder: Cropping images that are not correctly or

  • HT5012 Is going on with my ISO

    Just Download update ISO 7.0.4 i'm starting to get a lot crashes I will be working on something. And then my screen go black an Start over? . Know  I missed two updates 7.0.2 an 7.0.3 . I don't want you to changing my program like the way ti is on th