Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Is it possible to place the mouse cursor arrow behind a certain Node ?

  1. #1
    Member
    Join Date
    Apr 2024
    Posts
    34
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Is it possible to place the mouse cursor arrow behind a certain Node ?

    Hello, everybody.

    I have created the Java program to solve the following exercise:


    (Geometry: inside a circle?)

    Write a program that draws a fixed circle centered
    at (100, 60) with radius 50.

    Whenever the mouse is moved, display a message
    indicating whether the mouse point is inside the
    circle at the mouse point or
    outside of it, as shown in Figure


    The program I've created is working well.

    I'm using the Text class to present the position of the mouse (x and y) and also the message saying if the mouse point is inside the circle or not.

    I've already improved my own program so that the message is always presented entirely visible inside the pane.

    There are some situations in which the mouse icon (arrow) gets in top of the message being presented.

    And when that happens the mouse icon (arrow) doesn't alllow the user to read the entire message.

    I already know that one possible solution is to change the Font in the Text object, to increase the size of the letters.

    So, this brings me to the question.


    Is it possible to make sure that, when the mouse is above a certain node, that the mouse is presented "below" that same node ?



    That would allow the user to always see the message in the best conditions, regardless of the position of the mouse.

    Thank you,

    Rogério

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,114
    Thanks
    65
    Thanked 2,718 Times in 2,668 Posts

    Default Re: Is it possible to place the mouse cursor arrow behind a certain Node ?

    Pass this to Google to get code to hide the mouse: how to hide mouse in java
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    Rogerm (September 27th, 2024)

  4. #3
    Member
    Join Date
    Apr 2024
    Posts
    34
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default Re: Is it possible to place the mouse cursor arrow behind a certain Node ?

    Hello Norm.

    Thank you for your answer.

    I'm sorry but I asked the question in this forum before searching for answers in the internet.

    Usually I search for the answer for the problem in the internet, and, only if I dont't get the answer or I get stuck, then I come to the forum to ask for help.

    I wish you a good weekend.

    Rogério

Similar Threads

  1. Change The Mouse Cursor In Java
    By Nemesis89 in forum What's Wrong With My Code?
    Replies: 8
    Last Post: February 24th, 2014, 12:50 PM
  2. Display an image after mouse cursor point on a text area
    By samseah123 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: July 19th, 2013, 02:24 PM
  3. Please help with Arrow Keys
    By rtucker1023 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: April 4th, 2013, 04:58 PM
  4. How to control gain between mouse movement and cursor movement ?
    By DrPete in forum Java Theory & Questions
    Replies: 3
    Last Post: March 12th, 2012, 07:27 AM
  5. Replies: 7
    Last Post: June 26th, 2011, 11:16 AM