将Synth图像绑定到面板和文本框

时间:2018-08-09 14:35:04

标签: java xml look-and-feel synth

我的程序知道我的资源在这里。但是,当我运行程序时,要在GUI上应用的图像无法加载。

这是我的Synth XML。这是我的文本框的示例:

<style id="textBoxStyle">
    <!-- <insets top="2" left="4" bottom="2" right="4"/> -->
    <state>
        <imagePainter method="paintTextFieldBackground" path="/res/interiortextbox.png"
        sourceInsets="10 10 10 10" paintCenter="true">
        </imagePainter>
    </state>
</style>

<bind style="textBoxStyle" type="region" key="TextField"/>

0 个答案:

没有答案