Skip to main content

Highlighting combobox via Synth

No replies
danil.vodianik
Offline
Joined: 2011-05-16
Points: 0

Highlighting combobox via Synth
Hi, I'm trying to create a highlight for combobox in synth - no luck.
The main problem is in SynthContext.state variable value - it is "1" both on the mouse exited and mouse over events, instead of "3" on mouse over.

<style id="comboBox">
<object id="comboboxPainter" class="com.db.exlink.client.common.swing.synth.painter.ComboboxPainter"/>
<state>
<painter method="comboBoxBorder" idref="comboboxPainter"/>
<painter method="comboBoxBackground" idref="comboboxPainter"/>
</state>
<state value="MOUSE_OVER">
<painter method="comboBoxBorder" idref="comboboxPainter"/>
<painter method="comboBoxBackground" idref="comboboxPainter"/>
</state>
<state value="DISABLED">
<painter method="comboBoxBorder" idref="comboboxPainter"/>
<painter method="comboBoxBackground" idref="comboboxPainter"/>
</state>
</style>

I've found a related topic http://www.java.net/node/650880, but there is no source code :(
Maybe someone have and could drop an example of combobox style with highlighting?
Thanks.