Is it possible to create a tool tip for an individual cell?

Hi,
Is it possible to create a tool tip for an individual cell?
Sun's JTable tutorial shows how to create a tooltip for an individual column:
TableColumnModel tcm = table.getColumnModel();
TableColumn tc = tcm.getColumn(0);
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setToolTipText("This is a tool tip text");
tc.setCellRenderer(renderer);
Thank you.

See reply #2 below:
http://forum.java.sun.com/thread.jsp?forum=57&thread=424429
;o)
V.V.

Similar Messages

  • Creating a "Tool Tip"  for an image

    Is there a dreaweaver extension for creating a "tool tip" for
    an image, or how do i create one?
    Thanks for your help
    Jim

    Jim,
    Put your tooltip text in the title attribute.
    HTH,
    Randy
    > Is there a dreaweaver extension for creating a "tool
    tip" for an image, or how do i create one?

  • Howto set tool tip for a row in JTable

    I want to set a seperate tool tip for each of the rows in JTable. I tried getting cell renderer of all columns in a row and then setting tool tip for them. I expected that setting tool tip for a cell renderer will set tool tip for that cell. Thus setting tool tip for all the cells in a row will indirectly set tool tip for that row. But it does not happen that way. By setting a tool tip for a renderer it will use that tool tip for all those cells which use that renderer.
    Is there any problem in my approach or we cannot do this in Java.
    regards.

    Thanks.You're wellcome.
    >
    I just saw this method in JComponent and realized this
    solution.
    But then thought that for doing this i'll have to
    create my JTable class for just overiding one method
    thereby increasing one more level of abstraction.Well, you could override the method in an inner class if I understand you correctly in assuming that you don't want to create a JTable as new separate class. You could do this:
    JTable yourtable = new JTable() {
      public String getToolTipText( MouseEvent e ) {
        return getToolTipForRow( rowAtPoint( e.getPoint() ));
    // some where else in your class
    getToolTipForRow( int row ) {
      // determine your tooltip here
    }I think this would be a bit nicer and slightly faster approach because as far as I understand the getToolTipText() method is called after a similar MouseEvent for every JComponent i.e. a small pause of cursor movement over the component in question. I admit that I haven't tested either approach myself but noticed that JTable actually overrides the getToolTipText( MouseEvent e) method already. In your code you determine and set the tooltip every time the mouse moves. If you override getToolTipText( MouseEvent e) you have to determine the tooltip text only when the tooltip is actually about to be shown.
    Regards, JMorko

  • Tool Tip for each JComboBox entry while moving mouse on them

    What is the best way to implement a different tool tip for each entry in the combobox. Moreover, while moving the mouse over any entry the tooltip should be visible.

    I'm not sure you can attach a tooltip to a JComboBox item, since these elements are not user interface elements, there may be anything(Integers, Strings, Icons,...). So how can you attach a tooltip to an Integer ?
    I mean, in a menubar, you can attach a tooltip to a menu item, because there's this user interface object called JMenuItem wich has a tooltip text propertyinfo... but what about items in a JComboBox ?
    I'm curious to know if this is possible.
    Diego

  • Tool Tip for Top Level Navigation - EP6SP2?

    Hi,
    Is it possible to provide tool tip for top level navigation.
    We have only one level TLN and Detail Navigation. On mouse over of TLN objects is it possible to provide tool tip?
    Thanks.

    Hi Raja,
    as Pankaj stated, the NavTagLib is the answer - but: it needs the LightFrameworkPage. And both together at the moment for example doesn't support Collaboration, means, if you click on some room, bang, error messages and nothing does work as expected.
    If you don't need CollRooms, you might give it a try.
    In addition, you can check out the "Hover effect", see http://help.sap.com/saphelp_nw04/helpdata/en/53/a16a3e54a2e946e10000000a114084/frameset.htm - it's probably not really what you want, I just want to point to that possibility (working within the standard framework page) for a complete overview.
    The last possibility is to modify com.sap.portal.navigation.toplevel; the TLN entries are rendered through toplevelnavigation.js, methods printLevel/printLevel1Table/printLevel2Table.
    Hope it helps
    Detlev

  • Is it possible to create many primary key for a table?

    hello sir/mam.
    i am selva, i am new to abap,
    is it possible to create many primary key for a table?
    please guide me.

    Hi Selva,
    Many Primary Keys = Composite Key.
    i.e some set of columns will enable you to identify a unique row from a set of rows in the table.
    This can be achieved by checking the primary key check box in se11.
    Hope it helps.
    Regards,
    Maheswaran.B
    Message was edited by: Maheswaran B

  • Tool tips for selection list

    I want to display a tool tip for the values in a selection list in a HTML form in a JSP page. I have tried setting the title attribute on option tag but it does not work.
    Does anyone know how to do this?
    Thank you in advance

    bump

  • Possible to create a custom renderer for rendering standard component ?

    This is in context for creating dynamic Data tables. Is it possible to create a custom Renderer for rendering component (standard) without creating a custom component?
    namanc

    Let's assume you want to create a custom renderer which will be used to render the error-messages (the h:messages tag). The component-family in this case is: javax.faces.Messages, the renderer-type javax.faces.Messages.
    Therefor in your application's faces-config.xml add this renderer-statement (inside a render-kit, obviuosly):
    <faces-config>
      <!-- other stuff like components, managed beans, navigation-rules,... -->
      <render-kit>
        <renderer>
          <component-family>javax.faces.Messages</component-family>
          <renderer-type>javax.faces.Messages</renderer-type>
          <renderer-class>my.very.special.MessagesRenderer</renderer-class>
        </renderer>
      </render-kit>
      <!-- other renderers... -->
    </faces-config>The code for MessagesRenderer is very dependent on your needs, therefor I will not post something here. Basically you need to extend javax.faces.render.Renderer. For help in that camp, surf to the online tutorials or get yourself a book (I learned a lot from Kito Mann's "JSF in Action"). Additionally grab the source for Sun's RI AND Myfaces and dig into that java-code. There is a huge learning potential looking at that source-material.
    hth
    Alexander

  • Is it possible to create an inbound delivery for STO in a 2 step process ?

    Hi Experts,
    Is it possible to create an inbound delivery for STO in general (how do I get a vendor for a Plant. I have already assigned a plant to my vendor in vendor master - additional purchasing data, but it does not seem to work).
    In particular if I want to create an inbound delivery in intra-company plant STO scenario, how do i do it?
    Let me know in case if that is not possible.
    Thanks,
    Nitin

    Hi Tao,
    I did that also, but it did not work.
    Finally I had to debug, and found that the for the document type UB (intra-company transfer) i should make the customizing setting which makes the vendor data to be considered. (Table T161).
    Anyways, thanks for your help.
    Regards,
    Nitin

  • Tool Tip for a screen field.

    Hi,
    I have a step loop defined in a screen. I want to show tool tip for the each column. Please let me know how can i do it?
    I would really appreciate it.
    Regards,
    Sanjeev

    hi,
    &#56256;&#56452; If the meaning of a button cannot be perceived because of short or abbreviated label texts, a detailed description should be available in a tool tip.
    • To insert a tool tip, proceed as follows: In the Screen Painter element list, choose the “General Attributes” tab and the “Property List” column; or the “Properties” pushbutton in the “Layout” display on the “Attributes” window. Insert the “TooltipText” property to assign a tool tip. This function is only avail-able with R/3 Enterprise or Basis SP 44 (Release 4.6C) and higher.
    &#56256;&#56452; Always provide a tool tip on icon-based buttons.
    &#56256;&#56452; If a button contains both a text label and an icon, the button must have a tool tip that in-cludes the text description of the meaning of the icon. If the label text and the icon both convey the same information, no tool tip is required if the text is recognized by assistive technology.
    &#56256;&#56452; If a keyboard shortcut (e.g. Ctrl+F3) is available, add this information to the tool tip text.
    &#56256;&#56452; If a button handles the “Enter” keystroke, the button’s tool tip should provide this “Default Button” information.
    &#56256;&#56452; Recommendation: Important buttons provide an optional icon and a mandatory caption text. Align important buttons in the order in which they are read: in Western countries, the most important buttons are aligned left. Standard buttons (such as “Save”, “Back”, “Search”, “Next Object”, or “Previous Object”) should not have an additional caption text.
    Also chk this link:
    http://www.sapdesignguild.org/resources/Accessibility_Guideline_ABAP_external_Version.pdf
    regards,
    keerthi

  • Regarding ALV control: Tool tip for column data

    Hi Group,
    How can I give the tool tip for the data in ALV grid? For column headers I know that, but for the data in the colums how do I give the tool tip info.
    Regards,
    Kummi.

    Hello Kummi
    If you want to have a specific tooltip for an icon displayed in an ALV grid cell then you can use:
    @08<b>\Q</b> <tooltip text><b>@</b>  " shows own tooltip for icon @08@
    I am not sure if the same trick works for "normal" cell values. You may give it a try.
    Regards
      Uwe

  • Is it possible to create a customs declaration for the document which is cleraed from customs

    Hi Experts,
    I want to generate a custom declaration for the declaration which is cleared from customs.
    Is there any function module for this requirement.
    Please post your suggestions ASAP.
    Thanks
    Srinivas

    hi Srinivas,
    It’s not possible to create a new declaration for a declaration that is
    already accepted by customs. There could be below 2 possible options
    1. U need inbound cancellation messages in the respective activity sequence,
    and then u can request customs by mail or phone to send the cancellation
    message. Once the cancellation message is received document gets cancelled and
    u can create new declaration
    2. U need a new optional activity sequence that will have outbound
    cancellation message. once u trigger the cancellation message, customs will
    reply back with the cancellation confirmation message and u can create a new
    declaration
    Hope this helps...
    Regards,
    Santosh

  • Tool Tip for ALV report.

    Hi all,
    In my ALV report, I am using structure 'slis_fieldcat_alv' for field catalogue.
    I want to implement Tool-tip for the lay-out.Can anybody please tell me which field shall i populate the message to make tool-tip working in my report.
    Thanks,
    Anirban.

    Hi Anirban,
    for each field you will provide the following options :
    SELTEXT_S = Which holds 10 chars length
    SELTEXT_M = Which holds 20 chars length
    SLETEXT_L = = Which holds 40 chars length
    REPTEXT_DDIC == Which holds 40 chars length == This field only display the tooltip for the respective column. If this one is empty then it won;t display the tooltip.
    Warm Regards,
    Vijay

  • No provision to provide Tool tip for Default Panel Collection Components

    "View" is a default menu item provided by Panel Collection Component. The "shortDesc" property can set the tool tip for entire panel collection.
    How to set the tool tip specifically for the default components given by panel collection component ?

    Hi,
    panel collection labels and tool tips can be changed through skinning See http://docs.oracle.com/cd/E21764_01/apirefs.1111/e15862/toc.htm and search for af:panelCollection and go to the Resource String section. So far the good news. The bad news is that there is no skin selector to change the tool tip of the "View" menu option (though yo can change the label through af_panelCollection.LABEL_MENU_VIEW). If you need this, please file an enhancement request through customer support.
    Frank
    Ps.: Skinning is documented here: http://docs.oracle.com/cd/E21764_01/web.1111/b31973/af_skin.htm#BAJFEFCJ

  • How to set tool tips for graphic objects.

    Hi
    i have a code like this
    here dst is graphic object but i casted ti Graphic2D object because i have to set back ground color.
    Graphics2D lGraphic = (Graphics2D) dst;
    lGraphic.setBackground(Color.RED);
    lGraphic.clearRect((int) lx, (int) ly, (int) lw + 1, (int) lh + 1);
    lGraphic.drawRect(0, 0, (int) lw, (int) lh);
    so now i want to set a tool tip for this lGraphic Object.
    can any body please post answer for this proble.
    if you will post in advance it will help me a lot.

    so now i want to set a tool tip for this lGraphic Object.Your concepts are all wrong. Read the API for java.awt.Graphics and try to understand that a Graphics object is akin to a paintbrush: it has methods to draw whatever is to be drawn. The painting is not the brush, the brush does the painting.
    To obtain a custom tooltip at certain locations within a JComponent, I think the easiest way is to override getToolTipText(MouseEvent me). The method can return null for locations where a tooltip is not to be shown.
    db

Maybe you are looking for

  • MRP list in R3

    When we run MRP ,then purchase requisitions we get from me5a and plan orders from coois,is there any command which gives MRP result together.

  • Java.lang.OutOfMemoryError in UCM

    hi all, We are getting the following error in Oracle UCM since last night: Event generated by user 'weblogic' at host 'CIS'. System code execution error. java.lang.OutOfMemoryError: getNewTla. [ Details ] An error has occurred. The stack trace below

  • Unordered group with JAXB

    hi all Can any please tell me how to use <xs:all> in JAXB? I have been finding the solution to this problem for long time and I really have to give up if I can't find the answer here. Please help I need to finish my work with very limited time now. O

  • Moving podcast from Music Folder into Podcast Folder

    I recently noticed that a podcast I had downloaded ended up in the Music folder of the library instead of the Podcast folder. Is there a way to "move" it into the Podcast folder?? I tried dragging it, but that doesn't work. Any suggestions (I can't r

  • Creating Zmethods & ZEvnts in  Workflow Plz give me Code sample if u have

    hi, i want to create my own methods and events in workflow plz help me. do needful to me. Regards, Aniruddha.