English 中文(简体)
• 如何在我的 Java申请中为所有jtooltips设计一个特别安全局?
原标题:How to set a CSS to be used by all jtooltips in my Java application?

是否有办法确定我所有的<代码>所用的全球风格表。 JToolTip 在整个应用过程中? 如果不是的话,我如何能够为单一组成部分确定一个工具箱,而我只知道其中的一个部分是周转部分(JComent)?

问题回答

如果你想改变图形,就会有几种眼光,感觉到有钥匙的缺损:

ToolTip.background
ToolTip.backgroundInactive
ToolTip.border
ToolTip.borderInactive
ToolTip.font
ToolTip.foreground
ToolTip.foregroundInactive

e.g. 用于确定新的地表

UIManager.put("ToolTip.foreground",java.awt.Color.red);

例如,在一份申请中,我有这些缺省。

ToolTip.background   =>     javax.swing.plaf.ColorUIResource[r=184,g=207,b=229]
ToolTip.backgroundInactive   =>     javax.swing.plaf.ColorUIResource[r=238,g=238,b=238]
ToolTip.border   =>     javax.swing.plaf.BorderUIResource$LineBorderUIResource@da18ac
ToolTip.borderInactive   =>     javax.swing.plaf.BorderUIResource$LineBorderUIResource@8a0544
ToolTip.font     =>     javax.swing.plaf.FontUIResource[family=Dialog,name=Dialog,style=plain,size=12]
ToolTip.foreground   =>     sun.swing.PrintColorUIResource[r=51,g=51,b=51]
ToolTip.foregroundInactive   =>     javax.swing.plaf.ColorUIResource[r=122,g=138,b=153]




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签