SwingX JXTreeTable and Tooltips

Hello
I have what I think is a small bug in JXTreeTable.
Using the attached self contained runnable example and the SwingX 1.6.4 library do the following
1. Hold mouse over any cell and the tooltip is displayed
2. Click the tree icon so the tree collapses and then click again so the tree expands again.
3. Now without leaving the bounds of the table (not moving the mouse out of the rows) move the mouse to any cell, the tooltip no longer gets displayed
4. Move the mouse out of the table anywhere on the screen
5. Move mouse back over the table, tooltips are now displayed again
I stress that this only happens when after the tree expandsion/collapse click the mouse must not move off any row otherwise the tooltips work again correctly
I was hoping someone out there might have a temporary solution and also whether they indeed experience the same problem, if so I can raise a bug as I can't find a currently active one for this
import org.jdesktop.swingx.JXFrame;
import org.jdesktop.swingx.JXTreeTable;
import org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode;
import org.jdesktop.swingx.treetable.DefaultTreeTableModel;
import org.jdesktop.swingx.treetable.TreeTableModel;
import org.jdesktop.swingx.treetable.TreeTableNode;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
public class TreeTableToolTipTest extends JXFrame
    public TreeTableToolTipTest()
        DefaultMutableTreeTableNode root = new DefaultMutableTreeTableNode();
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        root.add(new DefaultMutableTreeTableNode());
        final JXTreeTable table = new MyTreeTable(new MyTreeTableModel(root));
        table.setFillsViewportHeight(false);
        Container contentPane = getContentPane();
        contentPane.setLayout(new BorderLayout());
        contentPane.add(new JScrollPane(table), BorderLayout.CENTER);
        table.setRootVisible(true);
        table.expandAll();
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setSize(800, 500);
        setVisible(true);
    public static void main(String[] args)
        new TreeTableToolTipTest();
    private class MyTreeTable extends JXTreeTable
        private MyTreeTable(TreeTableModel treeModel)
            super(treeModel);
        public String getToolTipText(MouseEvent event)
            return "Tooltip";
    private class MyTreeTableModel extends DefaultTreeTableModel
        private MyTreeTableModel(TreeTableNode root)
            super(root);
        public Object getValueAt(Object node, int column)
            return "Hello " + column;
        public int getColumnCount()
            return 4;
}Thanks
Edited by: luppy on Oct 1, 2012 3:41 AM

Thanks for filing the issue:
http://java.net/jira/browse/SWINGX-1527
fixed (cough ...) by yet-another-hack in TreeTableHackerExt4 (yeah, our hacks are versioned :-)
Please let me know (all who use the treeTable!) how that works - and what it breaks ..
Cheers
Jeanette

