Mnemonic in the tooltip: 1.5 vs 1.6?

swing appends Button mnemonic to the tooltip
our code uses and everything is great under 1.5, but if we start the same app under 1.6 the mnemonic is not appended to the tooltip anymore :(
i do not want to dirty-hack this so i wonder how to i tell swing i still want the mnemonic in the toolbar?

1.5 puts the string by itself [Alt-X]
1.6 does not put the string
if i understand you right you are suggesting to check the JVM version at runtime and add the string if runned under 1.6? this is kinda hacky, i would
love to understand what is going on and what causes the difference in the UI of my applet under 1.5 and 1.6

Similar Messages

  • Can we have a Single quote in the tooltip text?

    Hi,
    We have some tooltips for the presentation columns which contains a single quote.
    When I try to view the tooltip from answers the single quote is being replaced by double quotes.
    I tried to use all sorts of escape characters for single quote, like "\'" and ''' and "'" but that didn't work.
    Is there any way to do this.
    Thanks!!
    Vasantha.P

    As I said in my earlier post, I am looking for the tooltips for the Presentation tables and columns. The tooltips for these were extracted from the RPD using the externalize Strings option and these externalized strings are stored in the database.
    So I am escaping the single using a single quote both in rpd and in the database.
    Example text I have used both in the rpd and database is something like "Shipment's start time". I tried with "Shipment''s start time", " Shipment'''s start time", but it didn't work.
    Thanks!!
    Vasantha.P

  • How can I display the tooltip in a tree node?

    I implement a TreeCellRenderer and has already set the tooltiptext through the following code:
        public Component getTreeCellRendererComponent(JTree tree, Object value,
                               boolean selected, boolean expanded,
                               boolean leaf, int row,
                                  boolean hasFocus) {
            Object userObject = ((DefaultMutableTreeNode)value).getUserObject();
            if(Leaf.class.isInstance(userObject)) {
                    Leaf leaf = (Leaf)userObject;
                    setToolTipText(leaf.getString());
        }Why can't the tree display the tooltip when a move the mouse on the leaf of the tree?
    Thank you!

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.tree.*;
    public class Test3 extends JFrame {
    public Test3() {
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = getContentPane();
    JTree jt = new JTree() {
    public String getToolTipText(MouseEvent evt) {
    if (getRowForLocation(evt.getX(), evt.getY()) == -1)
    return null;
    TreePath curPath = getPathForLocation(evt.getX(),
    evt.getY());
    return curPath.getLastPathComponent().toString();
    content.add(new JScrollPane(jt), BorderLayout.CENTER);
    jt.setToolTipText("");
    setSize(400, 400);
    setVisible(true);
    public static void main(String[] args) { new Test3();
    }It sounds a solution. I use the following code and also can display the tooltip,but there's also a problem:
        mytree.setCellRenderer(new MyTreeCellRenderer());
        ToolTipManager.sharedInstance().registerComponent(mytree);the above code only effective when the function getTreeCellRendererComponent in MyTreeCellRenderer like the following:
        public Component getTreeCellRendererComponent(JTree tree, Object value,
                               boolean selected, boolean expanded,
                               boolean leaf, int row,
                                  boolean hasFocus) {
         String  stringValue = tree.convertValueToText(value, selected,
                                expanded, leaf, row, hasFocus);
         setText(stringValue);
         setToolTipText(stringValue); //Tooltips used by the tree
         /* Set the icon of the node */
                         Object userObject = ((DefaultMutableTreeNode)value).getUserObject();
         if(Device.class.isInstance(userObject)) {
             setIcon(deviceIcon);
         } else {
             setIcon(nullIcon);
             Business b = (Business)userObject;
         setFont(defaultFont);
         /* Update the selected flag for the next paint. */
         this.selected = selected;
         this.hasFocus = hasFocus;
         if(selected) // && hasFocus)
             setForeground(Color.white);
         else
             setForeground(Color.black);
         return this;
        }but when the code is bellow,it displays nothing(Only the leaf node need tooltip):
        public Component getTreeCellRendererComponent(JTree tree, Object value,
                               boolean selected, boolean expanded,
                               boolean leaf, int row,
                                  boolean hasFocus) {
         String  stringValue = tree.convertValueToText(value, selected,
                                expanded, leaf, row, hasFocus);
         setText(stringValue);
         //setToolTipText(stringValue); //Tooltips used by the tree
         /* Set the icon of the node */
                         Object userObject = ((DefaultMutableTreeNode)value).getUserObject();
                         if(Device.class.isInstance(userObject)) {
             setIcon(deviceIcon);
         } else {
             setIcon(nullIcon);
             Business b = (Business)userObject;
             if(b.isShowOrder())
                 setToolTipText(b.getContaId());  // only some node need tooltip, not all  node
         setFont(defaultFont);
         /* Update the selected flag for the next paint. */
         this.selected = selected;
         this.hasFocus = hasFocus;
         if(selected) // && hasFocus)
             setForeground(Color.white);
         else
             setForeground(Color.black);
         return this;
        }Anyone knows why?

  • The tooltip pop up when hovering over a link gets in my way if something is at the very bottom lower corner of a page...

    .and I don't want to upgrade FF to what might be a beta version to get this status4eva addon!
    I prefer to keep my status bar visible as I have a weather addon and like to see up to the minute info on the temperature outside and I use foxclocks to keep track of timezones where online friends live.
    Now for what I'm talking about:
    For example, I'll go to Livejournal and some layouts have the "previous/next" link in the lower left(your left if you face the screen) corner where the tooltip pops up. Well, the pointer will spaz between becoming the pointer finger and an arrow, and the link becomes impossible to click. I can get around it by opening a new tab, but this is really annoying to have to open and close tabs constantly. I REALLY think the tooltip should just pop up across the status bar area itself if at all, because it seriously gets in my way.
    Yes, I am aware it will move to the right if it's still there when a page is loading and you move the mouse pointer down there. However, this is not the case if a page isn't loading and you're trying to click that "next" link at the bottom of a page.
    This is VERY annoying. Please look into it when upgrading FF further.

    A possible workaround could be to have the horizontal scroll bar visible all the time.
    <pre><nowiki>body { overflow-x: scroll !important; }</nowiki></pre>
    * Stylish: https://addons.mozilla.org/firefox/addon/stylish/

  • How can I use the tooltip widget on individual images in my thumbnail gallery?

    Hey guys
    I've got a client that is insisting on not having the caption text visible on each picture unless you could click or hover over a little information button. But I can't get the tooltip widget inside an individual image's lightbox (hope this makes sense). I have very little coding knowledge and was hoping someone would have the answer to this?

    Does no one have an answer to this Was hoping that someone could save me on this dilemma.
    A side question, has anybody used a different gallery with muse before?

  • How can I change the ToolTip bg and fg colors?

    hi,
    I have a JTree, and I want to display a textual description for each node as a tooltip. I want the tooltip to appear with a certain bgcolor, and fgcolor.
    I have a CustomCellRenderer extending DefaultTreeCellRenderer with getTreeCellRendererComponent() method. Inside this, i am setting the ToolTipText..
    I want to change the color of the tip thats displayed.
    thank you,
    sn

    rahim,
    this is a method of the CustomCellRenderer which extends DefaultTreeCellRenderer
         public Component getTreeCellRendererComponent(
                                  JTree tree,
                                  Object value,
                                  boolean sel,
                                  boolean expanded,
                                  boolean leaf,
                                  int row,
                                  boolean hasFocus)
              super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);
              NodeData node = (NodeData)value;
              setToolTipText(node.getName());
              return this;
    }The NodeData is a class the represents the data for each node of the JTree.
    please let me know if there's anything else I can do, that'll be of help to you.
    regards,
    sangeetha

  • How to set the view format of the numbers in the tooltip.

    By default a graph will automatically format the axis view to be a scaled value.
    Example: 180321005 will show as 180 M on the axis label for the graph
    There is a way to set the scaling on the y-axis of a graph so that it will not be displayed as a scaled number.
    m_graph.getY1Axis().getViewFormat().setScaleFactor(BaseViewFormat.SCALEFACTOR_NONE);
    Now: Example: 180321005 will show as 180321005 on the axis label for the graph
    But is there a way to set the scaling factor for the pop up tooltip that appears when the user mouses over a point on the graph?
    Right now the tooltip view shows the y value as a scaled value; therefore, much of the number's percision is lost.
    Thanks,
    michelle

    Hello
    Did you find any soloution?

  • Setting the tooltip of CL_HTMLB_DROPDOWNLISTBOX in an iterator?

    Hello,
    I'm new to the forum and quite new to BSP, so please bear with me if I'm asking simple questions
    I tried to set the tooltip property of a CL_HTMLB_DROPDOWNLISTBOX instance in an iterator like this:
    DATA:    col_dropdown       TYPE REF TO cl_htmlb_dropdownlistbox.
          CREATE OBJECT col_dropdown.
          col_dropdown->tooltip = 'Test'.
    The dropdown list works ok and all is fine, but the tooltip is not displayed. However, when I use the tooltip property on a BSP page, it works fine:
                                       <htmlb:dropdownListBox id                = "SalesOrg"
                                               table             = "</= controller->CuCo->DD_SALESORG />"
                                               nameOfKeyColumn   = "TKEY"
                                               nameOfValueColumn = "DESCRIPTION"
                                               selection         = "</= sarea />"
                                               disabled          = "</= SalesAreaDisabled />"
                                               tooltip             = "Test"
                                               width="200" />
    I'm using Design2002 as the display style. Could anybody please tell me what I have to do to make it work?
    Thanks,
    Leo

    did u try like this in th Iterator.
    method if_htmlb_tableview_iterator~render_cell_start .
      DATA: lo_text     TYPE REF TO cl_htmlb_textview,
            lo_ddlb     TYPE REF TO cl_htmlb_dropdownlistbox,
      FIELD-SYMBOLS: <dat> TYPE ANY.
      row_ref = p_row_data_ref.
      CASE p_column_key.
        WHEN 'SORT_NUM'.
          create object lo_ddlb.
          get reference  of lt_seq_no into lo_ddlb->table.
          lo_ddlb->id = p_cell_id.
          lo_ddlb->nameofkeycolumn   = 'ENTRY_KEY'.
          lo_ddlb->nameofvaluecolumn = 'ENTRY_VALUE'.
          lo_ddlb->tooltip                     = 'My Tool tip'.
          lo_ddlb->selection = get_column_value( p_column_key ).
          p_replacement_bee = lo_ddlb.
        WHEN OTHERS.
          CREATE OBJECT lo_text.
          lo_text->id       = p_cell_id.
          lo_text->wrapping = 'FALSE'.
          lo_text->text     = get_column_value( p_column_key ).
          lo_text->design   =  'STANDARD'.
          p_replacement_bee = lo_text.
      ENDCASE.
    ENDMETHOD.

  • Change the tooltip of selectively required field

    In the af:query, we mark some fields to be selectively required.
    However we want to have at least 2 fields to be selected instead of just 1 field when doing the search.
    Could we change the tooltip of the '**' from 'At least 1 is required' to 'At least 2 are required'?
    using jdev 11.1.1.7.0
    Thanks

    Hi,
    don't think you can. And if then still the logic would not be in-synch with the text. So if users would ignore the tooltip then they still could issue queries with a single selected value. So the enhancement request you want to file with customer support is to allow multiple required fields with a change to the tooltip then
    Frank

  • Default color of the tooltip background

    Hi, what is the default color of the tooltip's background?

    Swing related questions should be posted in the Swing forum.
    It depends on the LAF:
    UIManager.get("ToolTip.background");

  • Fire  the ToolTip in different way

    HI Coders
    I've extended Jpanel and I draw an Image inside it so that Jpanel is the viewport of the image.
    In usual circumstances when i mouse over the image's viewport the ToolTip execute ,but in my case I need to execute the ToolTipText without actually mouse over the image's viewport, instead I need to press a button which in turn execute the ToolTipText that registered with that image�s viewport.
    I was thinking about dispatching mouse event but it must be more ways, How can I provide such a performance in efficient way?
    Does the Jpanel able to capture mouse event ?
    (code please)
    thanks in advance
    Shay Gaghe

    You can do this only by implementing the MouseListener and coding the change in tool tip loginc in either, mousepressed or mouseclicked event.

  • SRQM_NOTES - how to disable the tooltip for the textfield

    Hello,
    in SRQM_NOTES the textarea represents this contextnote attribute:
    //BTTEXT/STRUCT.CONC_LINES
    How can we disable the tooltip for this textarea.
    It is not usable that there is a tooltip window in the way while a user tries to read the text behind the tooltip.
    Thank you.
    Kind regards
    Manfred

    Hi
    At the moment GET_P looks like this:
    METHOD get_p_conc_lines.
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_textarea.
        WHEN if_bsp_wd_model_setter_getter=>fp_textarea_rows.
          rv_value = 20.
        WHEN if_bsp_wd_model_setter_getter=>fp_tooltip.
          rv_value = space.
      ENDCASE.
    ENDMETHOD.
    Thank you
    Kind regards
    Manfred

  • How to show the tooltip in button

    Hi,
    I am using 11.1.1.4.
    I want to show the tooltip as button. so which tag i want to use and show the tooltip.
    Regards,Ragu

    'shortDesc' will help you.
    chk here
    http://jdevadf.oracle.com/adf-richclient-demo/faces/components/index.jspx
    Edited by: vinod_t_krishnan on Jun 6, 2011 4:02 PM

  • I'm not getting the tooltip in inspect mode. How do I get it?

    When I click inspect button in live view, I don't get the tooltip(one that highlights width, height, etc) when I hove over an element. 

    I am working on a project for school. I have been draging clips down to the timeline and matching it with a few voice overs. Nothing too complex. I have been previewing my work as I go by pressing the space bar, Im not sure what I did but now Premiere will not play the preview in the Program sequence window.

  • I want the tooltip of dvt graph(bar line combo) to be shown as percent.

    I want the tooltip of dvt graph(bar line combo) to be shown as percent.
    <dvt:y1Axis >
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Axis>
    <dvt:markerText rendered="false">
    <dvt:y1Format>
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Format>
    </dvt:markerText>
    Is anything wrong with my config.
    Thanks !

    I want the tooltip of dvt graph(bar line combo) to be shown as percent.
    <dvt:y1Axis >
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Axis>
    <dvt:markerText rendered="false">
    <dvt:y1Format>
    <dvt:numberFormat numberType="*NUMTYPE_PERCENT*" decimalDigit="0" scaleFactor="SCALEFACTOR_NONE"/>
    </dvt:y1Format>
    </dvt:markerText>
    Is anything wrong with my config.
    Thanks !

Maybe you are looking for

  • New (possible) Mac Mini Owner

    I am thinking of upgrading from my mid-2007 20-inch iMac (320GB/2GB RAM) to a Mac Mini (500GB/4GB RAM). i primarily use my desktop for writing, checking email, surfing the web and playing music/videos. i use my laptop for making music with logic -- i

  • EZServe Nightmare

    A little background:  I'm an avid THinkpad User, I've owned a T43 and my work computer is a T61P.  When the new t400's came out, I thought that this would be an excellent time to upgrade my system.  So, I bought a rocking T400 laptop with the 256 MB

  • What are .lct and .ldt files?

    Hello! I'd like to know what these .lct and .ldt files are. What is their purpose in migrating from one instance to the other

  • Report run very slow

    Hi From the SE30, the system call 'fetck MKPF' consume a lot of time, the code is like below. Could anyone please advise how to improve it? Thanks clear lt_temp1[].    select "a~mblnr          a~budat          b~matnr         b~MBLNR         b~zeile

  • Want to Join two tables with cursors

    Can anyone tell me how to join two tables only by cursors. Not with: 1.Joining condition 2.Procedure etc. Only cursors with passing parameters. Sowmya