Creating a vibrating window - please help

I have a GUI made up of lots of panels and I am trying to make the widow vibrate for a second when a certain event occurs - apparently the robot class is meant to help - does any one know how to do this - I am very very desperate !!!!!!!!!!!!!!
Thanx.

er... the Robot class wasn't "meant" for this kinda thing, it was meant to be a GUI test automation tool.
You can use Robot to move a window around. The steps are: getLocationOnScreen of the toplevel Window/Frame/JFrame .. get it's width/height .. get it's Insets. The title bar of the window is measured by the insets of the toplevel window. That means you can calculate the center point of the title bar. What you do is use Robot to move the mouse to the titlebar centerpoint, PRESS mouse button one, and then do whatever move sequence you wish to do, then RELEASE mouse button one.
HOWEVER .. that will, in an unfriendly manner, move the mouse pointer. Users (I, anyway) tend to get annoyed when their mouse moves around on them and they didn't move it. That's why I always disliked OpenLook (Sun's old GUI toolkit for NeWS & X11) because they liked to "Warp" the pointer so it was "conveniently" above the OK button of a dialog, but that was just confusing.
A better way, as the other poster said, is to use setLocation ...
- David

Similar Messages

  • Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help.. Thanks in Advance

    Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help..
    Thanks in Advance

    This is not a Java problem, this is a WEBBOT problem.
    I suggest that you research the topic in your FrontPage help files.
    Yes, we do know how to solve this problem using ordinary HTML and JSP. The sample code that you've posted implies that you are looking for an extremely different solution. To put it another way, it looks like you're logging onto the Federal Aviation Administration's forums and asking them how to go from Chicago to New York by train.
    But in any case, if you can't find the information in FrontPage, I'm 100% certain that if you went to www.microsoft.com and searched for FrontPage and downloads, and skipped the results that actually want you to download FrontPage, you'll get some sample code.

  • How to install windows 7 using usb as the bootcamp doesnot have the option of creating a bootable usb. please help

    I have an intel based mac with 10.6.8 mac os x. How to install windows 7 using usb as the bootcamp doesnot have the option of creating a bootable usb. please help

    Welcome to Apple Support Communities
    You can install Windows from a USB drive in one of these computers:
    - MacBook Pro with Retina display.
    - Mac mini (Mid 2010 and newer).
    - MacBook Air.
    - iMac (Late 2012).
    If you don't have any of these Macs, you can't install Windows through a USB drive. Instead, buy Windows on a DVD. Follow Apple's steps > http://support.apple.com/MANUALS/1000/MA1519/en_US/Boot_Camp_Install-Setup_10.6. pdf

  • I got some serious problems installing flash player on windows, please help?

    i got windows 7 but using a safari browser cause none of the other browsers work on my computer, and i have flash player 11 installed but thats just way to outdatet since most of the websites i use require a newer version. so i was wondering if anyone knew how to fix this little problem of mine, i have tried all the things on adobes support site but nothing seems to help, please help me ?  

    Suggest you do the following.
    Download the uninstaller from here: http://forums.adobe.com/thread/909550
    Choose to Save and save it somewhere you can find it easily again. Do not choose Run.
    Disable any AV shields like file scanners which kick into action as soon as you uninstall/install anything. If you're not sure how to do that, consult this list for instructions: Disable Antivirus
    Run the uninstaller to remove Flash from your system. Be aware that it also uninstalls it from any other browsers you might be using such as Firefox, Opera etc., but not from Google Chrome.
    Reboot, disable AV shields again and then go to the same site once more to download the installer: http://forums.adobe.com/thread/909550
    When you see the prompt this time, choose Run to install immediately.
    If you use Firefox, Opera or any other browser where Flash is a plugin, download the installer for those. Flash in Google Chrome is embedded and will auto-update, so no need to worry about that one.
    N.B. If you use Windows Live Messenger or any app which uses Flash, disable it before you run both the uninstaller and the installer.
    Message was edited by: Xircal

  • Jdk failed to create file in destination(please help!)

    Alright Im trying to dl jdk for my private server to compile and when i try to dl jdk it comes up with
    jdk failed to create file in destination
    This is getting frusterating please help!

    bamfs wrote:
    Alright Im trying to dl jdk for my private server to compile and when i try to dl jdk it comes up with
    jdk failed to create file in destination What version of the JDK are you trying to download and install?
    And is it the offline install?
    What reports this error, is it the browser or the JDK install program?

  • Creating Business Rules programitically, please help

    hi'
    I am creating Rules programmatically, I am able to create rules by using AdvancedExpression but I am unable to set the value as "any" because if I use "AdvancedExpression" it creates "Advanced Test" where value is "fixed" and can not be customized,
    this is easily done by Rule author, but programmatically I am not getting it . I have already checked the tutorial "http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28965/sdk.htm"
    but there is no much info provided.
    please help me how to do this.
    Presently I am doing this-->
    Pattern p1 = r.getPatternTable().add();
    p1.setFactType("TsalesRequest");
    p1.setVariable("TsalesRequest");
    p1.setTestForm(Pattern.TEST_FORM_ADVANCED);
    AdvancedExpression adv = p1.getAdvancedExpression();
    adv.setValue("TsalesRequest.totalprice >=100" && "TsalesRequest.tenantid ==1");
    I simply want to make a standard test with
    TsalesRequest is a TsalesRequest and
    TsalesRequest.totalprice >= 100 and value = "any"
    thanks
    Yatan

    Please advice.
    thanks
    Yatan

  • Won't make sounds or vibrate. PLEASE HELP

    I unplugged my iphone from my computer and tried to call someone. It wouldn't make any sound; no ringing tone, nothing. So i tried to play a song, it acted like it was playing but no sound came out. i checked all the settings and nothing is turned off or muted. It won't vibrate either. i restored it three times both from the iphone and from the computer. I've restarted it countless times to no avail. i've plugged headphones, computer, and music dock in but nothing makes a sound. PLEASE HELP!

    Basics from the manual are restart, reset, restore from backup, restore as new.  If these steps fail to fix the issue, you'll need to go to Apple for evaluation.

  • I'm trying to transfer photos from ipad to my lap top (windows) please help!!!

    I want to transfer photos from my i pad onto my laptop (windows), so I can update the ipad software...when ii update it says there is  problem with the back up and if I continue I will lose all contents, so want to transfer the photos before they are lost!!! Please help how do I do this - blonde and dumb!!!

    Transfer photos from iPad to computer
    http://support.apple.com/kb/HT4083

  • Strange Lag Switching From Finder Windows, Please Help

    I can only explain this with a picture. I got a new kingston ssd 128Gb.
    There's some kind of lag when I switch from the left side categories on a finder window, check it out:
    Anyone with the same problem?
    Please help.
    Thanks

    It appears that your registration has been approved at SH. Go ahead and post.  I hope this helps.
    Editing to add link: http://spywarehammer.com/simplemachinesforum/index.php/topic,15703.0.html
    ThinkPad: T530 / X1 Gen 2 / Helix - Yoga: Tablet 2 Pro (Win) / Yoga 3 Pro
    If you find a post helpful and it answers your question, please click the "Accept As Solution" button.
    Lenovo Advocate ~ I am not employed by Lenovo or Microsoft. I am a volunteer.
    Microsoft MVP - Consumer Security
    SpywareHammer

  • Ipod not being detected by windows. please help!!!

    I have an iPod 30 gb. Serial No- 8L647801V9K
    Its about two years old.
    All of a sudden one fine day, it stopped showing up on my the computer. Neither does itunes detect it nor does internet explorer. A bubble shows up saying the usb device attached has malfunctioned. It doesnt even charge.
    I tried resetting it(centre + Menu)
    then i thought my usb cable was bad.
    i bought another one and the same problem continues.
    i even tried the diagnostic option in itunes to detect ipod.
    the ipods completely dysfunctional when connected via either of my two cables.
    the 'do not disconnect sign' doesnt come and neither does the battery charging one.
    there's nothing wrong with my computer or my usb because i tried my ipod with two other computers as well.
    But funny enough, the ipod charges with the adaptor.
    im totally stumped
    i hope i manage to get this issue sorted out.
    i feel lost without being able to update my ipod or sync my playlists.
    please help me
    thanks

    Promi wrote:
    I have an iPod 30 gb.
    Its about two years old.
    So then it is a Classic model and not a 5th generation model?
    Promi wrote:
    there's nothing wrong with my computer or my usb because i tried my ipod with two other computers as well.
    AND??? The iPod did or did not work with the other two computers?
    Patrick

  • HT201363 My account is asking for my security questions, but the answer to one is never right. Also, I can't receive reset information because the emergency email ends with .con, a mistake I missed when creating my account. Please help me I'm getting very

    Please help, my account will be locked. The safety email is s*****@gmail.con. It ends with .con. IT ENDS WITH .con. Since the last time you people didn't take that into account I decided to make it very obvious. Also, I can't change the email because I have to answer the security questions. Which I can't do because out of 4 choices, none are correct, and I can't get a reset email because the email doesn't exist and will never exist. I'm getting irritated because I also can't get proper support, mostly because I connot call, and the support I received didn't solve my problem because they didn't bother to read the whole problem. This is ruining my Apple experience, please help, or help me find someone who can.

    The other option is the ExpressLane at https://expresslane.apple.com and then iTunes, iTunes Store, Password and Security Questions, Forgotten Security Questions and then you have choices for making contact but those are still limited to calls or rescue email.  So this comes back to the same problem if you cannot call or receive an email.

  • Archive function isn't creating smaller files. PLEASE HELP ME!

    Hello. This is my first time posting here. I'm very frustrated.
    When I try to make an archive of a file, the file remains the same size as before I archived it. I've checked permissions on the documents I've tried to archive, and there's no issues there. For example, when I archive a 4.3 MB pdf, it remains that large after archiving. Same thing with a 28 kb word document.
    It's driving me crazy. Please help!

    Doesn't it compress the file, so it takes up less space?
    Picture it this way, cinch a rope around a chunk of Uranium, the end product is going to be bigger, cinch a rope around a cotton ball & the end result will be smaller!
    Basically how it works is a file with a through z in it will be called out one a, one b, one c, one d, and so on... to one z. A file with 26 As in it can be called out 26 As.
    It's real use these days is not so much on files, but being able to include all files in a Folder, including the folder, in one file, for sending or backups.

  • Creating a score set - please help- I'm going crazy

    OK- deep breath ...........I'm trying to create a score set for 4 instruments. I read the manual, then tried everything on p 765........... I started first with the tracks in the Arrange area.- with and without rubber bands - and because this didn't work, I scrubbed this and tried to simply set up thew score in the Score Editor.
    It didn't work. I want to be able to see the music for 4 instruments - at one go -in the score editor. Is this possible ?
    Please someone save my sanity and give me an blow- by- blow account how to achieve this. I've been on this for hours and can't see the wood for the trees now so am going out for a breath of fresh air.
    Kay.

    You can look at the bottom of the arrange page.. But for 4 tracks I would open a score editor window by itself.. The score section is complex and not intuitive to say the least..
    In the score editor, click on the 6th from the left box. it looks like a page of text (when you highlite it will turn blue).. That shows you the whole score, in a tradional page format.. If you still see only one track, double click somewhere other than the track, (space in between). Page will toggle between showing one track/ and all tracks..
    To make life easier if you have many tracks to display = create a 'score set'. Label it, (band etc). reduce the size, 50 - 65% whatever. Then go under File in Logic, page set up.. Select the 90 turn, so now the pages longer side to side. You can see more measures at a time..
    You may want to have several score sets, to help with editing. One of everything. another to show just the piano and guitar, etc. This will make it easier to edit, copy paste between staves etc.
    The score editor is very powerful, if you take the time to figure it out, but documentation is vague

  • How to properly create path art object, please help

    Hello there,
    I have a vector of AIRealPoint , each point is actual X, Y coordinate of the stroke. I need to create path art object out of this vector.
    I'm  somehow confused how to correctly construct segments array form the given AIRealPoints, my goal is to have single path object where count of segments is equal to count of AIrealPoints first and last points are anchors. SDK documenation is not really helping here...
    Please, take a look at the code snippet, it seems I'm doing something wrong with in and out params of segment , in any case I fail to create simple path object ....
    ASErr CretaeVectorPathTest2(vector<AIRealPoint>& stroke)
    AIArtHandle artHandle;
    ASErr result = kNoErr;
    try {
      AIRealPoint start;
      long lngStrokeLength = stroke.size()-1;
      AIArtHandle lineHandle = NULL;
      AIErr error = sAIArt->NewArt( kPathArt, kPlaceAboveAll, NULL, &lineHandle );
      if ( error ) throw( error );
      error = sAIPath->SetPathSegmentCount( lineHandle, lngStrokeLength );
      if ( error ) throw( error );
      AIPathSegment *segment = new AIPathSegment[lngStrokeLength];
      // This is a first point of the path
      segment[0].p.h = stroke[0].h;
      segment[0].p.v = stroke[0].v;
      segment[0].in = segment[0].out = segment[0].p;
      segment[0].corner = true;
      for(inti=1 ;i< lngStrokeLength-1;i++)
       segment[i].p.h = stroke[i].h ;
       segment[i].p.v = stroke[i].h ;
       // NOT GOOD!!!
       segment[i].in.h  = stroke[i-1].h ;
       segment[i].in.v  = stroke[i-1].v ;
       segment[i].out.h  = stroke[i+1].h;
       segment[i].out.v  = stroke[i+1].v;
       segment[i].corner = false;
    // NOT GOOD!!!
      // This is a last point of the path
      segment[lngStrokeLength].p.h = stroke[lngStrokeLength].h;
      segment[lngStrokeLength].p.v = stroke[lngStrokeLength].v;
      segment[lngStrokeLength].in = segment[lngStrokeLength].out = segment[lngStrokeLength].p;
      segment[lngStrokeLength].corner = true;
      error = sAIPath->SetPathSegments( lineHandle, 0, lngStrokeLength, segment );
      if ( error ) throw( error );
      error = sAIPath->SetPathClosed( lineHandle, false );
      if ( error ) throw( error );
    // apply color width etc.
      AIPathStyle style;
      error = sAIPathStyle->GetPathStyle( lineHandle, &style );
      if ( error ) throw( error );
      style.strokePaint = true;
      style.stroke.color.kind = kFourColor;
      style.stroke.color.c.f.cyan = 0;
      style.stroke.color.c.f.magenta = 0;
      style.stroke.color.c.f.yellow = 0;
      style.stroke.color.c.f.black = 100;
      style.stroke.width = 0.75;
      style.stroke.dash.length = 0;
      delete[] segment;
      error = sAIPathStyle->SetPathStyle( lineHandle, &style );
      if ( error ) throw( error );
    catch (ai::Error& ex) {
      result = ex;
    return result;
    Thanks,
    David

    As for beziers, Illustrator uses cubic beziers which are fairly straight forward (thank goodness!). Here's a lift from Wikipedia's Bezier entry:
    This image is pretty good at demonstrating how AI's bezier segments work. In the animation, the moving point has two lines sticking off it, ending with two points. If P3 was an AISegment, the left-hand blue point would be in and the right-hand point would be out. If we were to translate the state of the animation in its last frame into AI code, you'd basically have something like this:
    AISegment segment1, segment2;
    segment1.p = p0;
    segment1.in = p0;
    segment1.out = p1;
    segment2.in = p2;
    segment2.p = p3;
    segment.out = p3;
    Note that this would imply any line that continues beyond either end point isn't a smooth beizer curve (i.e. the curve is limited to between these points). That effectively makes them corner points (I think). Also, the line formed by linking in & p or out & p is the tangent to the curve at p, which I think you can make out from from the animation.
    Another way to get a feel for this is to use the pen tool to draw a line with a few segments. If you then pick the sub-select tool (white selection arrow, not black selection arrow) and select individual points on the curve, you'll see when you do that two 'anchors' jut out from each point. Those are the in & out for that point on the curve.
    Its all a little confusing because technically, a bezier segment between p & q would be p, p.out, q.in & q. (four vertices). To avoid repeating information, and keep it simple for non-beziers, AI's segments are still the vertices. So if you wanted to make the nth segment a beizer, you'd need n & n+1 from AI's path, and you'd modify two-thirds of each AISegment (p, out from n & in, p from n+1).
    I hope that helps, but if you have any further questions, feel free to ask! If you need to do anything fancy with beziers, there are some helpful utilites in AIRealBezier.h.

  • The FOD schema error our while creating the database. Please help.

    I couldn't run the schema for the FOD demo application. when I follow the steps, I get some exception during the database create part.
    From the File menu, choose Open. Open the workspace c:\temp\Infrastructure\infrastructure.jws.
    ( I edited the build.properties with correct values)
    In the MasterBuildScript project, select the build.xml file. In the Structure window, right-click the refreshSchema target and choose Run Target "refreshSchema."
    refreshSchema:
    [sql] Feb 13, 2008 4:44:54 PM oracle.jdbc.driver.OracleDriver registerMBeans
    [sql] SEVERE: Found Oracle Apps MBeanServer but the getMBeanServer method threw an exception.
    [sql] java.lang.reflect.InvocationTargetException
    [sql] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [sql] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [sql] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [sql] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    [sql] at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:274)
    [sql] at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:224)
    [sql] at java.security.AccessController.doPrivileged(Native Method)
    [sql] at oracle.jdbc.driver.OracleDriver.<clinit>(OracleDriver.java:220)
    [sql] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [sql] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [sql] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [sql] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    [sql] at java.lang.Class.newInstance0(Class.java:350)
    [sql] at java.lang.Class.newInstance(Class.java:303)
    [sql] at org.apache.tools.ant.taskdefs.JDBCTask.getDriver(JDBCTask.java:364)
    [sql] at org.apache.tools.ant.taskdefs.JDBCTask.getConnection(JDBCTask.java:304)
    [sql] at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:346)
    [sql] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [sql] at org.apache.tools.ant.Task.perform(Task.java:364)
    [sql] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [sql] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [sql] at org.apache.tools.ant.Task.perform(Task.java:364)
    [sql] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [sql] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [sql] at org.apache.tools.ant.Task.perform(Task.java:364)
    [sql] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    [sql] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [sql] at org.apache.tools.ant.Task.perform(Task.java:364)
    [sql] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
    [sql] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [sql] at org.apache.tools.ant.Task.perform(Task.java:364)
    [sql] at org.apache.tools.ant.Target.execute(Target.java:341)
    [sql] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [sql] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [sql] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
    [sql] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [sql] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
    [sql] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [sql] at org.apache.tools.ant.Task.perform(Task.java:364)
    [sql] at org.apache.tools.ant.Target.execute(Target.java:341)
    [sql] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [sql] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [sql] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [sql] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
    [sql] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [sql] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [sql] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [sql] at org.apache.tools.ant.Main.start(Main.java:150)
    [sql] at org.apache.tools.ant.Main.main(Main.java:240)
    [sql] Caused by: java.lang.ClassNotFoundException: oracle.as.jmx.framework.standardmbeans.spi.JMXFrameworkProviderImpl
    [sql] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    [sql] at java.security.AccessController.doPrivileged(Native Method)
    [sql] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    [sql] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    [sql] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    [sql] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    [sql] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    [sql] at java.lang.Class.forName0(Native Method)
    [sql] at java.lang.Class.forName(Class.java:242)
    [sql] at oracle.as.jmx.framework.PortableMBeanFactory.init(PortableMBeanFactory.java:1687)
    [sql] at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:156)
    [sql] at oracle.as.jmx.framework.PortableMBeanFactory.<init>(PortableMBeanFactory.java:164)
    [sql] ... 49 more
    [sql] Executing file: C:\temp\Infrastructure\DBSchema\Scripts\SQLRunner56601127.sql
    [sql] 11 of 11 SQL statements executed successfully

    Hi,
    I see the same exceptios, but the schema installs successfully. Have a look at the end of the log window. It should state that the schema was created successfully.
    Frank

Maybe you are looking for