I made to tool tip for comportment in swing using some html tags
_graph.setToolTipText("<html><div style=\"width: 300px; height: 100px;"
+ " overflow: auto; border: 0;<p style=\"padding:2 5 2 5;\"></div>Please Wait...");
Here _graph
is object of component. Problem is, if data is exceeds I need to scroll but it is not happening.please anyone suggest me to make scrollbar.
Default tooltips are very basic: simply a lable-like component, even limited to text-only (except html). As I already mentioned, the way to more fancy tooltips is to extend JTooltip and let your graph component return that custom tooltip in createTooltip. An example and some pitfalls were recently discussed over at OTN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With