Moving a JFrame

Discussion in 'Java' started by L Clarke, Feb 25, 2006.

  1. L Clarke

    L Clarke Guest

    Hi,

    I want to move a JFrame or any other type of window, but i want to be able
    to do this by clicking and dragging anywhere inside the frame (or window),
    rather than just moving by using the titlebar. Can anyone point me in the
    right direction to look into this.

    thanks
    lee



    --
    Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
    ------->>>>>>http://www.NewsDemon.com<<<<<<------
    Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
     
    L Clarke, Feb 25, 2006
    #1
    1. Advertisements

  2. L Clarke

    zero Guest

    "L Clarke" <> wrote in
    news:44008643$0$5430$:

    > I want to move a JFrame or any other type of window, but i want to be
    > able to do this by clicking and dragging anywhere inside the frame (or
    > window), rather than just moving by using the titlebar. Can anyone
    > point me in the right direction to look into this.


    Implement a MouseMotionListener (look into MouseMotionAdapter) calling
    setLocation

    I don't know if this is very performant and I haven't tested, but it should
    work.
     
    zero, Feb 25, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Passero
    Replies:
    6
    Views:
    3,678
    Tassilo Horn
    Jul 5, 2003
  2. jakester
    Replies:
    3
    Views:
    2,126
    jakester
    Apr 3, 2007
  3. linkswanted
    Replies:
    0
    Views:
    1,455
    linkswanted
    Dec 21, 2007
  4. linkswanted
    Replies:
    0
    Views:
    1,816
    linkswanted
    Jan 6, 2008
  5. linkswanted
    Replies:
    0
    Views:
    670
    linkswanted
    Jan 23, 2008
  6. linkswanted
    Replies:
    0
    Views:
    822
    linkswanted
    Jan 24, 2008
  7. Replies:
    3
    Views:
    1,103
    FredK
    Aug 27, 2012
  8. Replies:
    2
    Views:
    698
    markspace
    Aug 27, 2012
Loading...