Example Analysis of lookandfeel Source Code in Swing
This article mainly introduces the Swing lookandfeel source code example analysis, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Here is the code that runs when the system is initialized:
Fontfont=newFont ("Dialog", Font.PLAIN,12); UIManager.put ("ToolTip.font", font); UIManager.put ("Table.font", font); UIManager.put ("TableHeader.font", font); UIManager.put ("TextField.font", font); UIManager.put ("ComboBox.font", font); UIManager.put ("TextField.font", font); UIManager.put ("PasswordField.font", font); UIManager.put ("TextArea.font", font) UIManager.put ("TextPane.font", font); UIManager.put ("EditorPane.font", font); UIManager.put ("FormattedTextField.font", font); UIManager.put ("Button.font", font); UIManager.put ("CheckBox.font", font); UIManager.put ("RadioButton.font", font); UIManager.put ("ToggleButton.font", font); UIManager.put ("ProgressBar.font", font); UIManager.put ("DesktopIcon.font", font) UIManager.put ("TitledBorder.font", font); UIManager.put ("Label.font", font); UIManager.put ("List.font", font); UIManager.put ("TabbedPane.font", font); UIManager.put ("MenuBar.font", font); UIManager.put ("Menu.font", font); UIManager.put ("MenuItem.font", font); UIManager.put ("PopupMenu.font", font); UIManager.put ("CheckBoxMenuItem.font", font) UIManager.put ("RadioButtonMenuItem.font", font); UIManager.put ("Spinner.font", font); UIManager.put ("Tree.font", font); UIManager.put ("ToolBar.font", font); UIManager.put ("OptionPane.messageFont", font); UIManager.put ("OptionPane.buttonFont", font) Thank you for reading this article carefully. I hope the article "sample Analysis of lookandfeel Source Code in Swing" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!