⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e869. setting the default look and feel using a system property or property file.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
By default, Swing uses a cross-platform look and feel called Metal. This default can be changed with a system property on the command line, an entry in a properties file, or programmatically (see e867 Getting and Setting a Look and Feel). 
The following example demonstrates how to set the look and feel using a system property on the command line: 

    > java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel MyApp


Alternatively, the default look and feel can be set in a properties file called `swing.properties' located in the `<JAVAHOME>/lib' directory. The name of the property is swing.defaultlaf. 
    # Specify the default look and feel
    swing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -