Need solution for my tutorial :( can help?

Write a program which puts up this 200 X 200 window:
this is the picture
http://upload3.postimage.org/250054/photo_hosting.html][img]http://upload3.postimage.org/250054/untitled.jpg
When you click any button (not just ?Shake Box?), it will ?shake the box? and randomize all the single-letter buttons again.     
The random button must be selected by choosing one of the letters from this string: "ABCDEFGHIJKLMNOPQRSTUVWXYZAEIOUYAEIOUY" (Yes, note that there are more vowels than consonants.)
i managed to make the window with random letters but whenever i click on it
i dont know how to make it change again the letters. I using the actionlistener as well.
How to make the window shake?
Edited by: marufai on Sep 24, 2007 1:56 PM

DrLaszloJamf wrote:
hunter9000 wrote:
Start googling for swing, animation, timer, and concurrency tutorials.Do you think he's really after some kind of groovy shaking animation?That's what his description sounds like! Until he describes what he's trying to do in more detail, I'll take him at face value :)

Similar Messages

  • I need solutions for the following pls help

    1) what is the difference between doPost() and doGet()
    2) what is difference between sendRedirect() and forward()
    3) can we call destroy() in servlet class
    4) advantages and disadvantages of Hidden Form fields,URLRewritting,Cookies
    5) can we write a constructor for a servlet class

    1) in get request parameters are sent as part of request URL and its size is limited to some houndreds of KB (can't remember this limit) in case of post data is sent within request body. So in servlet you can have seaparate handling for get and post methods. I most cases you can create single routine like processRequest and call it from doGet and doPost
    2) Send redirect sends request to browser to redirect to different URL. Then browser redirects and user can see new URL (its done by browser), forward is used to move request processing to other servlet or JSP in SAME container. Client knows nothing and URL in browser does not change. It is typical approach used when implementing MVC approach. Eg. server gets request and process it eg. query data from database and puts result as request attribute (not parameter) then servlet forwards rerquest to JSP which is responsible for display (view).
    3) this is a public method of servlet so of course you can call it as any other visible method, but it is intended to let you make some cleansing when container is going to remove servlet.
    4) You shoud find some article on it, too large topic. Generally: url rewriting will work if cookies are enabled or disabled, when you use cookies for session id storage it won't work if cookies are disabled on client side. I can't see good reason to use hidden form fields when you can user URL rewriting.
    5) Of course you can but it won't be used by servlet container. Servlt's init method is the one you should use for initialization tasks.

  • I just bought a new iMac and am having troubles downloading creative cloud installer.  Its coming up with error 214 - I can't find any solutions for this.  Can anyone help me?  Im on mac OS 10.9.4

    I just bought a new iMac and am having troubles downloading creative cloud installer.  Its coming up with error 214 - I can't find any solutions for this.  Can anyone help me?  Im on mac OS 10.9.4

    Meg81 error 214 indicates a download data validation error.  This means that the update you downloaded became corrupted likely during the download process.  I would recommend utilizing the suggestions listed in Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html to attempt to improve the stability of your Internet connection.
    You can also find information on how to review your download logs which may provide additional information regarding the failure of the download.

  • I need to send my macbook pro in for servicing. Can help instruct how to reload my creative suite master collection that I bought online?

    I need to send my macbook pro in for servicing. Can help instruct how to reload my creative suite master collection that I bought online?

    Download CS6 products
    Mylenium

  • My friend set up my itunes account and they have forgotten the secret question and i need it for something on itunes HELP!!!

    my friend set up my itunes account and they have forgotten the secret question and i need it for something on itunes HELP!!!

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

  • Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.

    Ever since the last update, My iTunes continues to quit unexpectedly. It will open for one second and then close. Anyone have a solution for this. Please help.
    I've tried my best to troubleshoot. . . opening in safe mode nothing seems to work.
    In the problem report, this is the error that stood out:
    Crashed Thread:  8  Dispatch queue: com.apple.iad.iadidmanager
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000090

    Hi there navicin79,
    You may find the troubleshooting steps in the articles below helpful. The first thing I would try is reinstalling iTunes as outlined in the first article.
    Troubleshooting iTunes installation on Mac OS X
    http://support.apple.com/kb/ht2311
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    -Griff W. 

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • I have a second coppy of cs6 design and web premium. Its only for mac and I need it for pc. Can i swap its platform?

    I have a second coppy of cs6 design and web premium. Its only for mac and I need it for pc. Can i swap its platform?

    From Adobe: "If you have an older version of a product, you must order an upgrade instead of a swap." Because you have a CS6 suite your only option may be to subscribe to Creative Cloud in order to get current cross-platform versions of all their applications. Check here for further info: Order product | Platform, language swap

  • Hi. my laptop was reformatted recently, and my itunes there erased. i created a new one but the problem is it doesn't sync with my ipod anymore. what is the solution for this? can someone give me a tip? will really appreciate. thanks

    hi. my laptop was reformatted recently, and my itunes there erased. i created a new one but the problem is it doesn't sync with my ipod anymore. what is the solution for this? can someone give me a tip? will really appreciate. thanks

    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • Hi! I'm in the middle of updating the softwear and its not moved and it's been over half an hour. Will it load as I need it for work! Please help!!

    Hi! I'm in the middle of updating the softwear and its not moved and it's been over half an hour. Will it load as I need it for work! Please help!

    hold down the home/sleep button together until you see the apple logo and then releaswe.

  • Need Documents for HRDBI ..Can any one pls help ..

    Dear Friends,
    we are implementing DBI HR in our company, I am interested to learn about DBI,Can anyone pls send some document realted to DBI HR (Setups) ..
    with regards
    Swpana

    Pl see if MOS Doc 291602.1 (HR DBI : Frequently Asked Questions) can help
    Documentation can be found at http://www.oracle.com/technology/documentation/applications.html
    HTH
    Srini

  • Need solution for iMac 27 inch accidentally smashed badly.

    Smashed up Apple iMac 27 inch ( Late 2013 slim ) which fell from a table and had its screen completely busted up. The iMac is still fully functional but the screen was cracked badly and it looks terrible. The aluminum back panel was also badly bend during the fall. Whats the solution now?

    An Apple retail store or independent service provider can obtain the parts, however it will be a very costly repair. They will need to replace the entire aluminum enclosure and the display, which means they will need to carefully and safely break the adhesive bond between the display and enclosure, then remove the remaining parts including the logic board, power supply, hard drive, camera, mounting hardware, stand, etc. and transfer them to the new enclosure.
    If you have homeowners or renters insurance I suggest checking with your insurance company to see whether they can help. If you used a credit card to purchase the iMac check to see whether there are any provisions that cover this type of damage. Some credit cards extend warranties and offer other nice perks like accidental damage protection.
    While your iMac is up and running I strongly urge you to make a backup of all your data. I suggest the same for any computer user, but after an event like this that has caused significant damage it becomes especially important.
    Good luck with your efforts to restore your iMac.

  • Need advice for free app to help MS sufferers

    Good afternoon all
    I have just registered on the forum to ask one questions and thank you in advance for taking the time to read it !
    I have been doing some voluntary work to help MS sufferers track their food intake in order to isolate triggers for symptoms in the hope of improving their quality of life.
    Basically some users have been using crude excel spreadsheets through documents to go and transfering the data manually and my mission is to save some time in that process.
    Ideally I would like Combo Boxes on the Documents to Go spreadsheets although they are unsupported.
    Therefore I would like some help to find an alternative solution for a very basic data entry system which is offline and can be transferred to our Access analysis database periodically. I understand there are live equivalents which use the mobile internet connection to hit an access database stored somewhere else, although because of data plan costs and the relative simplicity of the data being entered we would ideally like an offline system.
    There are only 10 columns for data entry, 2 of which need to combo box / Id concept.
    Any ideas?
    Thank you!
    Damian

    Hello,
    maybe you can look at task management applications.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Need Solutions for these Errors

    <b>Hello Group !
        How are you people there.Iam very much thank full to you people for your constant support.
    I need solution to these errors:</b>
         1.SID missing.
         2.Idocs Missing or No Idocs arrived from source
            System.
         3.Errors in the source system
         4.Missing messages at transfer rules or
           Update rules.
         5.Data sent but not received.
         6.Errors in the source system.
        Have a nice week end
        Vijay

    Hi,
    1. Missing SIDS : Mostly occurs due to missing master data or if error records are parked and not loaded susequently, or if Master data is not loaded before loading Transaction data. You need to fix these situations.
    2. Missing Idocs -Canbe due to idocs getting stuck, rfc connection failures, bad idocs, partner profies missing or deactivated. need to correct these errors on the source side.
    3.Source system errors - Jobs on source system failed or are slow.idoc errors. Source system crashing. Problems in generic extractions. Problems with update jobs. Data not getting posted to Delta queues. Data not coming through correctly after DS enhancement. Data posting errors to infostructures are some of the errors you'll face on the source system side.
    4. Missing messages again can be due to jobs being slow, processes being killed, or warning messages. Need to treat the warning messages or reset the job.
    5. Can be due to IDOC errors. Goto SM58 and push data packets from there on the source system side or due to IDOC errors.
    6. Same as 3.
    Cheers,
    Kedar

Maybe you are looking for

  • Unable to dowload Adobe Photoshop

    I am getting the following error message, "The file archive part of Adobe Photoshop CS6 is missing. You need all parts in the same folder in order to extract Adobe Photoshop CS6. Please download all parts." I already archived the file but apparently

  • BT connection fail while connecting to Pc

    Hi fren, i hv nokia 6275 handset and haveing Reliance connection as operator.whrn my phone its new its working fine..and i am useing the same as a modem my connectivity via bluetooth..its working nicely 2-3 month after some time i am nt able to user

  • In privacy settings-photos all are GREYED over and set to 'ON'. How can i change this?

    I have just downloaded the app 'Instacollage' and really want to use it but I can not add photos. It gives me the message 'This app does not have access to your photos or video. Enable access  in privacy settings' So naturally, I went to SETTINGS>PRI

  • Making a alert box

    is there any way to make a allert box in a jframe or normal window after clicking a button (i can do the button) searched google and found nothing

  • How to call 1 function from1 system into another function of another system

    tell me the solution....... Moderator message : Not enough re-search before posting. Thread locked. Edited by: Vinod Kumar on Jun 13, 2011 2:08 PM