简体   繁体   English

将java gui组件的外观和感觉更改为windows外观

[英]Changing the look and feel of java gui components into the windows look and feel

It it possible to change the look and feel on Java GUI into the look and feel of your operating system such as windows? 是否可以将Java GUI的外观更改为操作系统(如Windows)的外观? if so, then how do i do it? 如果是的话,我该怎么做?

Yes, see How to Set the Look and Feel in Oracle's Java Tutorials. 是的,请参阅Oracle Java教程中的如何设置外观

To set the look and feel to the current system look and feel: 要为当前系统外观设置外观:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

See UIManager . UIManager

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM