Results 1 to 4 of 4
  1. #1
    g6pd is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default MouseEntered to rect

    Hello,
    I want to make a Frame that will include a rect in it,
    and when the mouse enter the rect the background color of the rect will change and when the mouse exit the rect the background will back to his origin color.
    please write me this specific code, thanks :)

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    We don't do that here. We help you write the code. Not write it for you. Try looking at the java tutorials. They will probably have something similar to this

  3. #3
    g6pd is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    I looked everywhere, and still haven't found that =[

  4. #4
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    You won't find the exact code but you will find some form of mouse enter action handling. You will have to do some thinking to accomplish what you are looking for.

Similar Threads

  1. can i set a timer delay on mouseEntered event
    By chan in forum AWT / Swing
    Replies: 1
    Last Post: 08-30-2009, 05:55 AM
  2. Detecting mouseEntered event in JComponent
    By djhallx in forum AWT / Swing
    Replies: 1
    Last Post: 02-26-2009, 10:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •