Bonjour,

J'utilise un SynthPainter pour mes tooltips.
J'ai une Jtable et j'ai ajouté un tooltip sur des cellules en particulier.
J'ai définit dans mon xml les bordures et le background ne mes tooltips.

Sauf que la bordure ne s'affiche pas.

Voici mon xml :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
<style id="toolTipStyle">
        <insets top="2" left="2" bottom="2" right="2" />
        <opaque value="true" />
        <defaultsProperty key="ToolTip.colorBackground" type="idref" value="couleur_TootTip_Background" />
        <defaultsProperty key="ToolTip.colorBorder" type="idref" value="couleur_TootTip_Border" />
        <state>
            <painter idref="MySynthPainter" method="toolTipBackground" />
            <painter idref="MySynthPainter" method="toolTipBorder" />
        </state>
    </style>
    <bind style="toolTipStyle" type="region" key="ToolTip" />