我的程序知道我的资源在这里。但是,当我运行程序时,要在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"/>