Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By PhHein

Thread: Swing mouse listeners to edge of JFrame

  1. #1
    anchitanc is offline Member
    Join Date
    Oct 2010
    Posts
    44
    Rep Power
    0

    Lightbulb Swing mouse listeners to edge of JFrame

    Hi,

    I have full screen swing application, i have added taskpane at left (East part of bordar layout). Now i want to make this taskpane auto hide and visible on mouse over or touch at any corner of screen (of full screen JFrame).
    So how can i add mouse listeners to edge of JFrame?

    Please let me know if i am not clear enough.

    Thanks
    Anchit

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: Swing mouse listeners to edge of JFrame

    So how can i add mouse listeners to edge of JFrame?
    You can't, AFAIK. I'd add a MouseMotionListener and calculate whther the location is on an edge.
    gimbal2 likes this.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. swing and mouse dragging
    By willemjav in forum AWT / Swing
    Replies: 5
    Last Post: 03-05-2013, 09:57 AM
  2. Swing JFrame Maximise Bug?
    By RhysBradbury in forum AWT / Swing
    Replies: 3
    Last Post: 01-07-2013, 03:09 PM
  3. Replies: 2
    Last Post: 07-13-2012, 11:59 PM
  4. Drawing with the mouse in the same frame as swing components
    By StillCantPlay in forum AWT / Swing
    Replies: 2
    Last Post: 04-07-2012, 01:12 AM
  5. Replies: 1
    Last Post: 07-16-2009, 03:15 PM

Tags for this Thread

Posting Permissions

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