-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jtable and JTabbedPane tooltips does not have "weblaf style" #202
Comments
It not that "does not look like as other WebLaF tooltips" - its more like "those common Swing tooltip look differently from custom WebLaF tooltips". But that is a limitation of common Swing tooltips styling and this is why I have introduced custom tooltips manager into WebLaF. Unfortunately, custom tooltips cannot be set for those cases yet and for some others (tree/table/list renderers and such), but it will be possible with later updates. Some of those improvements are coming with v1.29. |
Thanks again for clarification and thumbs up for future updates! 👍 |
Thanks :) |
If I may comment, the white on black tool-tips are one of my favourite looks in web-laf, I think they look pretty slick. |
Sure, depends on project. Those ones particular are pure Swing ones.. |
Possibly linked with #471 |
Short list of planned tooltip changes: #520 |
- ToolTipProvider.java, AbstractToolTipProvider.java - Improved custom tooltip API, added extra `null` checks - ComponentArea.java - Added method for checking area availability at any given time - TableToolTipProvider.java - Changed default direction to `up` as more sensible for common case TabbedPane [ #202 ] - TabbedPaneToolTipProvider.java, TabbedPaneCellArea.java - Custom tooltip provider for `JTabbedPane` and it's area settings - WebTabbedPane.java - Added custom tooltip provider support that can be used instead of basic Swing tooltips - WebTabbedPane.java - Tooltip provider can also be specified through `tooltipProvider` client property for `JTabbedPane` support - WTabbedPaneUI.java - Added new listener for retrieving and displaying custom tooltips Table [ #202 #471 ] - TableHeaderToolTipProvider.java, TableHeaderCellArea.java - Custom tooltip provider for `JTableHeader` and it's area settings - WebTable.java - Added custom tooltip provider support for header that can be used instead of basic Swing tooltips - TableHeaderPainter.java - Added new listener for retrieving and displaying custom tooltips - WebTable.java - Table header tooltip provider can also be specified through `headerTooltipProvider` client property for `JTable` support - WebTable.java - Table tooltip provider can now be specified through `tooltipProvider` client property for `JTable` support - TablePainter.java - Updated to retrieve custom tooltip provider from client properties List - WebList.java - Tooltip provider can now be specified through `tooltipProvider` client property for `JList` support - WebListUI.java - Updated to retrieve custom tooltip provider from client properties Tree - WebTree.java - Tooltip provider can now be specified through `tooltipProvider` client property for `JTree` support - WebTreeUI.java - Updated to retrieve custom tooltip provider from client properties Utilities - GeometryUtils.java - Added methods for retrieving non-`null` rectangle containing specified non-`null` rectangles DemoApplication - TabbedPaneTooltipExample.java - New example showing Swing and custom tabbed pane tooltips in action - WebTableExample.java, WebListExample.java, WebTreeExample.java - Added new previews with custom tooltips - TableTooltipExample.java, ListTooltipExample.java, TreeTooltipExample.java - Replaced `Web`-components with `J`-components - demo-language.xml - Added multiple translations for new demo examples and updated some of the older ones - ExamplesFrame.java - Removed pointless feature state legend, it will be coming back later in new light - extension.xml - Disabled coloring for the different feature states until future improvements to avoid confusion
Related improvements have been implemented and will be available in v1.2.10 update. Shortly - now you're able to provide table header and tabbed pane custom tooltips in a similar way how it was possible in list, tree and table cells. There are some new related examples available in the the demo application. Also all of the custom tooltip providers are now set through Here is an example with two providers set in final JTable table = new JTable ( ... );
table.putClientProperty ( WebTable.HEADER_TOOLTIP_PROVIDER_PROPERTY, new TableHeaderToolTipProvider<String> ()
{
@Nullable
@Override
protected String getToolTipText ( @NotNull final JTableHeader tableHeader,
@NotNull final TableHeaderCellArea<String, JTableHeader> area )
{
return "My header tooltip";
}
} );
table.putClientProperty ( WebTable.TOOLTIP_PROVIDER_PROPERTY, new TableToolTipProvider<Object> ()
{
@Nullable
@Override
protected String getToolTipText ( @NotNull final JTable table,
@NotNull final TableCellArea<Object, JTable> area )
{
return "My cell tooltip";
}
} ); Respective public static properties can be found in all |
use the code all the table cell show tips.how to set some table cell not show tips? |
@wyj3531 |
Tooltips for
![2014-11-15_23-03-47](https://cloud.githubusercontent.com/assets/944282/5059450/e067fa08-6d1b-11e4-9f6f-848d39690aab.png)
![2014-11-15_23-05-59](https://cloud.githubusercontent.com/assets/944282/5059453/fccb8d18-6d1b-11e4-9c15-53e9f5eb446d.png)
JTable
headers/cells andJTabbedPane
tabs does not look like as other WebLaF tooltips. Is that feature or issue? (maybe same problem as in #180 ??)The text was updated successfully, but these errors were encountered: