Java Chinese problem highlights

zhaozj2021-02-16  93

Solve the Java Chinese Problem: For Applet and AWT: 1: Font F = New Font (UIResource.getstring ("default_font"), font.plain, 12); uimanager.put ("label.font", f); UIManager. Put ("Label.Foreground", Color.Black; UIManager.Put ("Button.Font", F); UIManager.put ("Menu.Font", F); UIManager.put ("MenuItem.Font", F ); Uimanager.put; uimanager.put ("checkbox.font", f); uimanager.put ("radiobutton.font", f); uimanager.put ("ComboBox.Font" , f); uimanager.put ("textarea.font", f); 2: font f = new font ("书", font.plain, 15); UIManager.put ("Button.Font", font); UIManager.put ("ToggleButton.Font", Font; UIManager.Put ("Radiobutton.Font", Font); UIManager.Put ("Checkbox.Font", Font); UIManager.put ("Colorchooser.Font", Font UIManager.Put ("ToggleButton.Font", Font; UIManager.put ("ComboBox.Font", Font); UIManager.put ("ComboBoxItem.font", font); UIManager.put ("InternalFrame.Titlefont" , font; uimanager.put ("label.font", font); UIManager.put ("list.font", font); UIManager.put ("MenuBar.font", font); UIManager.put ("Menu. Font ", font); UIManager.put (" MenuItem.Font ", FONT); UIManager .put ("RadiobuttonMenuItem.font", Font); UIManager.put ("CheckBoxMenuItem.font", font); UIManager.put ("Popupmenu.Font", Font); UIManager.put ("Optionpane.Font", font) UIManager.put ("Panel.Font", UIManager.put ("ProgressBar.font", Font); UIManager.put ("scrollpane.font", font); UIManager.put ("ViewPort", FONT) UIManager.put ("Tabbedpane.Font", font); UIManager.Put ("TableHeader.Font", Font); UIManager.Put ("TextField.Font", font);

转载请注明原文地址:https://www.9cbs.com/read-12838.html

New Post(0)