Tool Bar popups on mouse hover


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Tool Bar popups on mouse hover

  1. #1
    Join Date
    Jan 2005
    Posts
    61

    Tool Bar popups on mouse hover

    I'm trying to have some identifying text popup when a user hovers the mouse over a toolbar button or similar - kind of like alt text on the IE browser.

    I'm looking at ToolTipUI and MouseMotionListener, but don't seem to be getting anywhere fast - cna anyone tell me if I'm on the righ track?

    Thanks.

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    For example, any Swing component can use the JComponent setToolTipText method to specify the text for a standard tooltip
    Directly from the JToolTip API.

    myButton.setToolTip("this is my button");
    myToolBar.add(myButton);

  3. #3
    Join Date
    Jan 2005
    Posts
    61
    <slaps forehead>

    Thanks Phaelax - being new to this I'm still getting used to working out what things are called and what to look for in the api - thanks again

Similar Threads

  1. DockableWindow 2.0 - Adds tool window auto-hide & tabbed MDI
    By Actipro Software in forum dotnet.announcements
    Replies: 0
    Last Post: 08-25-2002, 11:11 PM
  2. Capturing Mouse Movements outside of screen resolution
    By Chris Eastwood in forum VB Classic
    Replies: 4
    Last Post: 03-28-2002, 01:26 PM
  3. Mouse Movement Playback
    By Eugene in forum VB Classic
    Replies: 4
    Last Post: 12-19-2000, 12:52 PM
  4. Mouse Movement Playback
    By Eugene in forum VB Classic
    Replies: 0
    Last Post: 12-19-2000, 11:13 AM
  5. Replies: 1
    Last Post: 03-28-2000, 02:27 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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center