Similar Messages

  • Unable to Add alternative text and tooltips to your images

    Hello,
    I am using Muse CC in Apple iMAC machine.  The build version of Muse CC is 232. 
    Having watched the video, http://tv.adobe.com/watch/learn-adobe-muse-cc/using-titles-and-alt-text-to-images/, I am unable to bring up the image property window when I press the right hand click button of my Apple Mouse. 
    As such, I am unable to add alternative text and IMG Text to my images including the logo, facebook and Twitter Logos. 
    Can someone please tell me how to resolve my issue?  How come I unable to bring up the image property when I press the right hand click on the mouse.  The image property is also not shown in the menu of Muse CC.
    Thank you.
    Maxplus.

    Hello Maxplus,
    Try doing CTRL+Click once to see if it works. Also, if an image is added as a fill, it doesn't bring up the Add alternative text and tooltips option, because then it is added as a background and not placed as an image.
    Cheers
    Parikshit

  • [Acrobat Plugin] How to hide annots and uncheck text indicators and tooltips programmatically?

    I am using C++ developing a plugin for Windows Acrobat Professional 11.
    I want to do following things:
    1) hide and show annots on pages
    2) check and uncheck Edit|Preferences|Commenting Enable text indicators and tooltips
    I know both these are already done by Acrobat, but I just want to make a dialog and help my customers to these in same place.
    Thanks in advance.

    1.
    There is not methods to change visibility of annot on PD layer and PDAnnot object.
    2.
    I have checked AVAppSetPreference, there are only three keys about annots(AVPrefsD.h), they are
    - AVP(avpShowHiddenAnnots, ASBool)
    - AVP(avpShowAnnotSequence, ASBool)
    - AVP(avpPrintAnnots, ASBool)
    none of these change that setting. and I looked for tooltip, even no keys contain "tooltip"

  • Problems with Hints and Tooltips

    Hi all!!
    I have a problem with a form made with Form Builder 6 that contains hints and tooltips that I have to remove.
    The problem is that even if I delete the text of hints and tooltips it still remains a bullet (in some items yellow in other white) that does not contains text but that appears when the mouse click on the item.
    Has nobody faced this problem before?
    Does anybody know how to eliminate all hints and tooltips in a form??
    Thx
    Jacopo

    You don't need any APIs in C or any other APIs, and this has nothing to do with the "Display Hint Automatically" property.
    When you want to remove a tooltip, put the focus on the property and click the "Inherit" button on the property palette. This will reset the tooltip.
    If you only erase it, you are telling Oracle Forms that tooltip is Null, and hence you are seeing the little bullet.
    Try it it does work.
    Tony
    Message was edited by:
    Tony Garabedian

  • PUSH BUTTON text and tooltip dynamic in module pool

    I want to change  at runtime the text and tooltip of a push button which belongs to a screen of module pool (not a pf_status).
    Is there anyone who can help me?

    HEllo,
    Check this report done by Rich,
    Ok..here is my example. Most of the code was generated by screen painter via the tabstrip control wizard. Create screen 100, use the tabstrip control wizard to create your tabstrip, name it TABSTRIP. Double click on the tab text elements, rename them TABSTRIP_TEXT1 and TABSTRIP_TEXT2 for the tab text elements, make sure that the output only check box is checked.
    REPORT ZRICH_0003 .
    data: TABSTRIP_TEXT1(30) type c,
          TABSTRIP_TEXT2(30) type c.
    start-of-selection.
    call screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    module STATUS_0100 output.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
    Fill the tabstrip text elements here!
    TABSTRIP_TEXT1 = 'Text 1'.
    TABSTRIP_TEXT2 = 'Text 2'.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    module USER_COMMAND_0100 input.
    endmodule.                 " USER_COMMAND_0100  INPUT
    FUNCTION CODES FOR TABSTRIP 'TABSTRIP'
    CONSTANTS: BEGIN OF C_TABSTRIP,
                 TAB1 LIKE SY-UCOMM VALUE 'TABSTRIP_FC1',
                 TAB2 LIKE SY-UCOMM VALUE 'TABSTRIP_FC2',
               END OF C_TABSTRIP.
    DATA FOR TABSTRIP 'TABSTRIP'
    CONTROLS:  TABSTRIP TYPE TABSTRIP.
    DATA:      BEGIN OF G_TABSTRIP,
                 SUBSCREEN   LIKE SY-DYNNR,
                 PROG        LIKE SY-REPID VALUE 'ZRICH_0003',
                 PRESSED_TAB LIKE SY-UCOMM VALUE C_TABSTRIP-TAB1,
               END OF G_TABSTRIP.
    DATA:      OK_CODE LIKE SY-UCOMM.
    OUTPUT MODULE FOR TABSTRIP 'TABSTRIP': SETS ACTIVE TAB
    MODULE TABSTRIP_ACTIVE_TAB_SET OUTPUT.
      TABSTRIP-ACTIVETAB = G_TABSTRIP-PRESSED_TAB.
      CASE G_TABSTRIP-PRESSED_TAB.
        WHEN C_TABSTRIP-TAB1.
          G_TABSTRIP-SUBSCREEN = '0101'.
        WHEN C_TABSTRIP-TAB2.
          G_TABSTRIP-SUBSCREEN = '0102'.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.
    INPUT MODULE FOR TABSTRIP 'TABSTRIP': GETS ACTIVE TAB
    MODULE TABSTRIP_ACTIVE_TAB_GET INPUT.
      OK_CODE = SY-UCOMM.
      CASE OK_CODE.
        WHEN C_TABSTRIP-TAB1.
          G_TABSTRIP-PRESSED_TAB = C_TABSTRIP-TAB1.
        WHEN C_TABSTRIP-TAB2.
          G_TABSTRIP-PRESSED_TAB = C_TABSTRIP-TAB2.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.
    Screen Flow is ....
    PROCESS BEFORE OUTPUT.
    PBO FLOW LOGIC FOR TABSTRIP 'TABSTRIP'
      MODULE TABSTRIP_ACTIVE_TAB_SET.
      CALL SUBSCREEN TABSTRIP_SCA
        INCLUDING G_TABSTRIP-PROG G_TABSTRIP-SUBSCREEN.
    MODULE STATUS_0100.
    PROCESS AFTER INPUT.
    PAI FLOW LOGIC FOR TABSTRIP 'TABSTRIP'
      CALL SUBSCREEN TABSTRIP_SCA.
      MODULE TABSTRIP_ACTIVE_TAB_GET.
    MODULE USER_COMMAND_0100.
    Vasanth

  • Disappearing context menus and tooltips

    Hi.
    After updating to firefox 10 i got very annoying behavior where all context menu, selection lists and tooltips are appearing for very short moment and then disappear right away. When moving mouse over the invisible menu the menu is flickering, sometimes stays visible for a while.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.
    *https://support.mozilla.org/kb/how-do-i-upgrade-my-graphics-drivers

  • Is there a way to combine the best of slideshow and tooltip widgets?

    I am trying to produce a sliding menu similar to the "Now Playing" movies listed on this website : http://themoviehouse.com/   
    where you can mouse over and a box pops up and stays up so that you can click links within the box. The catch is that I need this box to disappear when the mouse is not on it so that content behind the box is again visable.
    I have seen this on so many websites so I assume can build this in Muse.
    Obviously with tooltip the box does not stay open. With a slideshow, the box does not disappear when you are done.
    Is there a way to combine the two or is there another widget that allows me to create what I am looking for?

    Install the Apple Configurator (osx only) and it will cache the iOS update on there after it's been installed once.  From then on each device you plug-in will take the update from Apple Config without having to download it.  I have this setup on a macbook air and it saves me a lot of time.
    The updates are device specific so make sure you update one iPhone 4, one 4S, one 5, one iPad etc before heading out to sea.  I thought installing the update on an iPhone 4S will work on an iPhone 5 but the first iPhone 5 I connected needed to download.

  • 'Blank' and 'Tooltip' Composition Widget disappearing

    I have created a slideshow of sorts using the 'blank' composition widget (also tried 'tooltip comp'). I chose to use this so that I can add interactivity eventually and link text. Everything is working fine, until I start scrolling down the page. Once the composition is about half-way underneath my top menu, it completely disappears and no slides are visible. I've checked my scrolling/opacity settings and cannot for the life of me figure out what is triggering this. Any and all help would be greatly appreciated! The composition I'm referring to is the first one that appears on the page, just as the top menu drops down and contains a slide that says 'connect'.
    http://www.matthewwilledesign.com
    Thanks in advance!
    -Matt

    Place the trigger where it should be and rearrange the sequence of the triggers by changing their stacking order: Rightclick the trigger and choose "Arrange/…". The most backward trigger is the first one to open.

  • Multiline Tooltips and tooltips on non-hyperlinked report columns

    These are both questions I had and searched this forum for without finding anything. Since I found a way of doing both, I figured I'd put the info here so someone else might find it at need.
    I have a report in my app that shows invoices that are in an approval process that involves people in three separate functions (Ops, Finance, and Contracts). The report shows some data about the invoice and the username of the person who needs to approve it. If they have not done anything, their name is shown in Yellow, if they've approved it, it's shown in Green, and if they rejected it, in Red. This worked great until one of the accounting clerks waiting for the approvals asked me to make the approvers rejection notes available from the report. I really didn't want to crud up my report with a bunch of notes. Using tooltips seemed to be a reasonable way to show the notes on demand. However, the only place APEX gives you a pre-built handle to hang tooltips on text is using a hyperlink. If I hyperlinked the approver's name, then (by default) it'd kill my status colors. The solution was to display the tooltips from within the <DIV> tags I was already using for the color. I added the capability to my function that determined the color to display the approver name. It worked well enough that I decided to post a snippet of the code here:
    IF v_notes IS NULL THEN
    v_text := NULL;
    ELSE
    v_notes := REPLACE(v_notes, '''', NULL);
    v_text := 'onmouseover="toolTip_enable(event,this,''' || v_notes || ''')"';
    END IF;
    RETURN '<div ' || v_text || ' style="color:#993333; font-weight:bold">' || p_approver || '</div>';
    I have another report where I want to display some drill-down-type data using tooltips. The data would be most readable broken up in multiple lines, but I couldn't for the life of me find anything referring to carriage-returns for toolTip_enable. I tried CHR(10), CHR(13) (and both), \n \r (and both) before finding out that it simply uses <BR>, i.e.:
    onmouseover="toolTip_enable(event,this,'Line1<BR>Line2<BR>Line3')";

    Raj,
    see if this helps you:
    http://apex.oracle.com/pls/otn/f?p=31517:22
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • JComboBox and Tooltips

    Hi,
    I'm creating a project for school in which they want me to populate a JComboBox with a movie list that I created in a text file.
    I was thinking that I want to set a tooltip for each item (movie) and then modify it so that people can see a picture of the movie and a little summary.
    What's the easiest way to do that?
    Or maybe instead of a tooltip I could use different forms? Please, give me some ideas with some code too
    Thanks
    PS: This is the code I'm using to populate the JComboBox.
    private void populateMovies()
    String fileName = "src
    Movies.txt",
    movieList;
    try
    //File Reader
    FileReader content = new FileReader(fileName);
    BufferedReader inputFile = new BufferedReader(content);
    movieList = inputFile.readLine();
    while (movieList !=null)
    movieSelectionJComboBox.addItem(movieList);
    movieList = inputFile.readLine();
    catch(FileNotFoundException exp)
    exp.printStackTrace();
    catch(IOException exp)
    exp.printStackTrace();
    Click to see GUI
    http://i153.photobucket.com/albums/s224/andresmdiaz/AMDGUI.png

    You can set images in tooltips using HTML
    String imageName = "file:image.jpg";
    component.setToolTipText("<html>Here is an image <img src="+imageName+"></html>");
    or for more flexibly but much more complexity, you can make your own tooltip class, here is an example of that:
    http://www.java2s.com/Code/Java/Swing-JFC/ShowinganImageinaToolTip.htm
    btw "image in tooltip java" came up with these results in the top 3. I suggest in the future you have a go, and post your failed attempt, if you fail that is.

  • Label and Tooltip configuration in PieGraph

    Hi,
    I am binding a VO to my graph where I have made one of the attributes as the numerical value for pieGraph and added the rest of the attributes in legend. Now I want one of the attributes to show as Slice label and another one of the attributes as a tooltip. Is something like this possible? If yes, how do i configure that?
    Thanks,
    Himaja

    I also have a requirement to render the graph in flash if flash is supported by the browser and in PNG if it is not. I can make the imageFormat attribute dynamic and determine whether flash is supported or not. Can someone give me pointers on how i can do that from within ADF.

  • Datagrid and tooltip don't work with Flex 3 framework RSL

    I have an application previously written in Flex 2.0.1. I've
    recompiled it under Flex 3, and fixed any breaking changes, but I
    now want to extract the framework as an RSL. I've tried 3.0.477 and
    3.3 to no avail.
    Problem is: when I compile the app with the framework "Merged
    into Code", it works perfectly, looks beautiful.
    When I compile it with the framework as an RSL, numerous
    things go wrong:
    - all Tooltips stop working, appearing as little empty
    circles.
    - Datagrids start behaving crazily - the headers won't appear
    even with showHeaders=true and the headerText set for each column.
    The columns all appear empty despite having valid data in the
    dataprovider. I did manage to get one datagrid working by
    specifying a custom ItemRenderer for each column, but a second
    datagrid didn't work even with the itemrenderers.
    I'm really at my wit's end with this. Anyone know why these
    problems might be occurring?

    This sounds like the same as http://forums.adobe.com/thread/922450

  • Highlight Path and Tooltips

    Hi everyone,
    I am a newby to Flash, and just want to know how I should get started to achieve two things. I am creating a map with places and routes between those places.
    Objective 1: When a visitor hovers over a place name, I want a tooltip to show, which they can select to be taken to another html page to display information on that place.
    Objective 2: When a visitor hovers over a line or path connecting two places, a tooltip shows to identify that route, and again when the tooltip is clicked, the visitor is taken to the route details html page for further information. I want the tooltip to show up anywhere along the path which is hovered over.
    I want to know, how I should start to design this and what elements will be required to achieve this, espically the tool tips. Are there any good tutorials for this. And how easy is it to make a path highlight, like a button, when hovered over, can a path have different states?
    Here is a image done in Fireworks of my objectives.
    I hope this makes sense, and a big thank you in advance for any ideas for creating this!

    You may want to think a bit about the logistics.  If you hover over something and it makes something appear, what makes that something disappear? Usually a rollout from the hovering would be the mechanism, but in your case you say you want to allow the user to click the appearing object, which would likely involve a rollout, making the object disappear before you can click it. With that said....
    You can create your objects as movieclips (or buttons) such that when you hover them they move to a different frame where whatever highlighting and whatever tool tip you intend can be displayed.  Depending on your thoughts regarding the logistics, the movieclip approach gives you more leverage than the button approach because buttons are harder to control the states of... though you could use buttons within movieclips as well.
    It is possible that you could create the rollover frame/state of the movieclip such that it covers a sufficiently large area to avoid a rollout event from occuring as you move from the point or route to the tool tip.  You could use an area that that has a zero alpha so that it cannot be seen, but provides the extra ground cover you need to be able to move to the tool tip without it disappearing.
    Also, if you indicate which version of Actionscript you plan to be using for this, that will be helpful as some example could be provided at some point if needed.  If that's up in the air, then AS3 will be the better choice.

  • GlassPane and ToolTips

    I use a GlassPane to capture all MouseEvents. Is it possible to display the ToolTips for the buttons ? Even if i dispatch all events to the correct component there will never be a ToolTip.
    Thank for any help !

    Sorry, but sometimes the ToolTip is shown and sometimes not. Here ist some code.
        private void redispatchMouseEvent(MouseEvent e) {
            Point glassPanePoint = e.getPoint();
            Component component = null;
            Container container = contentPane;
         component = getClickedComponent(e.getPoint() );
         if(component == null) return;
         Point componentPoint = SwingUtilities.convertPoint(
                            glassPane,
                            glassPanePoint,
                            component);
         component.dispatchEvent(new MouseEvent(component,
                                  e.getID(),
                                  e.getWhen(),
                                  e.getModifiers(),
                                  componentPoint.x,
                                  componentPoint.y,
                                  e.getClickCount(),
                                  e.isPopupTrigger()));
        private Component getClickedComponent(Point punkt)
            Component component = null;
         try
             Rectangle btnDel = frame.btnPicDel.getBounds();
             Rectangle btnSave = frame.btnPicSave.getBounds();
             Rectangle btnExport = frame.btnPicExport.getBounds();
             Rectangle btnPrint = frame.btnPicPrint.getBounds();
             Rectangle btnReset = frame.btnPicReset.getBounds();
             if(btnDel.contains(punkt) == true)
              component = frame.btnPicDel;
             else if(btnSave.contains(punkt) == true)
              component = frame.btnPicSave;
             else if(btnExport.contains(punkt) == true)
              component = frame.btnPicExport;
             else if(btnPrint.contains(punkt) == true)
              component = frame.btnPicPrint;
             else if(btnReset.contains(punkt) == true)
              component = frame.btnPicReset;
             else
              Point containerPoint = SwingUtilities.convertPoint(
                                  glassPane,
                                  punkt,
                                  contentPane);
              component = SwingUtilities.getDeepestComponentAt(
                                  contentPane,
                                  containerPoint.x,
                                  containerPoint.y);
         }catch(Exception ex)
             //ex.printStackTrace();
         return component;
        }The redispatchMouseEvent is called in every MouseEvent the MouseAdapter knows. I also tried to display the ToolTip via a JLabel I add to the GlassPane. And to dispatch the event directly to the Component (getClickedComponent) didn't help.
    Thanks a lot for your help !

  • How to modify title and tooltip text in Content Editor web part

    I have inherited a site with a page that includes two Content Editor web parts. The web parts have been left with the default titles (Content Editor [1] and [2]) and mouse-over text.
    I want to set these to something more appropriate so I choose the option Edit Page (to edit the web parts on this page). I can move the web parts around (so definitely in Edit mode) but if I click the Edit Web Part Properties the page refreshes but no properties
    or options (or errors) appear.
    How do I modify these web parts?

    When you select the edit web part options, the page should reload with the configuration options on the right hand side. This will include several collapsed sections, namely: -
    Appearance
    Layout
    Advanced
    If you maximise the appearance one, you'll see a text field for "Title."  Edit this to what you want and you'll be able to rename these.
    If you can't see the options, make sure to scroll to the far right hand side of the screen.  Sometimes on larger resolution monitors, they can appear hidden.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

Maybe you are looking for

  • Can I filter search by authorisation group?

    We have 5 sales orgs e.g. Z001, Z002, Z003, Z004, Z005. Each employee belongs to one sales org only. When the user searches on accounts I want to filter the search by the sales org the employee belongs to. To test this I maintained the business partn

  • Zoom click problem with intuos5

    Hi,      I run photoshop cc 2014 and i have an intuos5 medium. Cmd+space+click for zoomin in and out is working very slow, it works fine in illustrator, but in ps is't like the click stills pressed. How can i solve this? thanks

  • SAP BW Query failing with ORA ERROR

    Hi There We have SAP BW 3.5 on AIX 5.3 TL10. Oracle is 9i (9.2.0.7). Our users are facing problems with Cost calculation job on cubes. The job got failed with below error Database error 1115 at FET access to table /BI0/03538 > ORA-01115: IO error rea

  • WVC54GCA Record & Playback problems : Time issues - Playback - AVI conversion

    I have gotten everything to work sort of. Time: The camera time seems to be becoming issue and I am not quite sure why. I have synced it with my pc an it seems still lose an hour. It will sometimes go and try and find a Nttp server even though I have

  • Line the script?

    Does Adobe Story have script lining capabilities? I'm looking for a program that will allow you to line a script, just as a continuity/script supervisor would. Thanks!