阅读背景:

如何在JTextPane中的一行上设置自定义背景颜色

来源:互联网 

I would like to alternate between gray and white as background from one line of my JTextPane to the next. I tried to do this by overloading the paintComponent() method and drawing the background manually according to component height an Font size but I did not succeed.I would like to alternate between gray and whit




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: