English 中文(简体)
在 Java 桌面应用程序中使用 CSS 和 JavaScript
原标题:Use CSS and JavaScript in Java desktop application program

我可以在爪哇桌面应用中以任何方式使用 CSS 或其他网络技术吗?

注意:我知道我使用的是网络资源, 但我想知道 Java 桌面应用程序如何使用。

最佳回答

您可以在 Java 桌面应用程序中使用 CSS, 但无法使用 JavaScript 。 这是链接, 您可以在 Swing 应用程序中学习如何使用 CSS 。

  1. http://today.java.net/pub/a/today/2003/10/14/swindcs.html

  2. http://tutiez.com/how-to-use-css-sty-sty-or-styleshit-in-java-swing-jidtorpane.html>http://tutiez.com/ho-to-use-cs-sty-or-stype-shindorpane.html

我个人建议你申请时 使用外观和感觉功能

问题回答

如在另一个答案中说明的,您可以使用 CSS 。您也可以使用 JavaS ScriptEngine 类的 JavaScript。

Here is the documentation: https://docs.oracle.com/javase/7/docs/technotes/guides/scripting/programmer_guide/





相关问题
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 ...

热门标签