K
Kgbol
Hi , when i tried to create 2 different styles of check boxes in xml
file the program had an exception, and used default look and feal. I
put this styles like that:
<style id="cB1">
<imageIcon id="check_off" path="images/dziel.png"/>
<imageIcon id="check_on" path="images/dzielZaznaczony.png"/>
<property key="CheckBox.icon" value="check_off"/>
<state value="SELECTED">
<property key="CheckBox.icon" value="check_on"/>
</state>
</style>
<bind style="cB1" type="name" key="box1"/>
<style id="cB2">
<imageIcon id="check_off" path="images/razy.png"/>
<imageIcon id="check_on" path="images/razyZaznaczony.png"/>
<property key="CheckBox.icon" value="check_off"/>
<state value="SELECTED">
<property key="CheckBox.icon" value="check_on"/>
</state>
</style>
<bind style="cB2" type="name" key="box2"/>
when i comment one of those styles the program uses Synth look & feel.
My question is, why does it happen? And can i do somenthing about it.
file the program had an exception, and used default look and feal. I
put this styles like that:
<style id="cB1">
<imageIcon id="check_off" path="images/dziel.png"/>
<imageIcon id="check_on" path="images/dzielZaznaczony.png"/>
<property key="CheckBox.icon" value="check_off"/>
<state value="SELECTED">
<property key="CheckBox.icon" value="check_on"/>
</state>
</style>
<bind style="cB1" type="name" key="box1"/>
<style id="cB2">
<imageIcon id="check_off" path="images/razy.png"/>
<imageIcon id="check_on" path="images/razyZaznaczony.png"/>
<property key="CheckBox.icon" value="check_off"/>
<state value="SELECTED">
<property key="CheckBox.icon" value="check_on"/>
</state>
</style>
<bind style="cB2" type="name" key="box2"/>
when i comment one of those styles the program uses Synth look & feel.
My question is, why does it happen? And can i do somenthing about it.