UIManager中的Keys、系统属性、本机字符编_第1页
UIManager中的Keys、系统属性、本机字符编_第2页
UIManager中的Keys、系统属性、本机字符编_第3页
UIManager中的Keys、系统属性、本机字符编_第4页
UIManager中的Keys、系统属性、本机字符编_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、UIManager中的Keys、系统属性、本机字符编UIManager中的Keys、系统属性、本机字符编码集名2010-07-08 21:13 import java.awt.Color;import java.awt.Font;import java.nio.charset.Charset;import java.text.DecimalFormat;import java.util.ArrayList;import java.util.Enumeration;import java.util.Iterator;import java.util.Properties;import javax

2、.swing.Icon;import javax.swing.UIManager;import javax.swing.border.Border;public class PrintPropertiespublic static void main(String args)PrintProperties printProperties=new PrintProperties();public PrintProperties()System.out.println(n-printProperties Start-n);/UIManager Keys Enumeration e=UIManage

3、r.getLookAndFeelDefaults().keys();ArrayList listFont=new ArrayList();ArrayList listIcon=new ArrayList();ArrayList listColor=new ArrayList();ArrayList listBorder=new ArrayList();ArrayList listElse=new ArrayList();while(e.hasMoreElements()Object key=e.nextElement();if(UIManager.get(key)instanceof Font

4、)listFont.add(key);else if(UIManager.get(key)instanceof Icon)listIcon.add(key);else if(UIManager.get(key)instanceof Color)listColor.add(key);else if(UIManager.get(key)instanceof Border)listBorder.add(key);elselistElse.add(key);System.out.println(nn-Font-n);printArrayList(listFont);System.out.println

5、(nn-Icon-n);printArrayList(listIcon);System.out.println(nn-Color-n);printArrayList(listColor);System.out.println(nn-Border-n);printArrayList(listBorder);System.out.println(nnn-Else-n);printArrayList(listElse);/系统属性System.out.println(nnnnnnnnn系统属性);Properties property=System.getProperties();Enumerati

6、on keys=property.keys();int i=0;DecimalFormat df=new DecimalFormat(Key0000);while(keys.hasMoreElements()i+;String key=(String)keys.nextElement();System.out.println(df.format(i)+:+key+-+System.getProperty(key);/本机支持的全部编码集名字System.out.println(nnnnnnnnn本机支持的全部编码集名字);Iterator iterator=Charset.availableC

7、harsets().keySet().iterator();while(iterator.hasNext()System.out.println(iterator.next();System.out.println(n-printProperties End-n);private void printArrayList(ArrayList list)if(list=null)return;for(int i=0;i list.size();i+)System.out.println(list.get(i);/=/结果run:-printProperties Start-Font-List.fo

8、nt TableHeader.font Panel.font TextArea.font ToggleButton.font ComboBox.font ScrollPane.font Spinner.font RadioButtonMenuItem.font Slider.font EditorPane.font OptionPane.font ToolBar.font Tree.font CheckBoxMenuItem.font TitledBorder.font Table.font MenuBar.font PopupMenu.font DesktopIcon.font Label.

9、font MenuItem.font MenuItem.acceleratorFont TextField.font TextPane.font CheckBox.font ProgressBar.font FormattedTextField.font CheckBoxMenuItem.acceleratorFont Menu.acceleratorFont ColorChooser.font Menu.font PasswordField.font InternalFrame.titleFont RadioButtonMenuItem.acceleratorFont Viewport.fo

10、nt TabbedPane.font RadioButton.font ToolTip.font Button.font-Icon- InternalFrame.iconifyIcon OptionPane.questionIcon RadioButton.icon OptionPrmationIcon RadioButtonMenuItem.checkIcon Slider.verticalThumbIcon InternalFrame.closeIcon Opt ionPane.errorIcon CheckBoxMenuItem.arrowIcon Tree.closed

11、Icon InternalFrame.minimizeIcon html.pendingImage Tree.leafIcon InternalFrame.paletteCloseIcon Tree.openIcon html.missingImage Tree.expandedIcon Table.descendingSortIcon Tree.collapsedIcon OptionPane.warningIcon InternalFrame.maximizeIcon InternalFrame.icon Table.ascendingSortIcon Slider.horizontalT

12、humbIcon CheckBoxMenuItem.checkIcon RadioButtonMenuItem.arrowIcon CheckBox.icon Menu.arrowIcon MenuItem.arrowIcon-Color-DesktopIcon.foreground OptionPane.errorDialog.titlePane.foreground TextArea.background activeCaption PasswordField.inactiveForeground TabbedPane.focus RadioButton.disabledText Tabb

13、edPane.contentAreaColor Table.dropCellBackground MenuItem.acceleratorForeground EditorPane.caretForeground Table.background Menu.selectionForeground OptionPane.errorDialog.border.background ToolBar.floatingBackgro und RadioButtonMenuItem.selectionBackground DesktopIcon.background CheckBoxMenuItem.se

14、lectionForeground List.dropLineColor TabbedPane.unselectedBackground InternalFrame.borderColor CheckBox.foreground ProgressBar.foreground ComboBox.disabledForeground textInactiveText OptionPane.warningDialog.titlePane.foreground Slider.highlight FormattedTextField.caretForeground Menu.selectionBackg

15、round TextField.caretForeground OptionPane.messageForeground RadioButton.highlight ToolBar.shadow CheckBoxMenuItem.selectionBackground Menu.acceleratorForeground Label.foreground text ComboBox.disabledBackground Button.focus inactiveCaptionText MenuBar.background PasswordField.selectionForeground Ch

16、eckBoxMenuItem.acceleratorSelectionForeground controlShadow menu inactiveCaptionBorder PasswordField.foreground TextPane.foreground TabbedPane.tabAreaBackground Viewport.foreground TabbedPane.foreground ToggleButton.focus RadioButton.foreground infoText TabbedPane.selected MenuBar.highlight ScrollBa

17、r.highlight InternalFrame.inactiveTitl eBackground ScrollBar.thumbDarkShadow ToolBar.light EditorPane.inactiveForeground OptionPane.errorDialog.titlePane.background PasswordField.background TextPane.background RadioButton.select PasswordField.inactiveBackground Button.toolBarBorderBackground MenuIte

18、m.foreground TableHeader.focusCellBackground RadioButton.background ToolBar.borderColor inactiveCaption ScrollBar.trackHighlight OptionPane.questionDialog.titlePane.foreground Tree.textForeground TableHeader.foreground CheckBox.background ProgressBar.background Label.disabledForeground OptionPane.wa

19、rningDialog.titlePane.background ToggleButton.highlight ScrollPane.foreground TextArea.caretForeground Label.background Spinner.foreground Slider.tickColor Tree.textBackground InternalFrame.borderLight textHighlightText Separator.shadow CheckBoxMenuItem.disabledForeground controlText InternalFrame.b

20、orderDarkShadow TextField.shadow PasswordField.selectionBackground Spinner.background TabbedPane.shadow desktop Tree.dropLineColor OptionPane.questionDialog.titleP ane.shadow TabbedPane.darkShadow Viewport.background CheckBox.disabledText ComboBox.foreground RadioButton.darkShadow TabbedPane.backgro

21、und OptionPane.warningDialog.titlePane.shadow activeCaptionBorder InternalFrame.borderShadow MenuItem.selectionForeground TextArea.selectionForeground MenuItem.background ComboBox.buttonShadow ScrollBar.track ScrollBar.thumb MenuItem.acceleratorSelectionForeground Table.dropLineColor control OptionP

22、ane.questionDialog.titlePane.background Panel.foreground TabbedPane.light MenuItem.selectionBackground Label.disabledShadow ToolTip.foreground TableHeader.background EditorPane.selectionForeground List.foreground OptionPane.warningDialog.border.background Desktop.background ScrollPane.background act

23、iveCaptionText SplitPane.dividerFocusColor Tree.foreground SplitPane.highlight TextField.foreground ScrollBar.thumbShadow TextArea.inactiveForeground ToolTip.foregroundInactive Tree.hash FormattedTextField.selectionForeground textText RadioButton.focus ToggleButton.disabledText Tree.back ground Radi

24、oButtonMenuItem.disabledForeground TextField.background ColorChooser.foreground Button.light Button.disabledToolBarBorderBackground ColorChooser.swatchesDefaultRecentColor ComboBox.background Button.shadow Button.foreground Table.focusCellForeground Table.gridColor PasswordField.caretForeground Text

25、Pane.selectionForeground menuText SplitPaneDivider.draggingColor InternalFrame.borderHighlight TextArea.selectionBackground ToggleButton.light controlDkShadow TextField.light Button.background TextField.selectionForeground Separator.foreground ToolBar.dockingForeground TextPane.selectionBackground P

26、anel.background ToolTip.background EditorPane.selectionBackground List.background TextPane.inactiveForeground SplitPane.shadow TextField.selectionBackground Menu.disabledForeground ToolBar.dockingBackground List.selectionForeground TextField.inactiveForeground window TextField.darkShadow Tree.dropCe

27、llBackground OptionPane.errorDialog.titlePane.shadow TabbedPane.borderHightlightColor RadioButtonMenuItem.acceler atorSelectionForeground ComboBox.selectionForeground FormattedTextField.selectionBackground Tree.selectionBorderColor Tree.selectionForeground Slider.foreground TabbedPane.selectHighligh

28、t MenuBar.borderColor ScrollBar.thumbHighlight TextField.highlight TextField.inactiveBackground MenuBar.shadow TextPane.caretForeground Table.selectionForeground ColorChooser.background ToggleButton.shadow Button.darkShadow ComboBox.buttonDarkShadow Table.focusCellBackground ComboBox.buttonBackgroun

29、d ToggleButton.foreground Tree.line windowText FormattedTextField.inactiveForeground scrollbar controlLtHighlight SplitPane.darkShadow Button.select ScrollBar.shadow SplitPane.background controlHighlight Separator.background CheckBoxMenuItem.foreground FormattedTextField.inactiveBackground Formatted

30、TextField.foreground textHighlight Button.highlight Table.sortIconColor CheckBoxMenuItem.background List.selectionBackground TitledBorder.titleColor ProgressBar.selectionForeground Table.dropLineShortColor EditorPane.foreground MenuItem.d isabledForeground CheckBox.focus Slider.focus ComboBox.select

31、ionBackground InternalFrame.activeTitleForeground Tree.selectionBackground Slider.background TextArea.foreground ComboBox.buttonHighlight Separator.highlight PopupMenu.foreground ProgressBar.selectionBackground ScrollBar.foreground OptionPane.foreground Table.selectionBackground info InternalFrame.a

32、ctiveTitleBackground RadioButton.light ToolBar.floatingForeground RadioButtonMenuItem.selectionForeground ToggleButton.darkShadow windowBorder ToggleButton.background TabbedPane.highlight ScrollBar.darkShadow PopupMenu.background Slider.altTrackColor ScrollBar.background Menu.acceleratorSelectionFor

33、eground OptionPane.background Checkbox.select Menu.foreground RadioButtonMenuItem.acceleratorForeground ToolBar.foreground ToolTip.backgroundInactive RadioButtonMenuItem.foreground ToggleButton.select Slider.shadow Button.disabledText OptionPane.questionDialog.border.background FormattedTextField.ba

34、ckground Menu.background ToolBar.darkShadow ToolBar.background RadioButtonMenuItem.background CheckBoxMenuItem.acceleratorForeground MenuBar.foreground ToolBar.highlight RadioButton.shadow List.dropCellBackground EditorPane.background Table.foreground InternalFrame.inactiveTitleForeground-Border-Roo

35、tPane.questionDialogBorder RootPane.colorChooserDialogBorder CheckBoxMenuItem.border RootPane.plainDialogBorder Spinner.arrowButtonBorder RootPane. ToolTip.border ToolBar.border OptionPane.border CheckBox.border RootPrmationDialogBorder OptionPane.messageAreaBorder Table.focusCellHighlightBo

36、rder EditorPane.border DesktopIcon.border RadioButtonMenuItem.border TextField.border ToolTip.borderInactive InternalFrame.border RootPane.errorDialogBorder InternalFrame.paletteBorder ToolBar.nonrolloverBorder PasswordField.border Button.border Spinner.border SplitPane.border Menu.border MenuItem.b

37、order OptionPane.buttonAreaBorder List.focusCellHighlightBorder ScrollPane.border RootPane.warningDialogBorder ToggleButton.border PopupMenu.border Table.scr ollPaneBorder InternalFrame.optionDialogBorder FormattedTextField.border TextArea.border MenuBar.border TableHeader.cellBorder RootPane.frameB

38、order TitledBorder.border ToolBar.rolloverBorder ProgressBar.border Tree.editorBorder RadioButton.border SplitPaneDivider.border TextPane.border-Else-TabbedPane.textIconGap ButtonUI FormattedTextField.margin TabbedPane.contentOpaque Spinner.ancestorInputMap SplitPaneUI Slider.horizontalSize Progress

39、Bar.cycleTime ToggleButton.focusInputMap Tree.focusInputMap.RightToLeft PasswordField.echoChar ToggleButton.margin AuditoryCues.allAuditoryCues Slider.minimumVerticalSize InternalFrameUI OptionPane.buttonClickThreshhold OptionPane.windowBindings MenuBar.gradient RadioButtonMenuItemUI InternalFrameTi

40、tlePane.maximizeButtonOpacity ScrollBar.minimumThumbSize Tree.focusInputMap InternalFrame.maximizeSound ScrollBar.width ProgressBar.repaintInterval ScrollBar.gradient RadioButtonUI Tree.ancestorInputMap ToolTip.hideAccelerator RootPane.ancestorInp utMap Tree.changeSelectionWithFocus PopupMenuSeparat

41、orUI ToggleButton.gradient ScrollBar.ancestorInputMap InternalFrame.restoreDownSound ProgressBar.cellLength TextArea.margin CheckBoxMenuItem.gradient RadioButton.textShiftOffset Menu.submenuPopupOffsetY ScrollPaneUI Menu.submenuPopupOffsetX CheckBoxMenuImandSound OptionPane.questionSound Chec

42、kBox.totalInsets RootPaneUI ToolBarSeparatorUI ScrollBar.allowsAbsolutePositioning Menu.crossMenuMnemonic Tree.leftChildIndent LabelUI SliderUI Slider.focusInputMap.RightToLeft Desktop.ancestorInputMap InternalFrame.closeSound TreeUI TabbedPane.tabRunOverlay ComboBox.isEnterSelectablePopup OptionPan

43、e.warningSound ScrollBarUI Slider.gradient RadioButton.margin PopupMenu.popupSound RadioButton.textIconGap TabbedPane.ancestorInputMap ToggleButtonUI SplitPane.ancestorInputMap TextPane.margin OptionPane.minimumSize PopupMenu.consumeEventOnClose RadioButton.focusInputMap TabbedPane.focusInputMap Che

44、ckBoxMenuItem.margin Viewpo rtUI TextField.caretBlinkRate MenuItem.acceleratorDelimiter TabbedPane.tabInsets DesktopIcon.width Button.focusInputMap TextFieldUI Tree.lineTypeDashed DesktopIconUI Menu.checkIcon MenuItem.checkIcon PasswordFieldUI ColorChooser.swatchesRecentSwatchSize ColorChooser.swatc

45、hesSwatchSize PasswordField.focusInputMap Spinner.editorBorderPainted PopupMenu.selectedWindowInputMapBindings.RightToLeft ComboBox.ancestorInputMap ScrollBar.ancestorInputMap.RightToLeft OptionPrmationSound Tree.timeFactor CheckBoxMenuItemUI SpinnerUI TableHeaderUI CheckBox.textShiftOffset

46、ProgressBar.verticalSize MenuImandSound Slider.verticalSize InternalFrame.restoreUpSound TableUI ComboBox.timeFactor ScrollPane.ancestorInputMap TableHeader.ancestorInputMap Button.rollover TextPane.focusInputMap Button.defaultButtonFollowsFocus TabbedPaneUI SplitPane.oneTouchButtonsOpaque To

47、ggleButton.textShiftOffset ProgressBar.cellSpacing OptionPane.errorSound Menu.opaque DesktopPaneUI FormattedTextFie ldUI CheckBox.textIconGap CheckBox.margin MenuItem.borderPainted EditorPane.focusInputMap CheckBoxUI ListUI ProgressBarUI List.timeFactor TabbedPane.contentBorderInsets PasswordField.c

48、aretBlinkRate Spinner.arrowButtonSize Button.gradient Slider.majorTickLength TextField.focusInputMap FormattedTextField.focusInputMap PanelUI SeparatorUI EditorPane.margin Slider.focusInsets CheckBox.rollover RadioButtonMenuItem.margin Menu.menuPopupOffsetY Menu.menuPopupOffsetX ToggleButton.textIco

49、nGap Slider.trackWidth TextField.margin ComboBoxUI ScrollPane.ancestorInputMap.RightToLeft Table.ancestorInputMap.RightToLeft SplitPane.centerOneTouchButtons AATextInfoPropertyKey Tree.rightChildIndent ToolTipUI Tree.drawsFocusBorderAroundIcon InternalFrame.minimizeSound InternalFrameTitlePane.close

50、ButtonOpacity CheckBox.gradient TabbedPane.tabsOverlapBorder List.cellRenderer Tree.paintLines AuditoryCues.noAuditoryCues RadioButtonMenuItem.gradient Menu.borderPainted ScrollBar.maximumThumbSize Spinner.ar rowButtonInsets RootPane.defaultButtonWindowKeyBindings FormattedTextField.caretBlinkRate M

51、enu.shortcutKeys Button.textIconGap TabbedPane.tabsOpaque AuditoryCues.cueList ToolBar.isRollover InternalFrameTitlePane.iconifyButtonOpacity TabbedPane.tabAreaInsets OptionPaneUI List.focusInputMap Slider.focusInputMap ProgressBar.horizontalSize Tree.rowHeight PopupMenu.selectedWindowInputMapBindin

52、gs ToolBar.separatorSize PasswordField.margin ToolBar.ancestorInputMap MenuBarUI List.focusInputMap.RightToLeft Button.rolloverIconType RadioButton.rollover Table.ancestorInputMap ColorChooserUI ToolTipManager.enableToolTipMode TextArea.focusInputMap Button.textShiftOffset TextArea.caretBlinkRate Sl

53、ider.focusGradient Button.margin CheckBox.focusInputMap ToolBarUI Desktop.minOnScreenInsets AuditoryCues.defaultCueList Tree.scrollsOnExpand PopupMenuUI MenuUI MenuBar.windowBindings CheckBoxMenuItem.borderPainted RadioButton.gradient TextPa neUI EditorPaneUI EditorPane.caretBlinkRate Spinner.editor

54、Alignment TextAreaUI MenuItemUI InternalFrame.activeTitleGradient RadioButtonMenuImandSound Menu.margin RadioButton.totalInsets Slider.minimumHorizontalSize MenuItem.margin RadioButtonMenuItem.borderPainted InternalFrame.paletteTitleHeight SplitPane.dividerSize TabbedPane.selectedTabPadInsets

55、 TextPane.caretBlinkRate系统属性Key0001:-Java(TM)SE Runtime Environment Key0002:sun.boot.library.path-C:Program FilesJavajdk1.6.0_10jrebin Key0003:java.vm.version-11.0-b15 Key0004:java.vm.vendor-Sun Microsystems Inc.Key0005:java.vendor.url-;Key0007:-Java HotSpot(TM)Client VM

56、 Key0008: Key0009:sun.java.launcher-SUN_STANDARD Key0010:user.country-CN Key0011:sun.os.patch.level-Key0012:-Java Virtual Machine Specification Key0013:user.dir-D:zyyprojectTestForRepax10 Key0014:java.runtime.version-1.6.0_10-rc2-b32 Key0015:java.awt.graphicsenv-sun.awt.Win

57、32GraphicsEnvironment Key0016:java.endorsed.dirs-C:Program FilesJavajdk1.6.0_10jrelibendorsed Key0017:os.arch-x86 Key0018:java.io.tmpdir-C:UsersdellAppDataLocalTempKey0019:line.separator-Key0020:java.vm.specification.vendor-Sun Microsystems Inc.Key0021:user.variant-Key0022:-Windows Vista Key0

58、023:sun.jnu.encoding-GBK Key0024:java.library.path-C:Program FilesJavajdk1.6.0_10bin;.;C:WindowsSunJavabin;C:Windowssystem32;C:Windows;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program FilesWIDCOMMBluetooth Software;C:Program FilesCommon FilesThunder NetworkKanKanCodecs;d:Program FilesjEdit;C:Program FilesSinoVoice

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论