2024-03-30

This commit is contained in:
2024-03-30 19:57:14 +09:00
parent d4055752a9
commit 57cc9ca7ff
90 changed files with 4829 additions and 105 deletions

20
doc/28_look_and_feel.md Normal file
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();
```