Results 1 to 4 of 4
  1. #1
    ironexmaiden is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default JToolbar move event when is floatable

    I am not able to catch JToolbars's move event when is floatable. I used ComponentListener and componentMove function but no luck :(.
    Has anyone an idea how can I achieve that???


    Thanks in advance ironexmaiden.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,929
    Rep Power
    16

    Default Re: JToolbar move event when is floatable

    Try AncestorListener#ancestorMoved(...) or HierarchyBoundsListener#ancestorMoved(...)

    If neither of those do it, post back and I'll take another look.

    Also note that there is no 'componentMove function'. there is a componentMoved(...) method.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

  3. #3
    ironexmaiden is offline Member
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: JToolbar move event when is floatable

    Quote Originally Posted by DarrylBurke View Post
    Try AncestorListener#ancestorMoved(...) or HierarchyBoundsListener#ancestorMoved(...)

    If neither of those do it, post back and I'll take another look.

    Also note that there is no 'componentMove function'. there is a componentMoved(...) method.

    db


    I tried it but no luck... no event called when floatable toolbar is moving around :(

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,929
    Rep Power
    16

    Default Re: JToolbar move event when is floatable

    To what did you add the listener?

    To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. Connectivity of a JToolbar to the web
    By bkmr in forum AWT / Swing
    Replies: 7
    Last Post: 06-10-2011, 01:25 AM
  2. Iconified JInternalFrame in JToolbar
    By mine0926 in forum New To Java
    Replies: 1
    Last Post: 05-25-2011, 03:36 AM
  3. ActionListener for JToolBar components
    By LianaN in forum New To Java
    Replies: 6
    Last Post: 09-18-2010, 01:37 PM
  4. Replies: 5
    Last Post: 11-02-2008, 06:41 AM
  5. JToolBar movable but not floatable
    By Fosters in forum AWT / Swing
    Replies: 0
    Last Post: 08-22-2008, 03:04 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
  •