___Adding a ToolTip to the JSplitPane arrows___

I have a JSplitPane that is set to OneTouchExpandable. I also disable the ability to have the user adjust the JSplitPane. Therefore, the user may only expand and contract the divider.
Now I want to add a tool tip to just the two arrows (< and >) at the top of the divider on the JSplitPane. I am not sure how to do this.
Any/All help is appreciated! Thanks!

If anyone happens to come across this...I ran into problems implementing the solution. I would appreciate help at the following link: http://forum.java.sun.com/thread.jsp?forum=57&thread=384435&start=0&range=15#1680600
Thanks!

Similar Messages

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • Problem while changing the JSplitpane in a dynamic way.

    Hi Everyone,
    In my application i'm changing the jsplitpane in a dynamic way.i'm posting the sample code thatz giving problem.Kindly compile and execute this.In the first frame i've done a split of two parts. The top component has got the name of the application and the bottom component has got some links related to that application. If the user click on this link ,i'm capturing the bottom component alone from the original splitpane and i'm breaking that into another split.
    upto this every thing works fine.Now the problem is when ever the user click on that link it'z capturing that event and doing consecutive split on the bottom frame.But i need that paricular split that user has already got to be repainted for all the time when user click on the link.Eventhough i've captured the main splitpane object in some other variable and assiging the same to the second window when user click on that url.But itz not recognizing that.
    Kindly some one help me to resolve this.
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.GridBagLayout;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.util.Vector;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JSplitPane;
    public class Test2 extends JPanel // implements KeyListener
        static Vector<String> arrAppName = new Vector<String>();
        public static JSplitPane splitPane,splitPane2;
        public void AppWin(final JFrame frame)
            Container contentPane = this;
            GridBagLayout gb = new GridBagLayout();
            contentPane.setLayout(gb);
            arrAppName.add("link");
            JLabel lab = new JLabel("<html><font color=#6698FF><a href>" + arrAppName.get(0) + "</a></font></html>");
            contentPane.add(lab);
            JScrollPane listScrollPane = new JScrollPane(contentPane);
            JLabel label = new JLabel("APPLICATION REPORT", JLabel.CENTER);
            Font font = label.getFont();
            Font font3 = font.deriveFont(25.0f);
            label.setFont(font3);
            label.setFont(label.getFont().deriveFont(Font.ITALIC));
            label.setHorizontalAlignment(JLabel.CENTER);
            label.setForeground(new Color(0x736AFF));
            JScrollPane labelScrollPane = new JScrollPane(label);
            labelScrollPane.setVisible(true);
            // Create a split pane with the two scroll panes in it.
            splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
            splitPane.setTopComponent(labelScrollPane);
            splitPane.setBottomComponent(listScrollPane);
            splitPane.setDividerLocation(100);
            Dimension minimumSize = new Dimension(100, 50);
            listScrollPane.setMinimumSize(minimumSize);
            labelScrollPane.setMinimumSize(minimumSize);
              splitPane2= new JSplitPane();
              splitPane2=splitPane;
            lab.addMouseListener(new MouseListener()
                public void mouseClicked(MouseEvent arg0)
                    displayMainFrame("link", frame);
                public void mousePressed(MouseEvent arg0)
                public void mouseReleased(MouseEvent arg0)
                public void mouseEntered(MouseEvent arg0)
                public void mouseExited(MouseEvent arg0)
        public void buildWindow(String link, JFrame frame)
            Container contentPane = this;
            GridBagLayout gb = new GridBagLayout();
            contentPane.setLayout(gb);
            JLabel label = new JLabel("Next Screen", JLabel.CENTER);
            Font font = label.getFont();
            Font font3 = font.deriveFont(25.0f);
            label.setFont(font3);
            label.setFont(label.getFont().deriveFont(Font.ITALIC));
            label.setHorizontalAlignment(JLabel.CENTER);
            label.setForeground(new Color(0x736AFF));
            JScrollPane buildWindowtop = new JScrollPane(label);
            buildWindowtop.setVisible(true);
            contentPane.add(buildWindowtop);
           /*assigning the main split pane object for all the consecutive call*/
            splitPane=splitPane2;
            JSplitPane splitPane1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
            splitPane1.setTopComponent(splitPane.getBottomComponent());
            splitPane1.setBottomComponent(contentPane);
            splitPane.setBottomComponent(splitPane1);
            splitPane.setOneTouchExpandable(true);
            splitPane.setDividerLocation(100);
            Dimension minimumSize = new Dimension(100, 50);
            buildWindowtop.setMinimumSize(minimumSize);
            splitPane1.setMinimumSize(minimumSize);
        } // end printing rows
        public static void displayFrame(String tname, JFrame framedisp, String buttonName, String tranCorrID,
            String buttonOption, JSplitPane buildSplit)
            Test2 mainDispPane = new Test2();
            framedisp.getContentPane().add(splitPane);
            framedisp.setVisible(true);
        public static void displayMainFrame(String link, JFrame framedisp)
            Test2 mainDispPane = new Test2();
            mainDispPane.buildWindow(link, framedisp);
            framedisp.getContentPane().add(splitPane);
            framedisp.setVisible(true);
        public static void main(String[] args)
            JFrame frame = new JFrame("MAIN WINDOW");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            Test2 mainPane = new Test2();
            mainPane.AppWin(frame);
            frame.getContentPane().add(splitPane);
            frame.setSize(1280, 1000);
            frame.setVisible(true);
        } // end main
    } // end Test2Thanks in Advance,
    Siva.

    anybody can help me this regard?

  • FPM: Tooltip for the start button

    Hi FPM experts,
    I have one question/requirement concerning the start button within the FPM GAFfloorplan. I would like to add a tooltip to that button. I know that this button is part of the FPM and can not be influenced during design time.
    Nevertheless I hoped to be able to influence the button during runtime, namely by using the interface  IF_FPM_CNR_GAF and the method DEFINE_BUTTON. According to the Developers Guide for FPM Release 701 this should work for standard buttons. However I did not succeed in using this method.
    When taking a closer look at the signature I also became aware that there is one parameter missing in the signature of the interface that is described within the Developers Guide (IV_SCREEN): To the best of my knowledge this parameter is not available in 7.01/7.1 systems.
    Any help on that topic is appreciated!
    Thanks
    Christian

    Hi,
    Is this your previous thread?
    http://answers.microsoft.com/en-us/windows/forum/windows_7-desktop/how-to-display-tooltip-for-the-start-menu-items/c93e5457-0ac6-4bbd-8a54-ffacbeadf34f
    I have checked with some Windows 7 machines in workgroup, and they are all no infotips from the start menu items, this might by design.
    Besides, please take a look at the below links:
    Start Menu
    Best regards
    Michael
    Michael Shao
    TechNet Community Support

  • Setting tooltip when the content of the cell is not visible in jtable

    hello,
    i want to set a tooltip when the content of the cell is not visible in jtable
    please guide me.
    thanks
    daya

    thanks for your replay,
    i did in this way
    final TableColumn colTableColumn = getColumnModel().getColumn(vColIndex);
                        if (colTableColumn.getWidth() < this.getPreferredSize().width)
                            setToolTipText(value.toString());
                        else
                            setToolTipText(null);
                        }thanks
    daya

  • How to add Tooltip to the Iview name.

    hi all,
         I have to add tooltips to the iview name. When I bring the mouse over the iview
         name a message should display as the tooltip describing the purpose of the
         iview I am not able to found the tooltip option in the iview properties.
         Is there any coding involved for tooltips option or any other options available.
         Please guide me. Looking for the fast reply.
         Thanks in advance.
    Ponnusamy.P

    hi Deepti,
         When I gave the descripition, tool tip appears in the
         Content Admin -> Portal Content -> (Under the folder I have created the Iview).
         But the tool tips should appear in the iview when I display that iview to the end
         user.How to make that possible.
    Thanks
    Ponnusamy P

  • Tooltip for the Navigation Node - language dependent / translation?

    Is it possible to provide language dependent Tooltip for the Navigation Node.
    I tried the Portal content translation, but there was no possibility to translate the tooltip.
    Talking about this:
    Property ID: com.sap.portal.navigation.Tooltip
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/49/32a70ee8c45aaae10000000a42189d/frameset.htm

    Hi Van Vi,
    when I get your question right, you are looking for a possibility to change the text of the navigation items, not the text inside a content page, correct?
    I am using MII 12.0.2. The workaround for me was to create different roles like "XMII User EN", "XMII User DE" which contain the navigation item in the according language. The content pages contain tags like Michael mentioned, e.g. {##LBL_KEYWORD} in an *.irpt page. Those tags are set using the language set for the user in the NetWeaver UME.
    Michael, is there a possibility to use this {} notation in the navigation in 12.1, so I do not have to create language based roles?
    Michael

  • Center the JSplitPane divider inside a Jframe.

    I am trying to use the JSplitPane class. I want to set the divider in the middle of the Jframe it is in. I have size the Jframe to 500,500 and set the divider to 250. The problem is if you include the title bar of the Jframe then it looks like it is in the right spot but I don�t want to include the title bar I just want the internal part of the frame to be divided in half not the whole Jframe. Any suggestion on how to do that? Also how do you keep the divider in the center when the Jframe is resized. Thanks.

    setDividerLocation(0.5d) should do the job. if you want to set this in the constructor of your container, you should do this after everything else is done, somethinglike
    SwingUtilities.invokeLater(new Runnable()
    public void run()
    xxx.setDividerLocation(0.5d);
    });

  • Tooltip on the header of JSF table Component

    How to add an Tooltip to the header of the JSF table copmponent?
    Please reply....

    You normally use the HTML 'title' attribute for this. Almost every JSF HTML component also supports it.

  • JCombox clicked shows dropdown, show tooltip for the dropdown

    Hi,
    I want to provide the tooltip for the dropdown of JCombobox for the whole or tooltip to the item where you move the mouse but not click.
    thanx

    Another note.. just found out that it doesnt work with Windows Look And feel... if i use the default, everythings just fine.. Her is the code: What am I doing wrong?
         private class UccComboBoxRenderer extends BasicComboBoxRenderer
              public Component getListCellRendererComponent(
                   JList list,
                   Object value,
                   int index,
                   boolean isSelected,
                   boolean cellHasFocus)
                   if (isSelected)
                        setBackground(list.getSelectionBackground());
                        setForeground(list.getSelectionForeground());
                        if (-1 < index)
                             list.setToolTipText(value.toString());
                   else
                        setBackground(list.getBackground());
                        setForeground(list.getForeground());
                   setText((value == null) ? "" : value.toString());
                   return this;
         }

  • JSplitPane: how can I close one side of the jsplitpane?

    Hi!
    I have a jsplitpane component on my frame. I want to close one side of the jsplitpane when my program loads. And after some time I want to open it back..
    Do you happen to know how can I do that?

    Either you have not read the complete thread or you have not followed instructions correctly. Instead of adding HierarchyListener on JSpliPane, you are playing with divider before realization of split pane on screen.
    Here is modified code [This works 100%]:
    import java.awt.*;
    import java.awt.event.HierarchyEvent;
    import java.awt.event.HierarchyListener;
    import javax.swing.*;
    import javax.swing.plaf.basic.*;
    public class MySplit {
        private static void createAndShowGUI() {
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            final JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
                    new JButton("first"),
                    new JButton("second"));
            splitPane.setOneTouchExpandable(true);
            splitPane.setDividerLocation(150);
            splitPane.setPreferredSize(new Dimension(400, 400));
            splitPane.addHierarchyListener(new HierarchyListener() {
                public void hierarchyChanged(HierarchyEvent e) {
                    if ((e.getChangeFlags() & HierarchyEvent.SHOWING_CHANGED) != 0) {
                        BasicSplitPaneUI ui = (BasicSplitPaneUI) splitPane.getUI();
                        BasicSplitPaneDivider divider = ui.getDivider();
                        JButton button = (JButton) divider.getComponent(1);
                        button.doClick();
            BasicSplitPaneUI ui = (BasicSplitPaneUI) splitPane.getUI();
            BasicSplitPaneDivider divider = ui.getDivider();
            JButton button = (JButton) divider.getComponent(1);
            button.doClick();*/
            frame.getContentPane().add(splitPane);
            frame.pack();
            frame.setVisible(true);
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();
    }Thanks,
    Mrityunjoy

  • How to add the ToolTip to the liitle widgets in the JSplitpane

    Hi,
    I have a JSplitPane.I have set the setOneTouchExpandable() to true due to which I will get a little widget provided to quickly expand/collapse the split pane i.e i have two widgets to expand and collapse.Now i want to give tooltip to these widgets.
    How to give this.
    Thanks & regards
    Neel

    Then let the OP respond to the answer and provide
    more information.
    I answered the question as asked: "Now i want to give
    tooltip to these widgets."I'm sorry but I disagree (if I may). This question is way clearer than many I've seen today.
    In any case, just for the OP to see how hideous a hack this may lead to :import javax.swing.*;
    import javax.swing.plaf.basic.BasicSplitPaneDivider;
    import java.awt.*;
    public class SplitPaneToolTipTest {
         public static void main(String[] args) {
              final JFrame frame = new JFrame(SplitPaneToolTipTest.class.getName());
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              final JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, new JLabel("1"), new JLabel("2"));
              splitPane.setOneTouchExpandable(true);
              int componentCount = splitPane.getComponentCount();
              for (int i = 0; i < componentCount; i++) {
                   Component comp = splitPane.getComponent(i);
                   if (comp instanceof BasicSplitPaneDivider) {
                        BasicSplitPaneDivider basicSplitPaneDivider = (BasicSplitPaneDivider)comp;
                        int subComponentCount = basicSplitPaneDivider.getComponentCount();
                        if (subComponentCount == 2) {
                             ((JButton)basicSplitPaneDivider.getComponent(0)).setToolTipText("Left");
                             ((JButton)basicSplitPaneDivider.getComponent(1)).setToolTipText("Right");
              frame.setContentPane(splitPane);
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        frame.pack();
                        frame.setVisible(true);
    }

  • Can I show tooltips of the coordinates where ever i point my mouse on the chart's line?

    I had build a Linechart and the problem is I want to show tooltip that can show its coordinate when ever i hover my mouse on the line. Is there a way to do that?

    You can use the DataTipFunction of Charts ,The following code shows how to get x and y coordinates.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.charts.HitData;
                import mx.collections.ArrayCollection;
                [Bindable]
                private var arr:ArrayCollection=new ArrayCollection();
                private function init():void
                    for(var temp:int=0;temp<30;temp++)
                        arr.addItem({Y:Math.sin(temp)});
                private function dtf(hd:HitData):String
                    return "X->"+hd.x+" Y->"+hd.y;
            ]]>
        </mx:Script>
        <mx:LineChart id="lineChart" dataProvider="{arr}" dataTipFunction="dtf" showDataTips="true">
            <mx:series>
                <mx:LineSeries yField="Y" />
            </mx:series>
        </mx:LineChart>
    </mx:Application>

  • Move tooltip with the cursor

    Hi All,
    I developed an appplication in flex.In my application i placed an image and set the tooltip property.I also changed the image Hand cursor property to true.Here i need that,the tooltip must be move withe hand cursor.Please let me know the solution.
    Thanking You.

    I would try this (as I'm not sure how the Flex tooltip works exactly) - when you show the tip add an enterFrame eventListener to it and update its position based on the mouse. When you remove the tip, remove the listener.

  • 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

Maybe you are looking for