How to set the cursor to one point (x0, y0)

Hello
I work with swing and I have done a GUI.
In the GUI, I have some points. When I approach one point (x0, y0), I would like to set the cursor of the mouse to the exact position (x0, y0). But I can't find the class that can set the position of the cursor.
Could anyone help me, thanks.
danfei

Have a look at Robot-class, there's a method mouseMove.
Hope that helps.

Similar Messages

  • BC4J UIX How To set the cursor in a field

    Hi,
    when i display an bc4j uix edit form, i would like to set the cursor in a field and highlight the entry.
    how con i do that
    Thanks
    Achim

    Hi Adam,
    sorry but ist is not working. i get an errormessage "Object doesn't support this property or method".
    What is wrong?
    here my sourcecode
    <HTML>
    <HEAD>
    <TITLE>MBO Signon Page</TITLE>
    <uix:styleSheet/>
    </HEAD>
    <BODY onload="form1.username.focus(); form1.username.select()">
    <uix:pageLayout>
    <%-- some code here --%>
    <%-- Main page contents go here --%>
    <uix:contents>
    <uix:header text="Login to Mentoring Back Office" >
    <uix:styledText text="Enter your user name and your password to login." />
    </uix:header>
    <uix:spacer width="20" height="10" ></uix:spacer>
    <uix:form name="form1" method="POST" destination="login.jsp">
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
         <uix:styledText text="Indicates Required Field" />
         <uix:spacer width="1" height="20" ></uix:spacer>
         <uix:tableLayout cellSpacing="5" cellPadding="5" >
         <uix:rowLayout hAlign="left" >
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="User Name:" />
              <uix:textInput
    id="username"
    name="username"
    text="jonte"
    required="yes" >
    </uix:textInput>
         <uix:formValue name="username" valueBinding="username" />
    <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="left" width="25">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:styledText text="Password:" />
              <uix:textInput
    name="password"
    text="jonte"
    required="yes"
    columns="20"
    secret="true" >
    </uix:textInput>
         <uix:formValue name="password" valueBinding="password" />
         <uix:image source="/webapp/blaf/requiredicon_status.gif" />
    </uix:rowLayout>
         <uix:rowLayout hAlign="center">
         <uix:spacer width="40" height="1" ></uix:spacer>
         <uix:submitButton name="Login" text="Login" formName="form1" />
         <uix:resetButton text="Cancel" formName="from1" />
         </uix:rowLayout>
         </uix:tableLayout>
    </uix:form>
    </uix:contents>
    </uix:pageLayout>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources releasemode="Stateful" />
    Thanks
    Achim

  • How to set the cursor in a text box when the application starts?

    Hi. It's me again. Its seems to me that there isn't any Spanish speaker, so I reformulate my question in English. What I want is to place the cursor in the text box so that the user can enter the text. Could anybody help me? Thanks in advance. MamenFLASH$

    Hi. I have Flash 2004 Professional, as 2. Any idea of how can I do it 
    by means of Java Script or action script 2? Thanks in advance. 
    MamenFLASH$
    El 23/01/2010, a las 21:22, kglad escribió:
    >
    you can do that when your flash has focus.  (how you do it depends 
    on your as version).
    >
    and while flash can't set focus on itself, you may be able to use 
    javascript to set focus on your flash.
    >

  • How to set the cursor tool to select tool when opening acrobat XI 11.0

    I need the cursor tool to default to Select Tool and NOT Hand Tool when opening Acrobat XI 11.0

    Hi mkwillden,
    Once you select the 'Select tool' then any subsequent launches of the software should keep the 'Select tool' as default.
    If not then you can specify the registry setting here:
    HKEY_CURRENT_USER\Software\Adobe\Adobe Acrobat\11.0\Selection
    Change the data of aDefaultSelect to Select or Hand as required.
    Regards,
    Rave

  • JSplitPane problems : how to set the size of one component to be constant?

    I have a horizontal JSplitPane, the left side of which is occupied by a JTextArea and the right side by a JPanel, which will later contain a JList.
    my problem is:
    when resize I resize the window:
    1. on expanding: the right side of the JSplitPane increases in size ( hence the JPanel increases in size ), while the JTextarea remains the same.
    2. on contracting: the JTextArea keeps becoming smaller and until it nearly vanishes, and then the JPanel starts contracting.
    It does not matter what corner or what size of the JFrame I use to resize it: the result is the same.
    what do i do to reverse the effect but with the following difference:
    On resizing, the following happens:
    1. on expanding: the size of the JPanel remains the same, and the JTextArea keeps getting bigger
    2. on contracting: the size of the JTextArea remains the same, and the JPanel contracts UNTIL IT REACHES A MINIMUM WIDTH. After this width, the JTextArea starts contracting, UNTIL THIS TOO REACHES A MINIMUM SIZE (both height and width). After this limit, no more contraction is possible.
    My code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.text.*;
    class MultiEditClient extends JFrame
         public MultiEditClient( String title )
              super(title);
              addComponents();
              addMenu();
         protected void addComponents()
              this.setBounds( 100,100,      500,500 );
              JPanel panel = new JPanel();
              JLabel label = new JLabel( "The to-be status bar." );
              label.setFont( new Font( Font.SANS_SERIF , Font.PLAIN , 14 ) );
              label.setMinimumSize( label.getMaximumSize() );
              JTextArea textarea = new JTextArea();
              textarea.setPreferredSize( new Dimension(400,400) );
              textarea.setMinimumSize( textarea.getMaximumSize() );
              JScrollPane scrollForTextArea = new JScrollPane(textarea);
              JPanel anotherpanel = new JPanel();
              anotherpanel.add( new JButton("Sample Button") );
              JSplitPane splitPane = new JSplitPane( JSplitPane.HORIZONTAL_SPLIT, scrollForTextArea, anotherpanel );
              splitPane.setOneTouchExpandable(true);
              panel.setLayout( new BoxLayout(panel, BoxLayout.PAGE_AXIS ) );
              Box vBox = Box.createVerticalBox();
              Box hBox2 = Box.createHorizontalBox();
              hBox2.add( splitPane );
              vBox.add( hBox2 );
              vBox.add( Box.createVerticalStrut(5) );
              Box hBox = Box.createHorizontalBox();
              hBox.add( Box.createHorizontalStrut(5) );
              hBox.add( label );
              hBox.add( Box.createHorizontalGlue() );
              vBox.add( hBox );
              vBox.add( Box.createVerticalStrut(2) );
              panel.add( vBox );
              add( panel );
         protected void addMenu()
              JMenuBar menubar = new JMenuBar();
              JMenu session = new JMenu( "Session" );
              JMenuItem joinSession = new JMenuItem( "Join Session" );
              session.add( joinSession );
              menubar.add( session );
              this.setJMenuBar( menubar );
         public static void main( String args[] )
              MultiEditClient theFrame = new MultiEditClient( "MultiEdit Client" );
              theFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              theFrame.pack();
              theFrame.setVisible( true );
    }

    okay...
    I have a JFrame, that contains a JSplitPane with the splitter placed vertically so that it has a left side and a right side.
    In the left side a JTextArea is placed. In the right side a JPanel is placed, whic h will also contain a JList later.
    When I resize the frame along the height of the JFrame, the height of both the components (JTextArea and JPanel) increases - quite natural, no problems here.
    But when I resize the frame along the width I see the following behaviour:
    1. on expanding: the JTextArea retains its width, and the JPanel increases in width.
    2. on contracting: the JTextArea retains its width, and the JPanel contracts.
    after contracting to its minimum width, the JTextArea starts contracting.
    Desired behaviour: the JPanel maintains its width, no matter what. I only what the JTextArea to change in width.
    And after the JTextArea reaches a minimum width, the frame contracts no more ( this i can do by setting the frame's min size ).
    I hope I am more clear and less confusing this time :)
    thanks

  • Set the cursor in the middle in XYGraph

    hi how to set the cursor in the midde programmatically?
    need help plz?
    for labview 8.0

    Here's a simple example (LV 8.0) showing how you can center the cursor with a button press.
    Message Edited by altenbach on 06-18-2008 11:35 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    CenterCursor.png ‏13 KB
    CenterCursor.vi ‏22 KB

  • Sun ONE Studio 4 aka Forte: How to set the output path for classes ?

    Help !
    Beginner's question:
    Sun ONE Studio 4 aka Forte:
    How to set the output path for classes ?
    As default, the class files are created in the same directory as the
    sources.
    In opposite, both JBuilder and Together support that there is a tree
    with the sources and another tree with the classes.
    The first answer I got was "not possible with Forte, but just if you write your own "ANT Build script" !
    a) Please point me to a ready-to-use ANT script for this purpose, if such is available
    b) Is using ANT instead of the MAKE as comfortable ? Besides the separation of sourcecode and classes, I would like to keep everything else to be the same, i.e. I don�t want to edit the ANT file if I enlarge the project by directories or files.
    Tia
    Sincerely
    Rolf

    You can set S1S's options to place newly created .class files in a specific location.
    Identify the compiler that is being used - Open the S1S's Tools/Options window, expand Editing and select Java Sources. Note the Default Compiler value. (If it's one if the Ant options, you use Ant to specify this option, not S1S.)
    Open the S1S's Tools/Options window, expand Building/Compiler Types and select the appropriate compiler.
    The Properties tab of the compiler has the property Target, which sets the filesystem where the compiler output is directed. If you choose <not set>, the .class files are written to their source directory.
    When you set the Target, your change affects all classes that use this compiler.
    Very few options can't be set in S1S; the challenge is finding out where they're set!

  • Dose any one know how to set the MMS in the Belle?

    Hi Nokia and all,
    After updated to the Belle for my N8, the MMS a access point setting is missing. As I remember in Anna version, the MMS access point setting can be find in this way, menu -> Setting -> connectivity -> Settings -> Network destinations -> MMS. In there you can set the IP of the MMS etc.
    Dose any one know how to set the MMS in the Belle, please let me know as soon as possible, thanks a lot!
    Nokia N8
    059D145
    Solved!
    Go to Solution.

    @easydoweb
    This resource has probably not been updated to take account of Belle http://www.nokia.com/gb-en/support/troubleshooting/?action=singleFAQ&caseid=FA134387_en_US but can't you get your network provider to resend "Settings" SMS?
    Happy to have helped forum with a Support Ratio = 42.5

  • How to set the out point beyond 9.95 seconds???

    how to set the out point  in Motion 5 beyond 9.95 seconds???

    First you need to make sure your project is long enough then you can adjust the play range (in/out). To make sure the project is long enough:
    1. From the project properties (command-J) go to the Duration field and enter a new duration.
    2. Click on the down arrow icon to the right of the current time, there is an option to show the project duration. Once set to this you can double click the number and type in a new project duration. I'd recommend setting it back to show current time when done.
    3. Of course you can also change the duration of a project when it is first created, in the project browser.
    Once you're sure you have a long enough project you can adjust the in and out range.  You then use the zoom controls in the bottom of the timeline to show more of the timeline and adjust the play range as needed. There's lots more about project and play range duration adjustments in the documentation: http://help.apple.com/motion/mac/5.1/

  • In flex, How to set a value to one parameter, the parameter defined in a cffunction in a cfc file

    In flex, How to set a value to one parameter, the parameter
    defined in a cffunction in a cfc file, In the cffunction there are
    much cfargument, I want set a value to one of them, such as the
    cfc:
    <cffunction access="remote" name="myShow" output="false"
    returntype="struct">
    <cfargument name="ID" type="numeric" default=0>
    <cfargument name="GoodsID" type="string" default="">
    <cfargument name="DestTime" type="string" default="">
    <cfargument name="DestCount" type="numeric" default=1>
    How I set a value to only parameter one of them , such as set
    GoodsID when use mx:remoteObject.
    Thanks for your help

    Got maybe a solution for you, I have just tested it.
    So, the idea is to use intermediate variables. Imagine Var1 and Var2 variables that you refresh with your more or less complicated queries. Then what you can do is to refresh your final variable Var3 with a query using your intermediate variables. Here is an example for Oracle:
    select #Var1+#Var2 from dual
    This way you can make a chain of dependent variables: Var3 is using Var2 and Var2 is using Var1.
    Hope it helps.
    Shamil

  • Can set the cursor in next line when user inputted one record?table control

    For Dnypro Table control
    I just know when data check error, we can set the cursor to the error field of current line.
    Now user hope that after they inputted the data of one record, he enter the [ENTER], the cursor can be set to the next new line's first field.
    I tried to use such as
    [SET CURSOR FIELD 'WA_XXXX-XXXXX' LINES 5.].
    But if no any error , the cursor will be automatically setted to the field which setted at Cursor position in Dnypro's attribution
    Can it be realized?
    Thanks.

    try to use same procedure as when you program page down:
      DATA: ITAB_LINES LIKE SY-TABIX,
            FIRST_LINE LIKE SY-TABIX,
            J LIKE SY-TABIX.
      GET CURSOR FIELD CURSOR_FIELD.       "to see what Loop is selected
      DESCRIBE TABLE IRE05 LINES ITAB_LINES.
      RE05-LINES = ITAB_LINES.
        WHEN 'P+'.
    FIRST_LINE = RE05-TOP_LINE + LOOPLINE_IRE05.
    ->      FIRST_LINE = RE05-TOP_LINE + 1.
          J = RE05-LINES - LOOPLINE_IRE05 + 1.
          IF J LE 0.
            J = 1.
          ENDIF.
          IF FIRST_LINE LE J.
            RE05-TOP_LINE = FIRST_LINE.
          ELSE.
            RE05-TOP_LINE = J.
          ENDIF.
    Edited by: Andreas Mann on Feb 28, 2008 11:46 AM

  • How to set the default route on a RVS4000 to point to a gateway in the LAN

    Hi
    The dialog in the RVS4000 for static routes does not allow to set the default route to point to a gateway in the LAN. Clearly this is either a bug or a feature of the web-interface and not a restriction of the box, which runs some kind of linux. So my question is there a way around this problem rather then defining routes to n-class A networks to cover the internet? Like a terminal access to set the default route?
    Thanks and cheers
    Frank

    Hi David
    Thanks for your reply. I did already the first part and it seems that I presumed wrongly that the RVS4000 can be used as a layer 3 switch, instead it is only a 1-port gateway. Not that there is a technical limitation from the hardware or the OS of the box. It does layer 3 routing e.g. for its VLAN's. The only point to stop it from having the capability which I expect from something called router is to set its default route to the right gateway independant which port might be connected. The reason why I want a LAN port pointing to the gateway and do not use the WAN port without firewall is of course the VLAN capability of the LAN ports. The idea of the RVS is to bundle two nets, including the one where the gateway is on, and send it to a WAP4410N box, which nicely makes them wireless with different SSID's. Actually I have two ports connetced to the core network, if I am forced to have only the WAN port connected to the core, due to this artificial limitation, I would have to reconfigure a bit. Therefore I try to find an easier solution setting the route by "hand".
    Cheers Frank

  • How do I set the transition between access points would be fine?

    Hello everyone,
    We have an organization Wirless controller 2504 with 20 aironet access-point (700 series)
    Once I defined  all the access points I noticed that the transition between them is not working fine...
    I mean that clients can not walk around in our organization without having to connect to any access point separately.
    How do I set the transition between access points would be fine?
    Thanks a lot (:

    HI Omri,
    which software version you have on WLC ?
    Is the site survey done propely ?
    Remember: It is the client that decides when to roam and which AP to connect to based on what it perceives the signal to be.
    If your site survey design is perfect and still have problems while roaming then:
    Disable your lower data rates on the 2.4ghz and or 5ghz radio and your clients will roam better. Try to disable everything below 11mbps. and give that a try.May be old device will work in this case.
    Regards
    Dont forget to rate helpful posts

  • Could somebody teach me how to set the lastest iTunes so that it repeats just one of the numbers installed from the CD? I've alreadly tried it by clicking "control" and the bottom, but it doesn't work. Thank you.

    Could somebody teach me how to set the latest iTunes so that it repeats just one of the numbers installed from the CD?
    I've already given it a try by clicking "control" and the bottom item which means one item in Japanese, but it doesn't work.
    Thank you.

    You can access the repeat options if you right-click on the shuffle icon or if menus are enabled you can use
    Controls > Repeat > Off | All | One.
    Once the control is visible you can click it to switch between states as before. If the control is turned to off it disappears on the next track change. In contrast the shuffle control remains visible whenever it is appropriate. Hopefully the next release will fix this.
    The bottom one should do it.
    tt2

  • How do I set the cursor in the text response of a message box

    I am using TestStand 4.1.1. During testing I need to scan in some data from the operator.
    I am using a message popup with the text response box enabled. My problem is the cursor does not automatically appear in the text box at run time. I don't want to have to place the mouse in the box each time.
    Is there someway to set the cursor to automatically be in the text box.
    Regards,
    Don1.
    Solved!
    Go to Solution.

    Hi,
    You have to make the Response Box the active control. You will find the 'Active Control' control in the main tab of the Message Box setup properties window.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

Maybe you are looking for

  • IDOC related issue

    I have created an Z obj in WE30 with 3 segments on it, first one is mandatory segment and hierarchy 1, second one is hierarchy level 2 and 3rd segment at hierachy level 3 with parent segment as 2nd segment. I created a file in application server with

  • Crystal Report grouping issue

    I have a report with 2 groups.  I first group by Profile then Location with there being 1 Profile and 2 Locations that exist within that profile.  I have a subreport in the Location Group header that reports correctly with Location 1 on page 1 and Lo

  • Format Text in properties File

    I have a large amount of text for an element in the properties file that I'd like to format. I'm retrieving this value and displaying it in the tip of a panelLabelAndMessage ADF component. For example, in the properties file I have the following: dis

  • XML in OBIEE

    Hi, I have a problem with formats when i put two criterias in union. I would like to put different formats in columns. In this post i sent XML code which has two parts. First is for declaration of columns and the second is XML for UNION which stand i

  • Error cannot access property or method

    i downloaded the sample code and as per the instruction i download flex builder, flash debugger. then i downloaded the sqlite3. in that i created registrations.db file and as per changed the db variable in .cgi file, also added the developer key and