JTooltip « Component « Java Swing Q&A





1. How to change the jtooltip timers for 1 component    stackoverflow.com

I have a component where i want to display a custom jtooltip. That is easy, just change the getTooltip method. Similar for location and text. However i also want to change the ...

2. use of a JToolTip    stackoverflow.com

I want to use that class and not call on a JComponent setToolTipText method but the code below not show the tooltip:

JButton btn = new JButtn("SAVE");
JToolTip tip_for_button = new JToolTip();
tip_for_button.setTipText("blah blah");
tip_for_button.setComponent(btn);
why?

3. JToolTip alignment issues    stackoverflow.com

I have a JToolTip attached to the onclick event of a JTextField. I want the JToolTip to popup aligned with the right edge of the JTextField instead of its left edge as ...

4. How to change the background color of a JToolTip using Nimbus LookAndFeel?    stackoverflow.com

In a Swing-based Java application using Nimbus LookAndFeel I try to set the background color of my tooltips. So I created a subclass of JToolTip and used it in my components ...

5. JToolTip    coderanch.com

7. JToolTip Problems    coderanch.com

This code seems passable for my situation: public Point getToolTipLocation(MouseEvent event) { Point result = null; Component l_topFrame = MainView.this; //(Top Level Frame) int l_topHeight = l_topFrame.getHeight(); if (l_topHeight > Toolkit.getDefaultToolkit().getScreenSize().getHeight() - 50) { result = new Point(0, 0); } return result; } I override this method in each of the components in my status bar. Does anyone know how to ...

8. Customizing JToolTip    coderanch.com