2024-06-12

This commit is contained in:
2024-06-12 13:10:10 +09:00
parent 57cc9ca7ff
commit 7e1d726c23
44 changed files with 146 additions and 31 deletions

View File

@@ -0,0 +1,20 @@
# Look and Feel
```java
try {
//UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException |
UnsupportedLookAndFeelException e) {
throw new RuntimeException(e);
}
```
```java
// 프로그램 실행 후 룩앤필을 변경하는 경우
UIManager.setLookAndFeel(lnfName);
SwingUtilities.updateComponentTreeUI(frame);
frame.pack();
```