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: Detect any Popup, Combobox, Tooltip, etc opening

  1. #1
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Detect any Popup, Combobox, Tooltip, etc opening

    Hello.

    This time I need help with a little Event problem.
    I would like to be able to detect whenever a component pops up on top of my frame. Be it a tooltip displayed when the user hovers the mouse, or a menu, toolbar, combobox, etc.

    The problem comes with a third party library which uses a heavyweight component. This heavyweight component is embedded in my normal swing GUI. The problem is that heavyweight components are usually drawn on top of lightweight swing components, unless you revalidate the frame at the right point in time.
    If I was able to revalidate the frame when a popup pops up the lightweight popup would be shown correctly on top of the heavyweight component. But I just cant find a way to do so without manually adding action / change / component listeners to anything and everything.

    So, if there is any "simple" way of detecting these kinds of events I would very much appreciate if somebody could tell me.
    Thank you all very much.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Detect any Popup, Combobox, Tooltip, etc opening

    Can you post an example of what you're talking about? Keep it simple, a component or two with a "popup" and directions how to duplicate the "problem." Then describe how you'd prefer it worked.

  3. #3
    Senior Member
    Join Date
    Jul 2013
    Location
    Europe
    Posts
    666
    Thanks
    0
    Thanked 121 Times in 105 Posts

    Default Re: Detect any Popup, Combobox, Tooltip, etc opening

    Never mind, I found a solution to my problem.

Similar Threads

  1. how to create resizable tooltip?
    By diyaots in forum Java IDEs
    Replies: 1
    Last Post: November 1st, 2011, 07:38 AM
  2. [SOLVED] Populating second combobox from a combobox help!
    By ComputerSaysNo in forum AWT / Java Swing
    Replies: 7
    Last Post: October 18th, 2011, 09:01 AM
  3. [SOLVED] JTable Popup
    By banny7 in forum AWT / Java Swing
    Replies: 10
    Last Post: August 31st, 2011, 07:02 AM
  4. jsp popup
    By hussain4hunt in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: February 1st, 2011, 09:27 AM
  5. popup menu
    By antonio69 in forum AWT / Java Swing
    Replies: 1
    Last Post: May 20th, 2010, 04:24 AM