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

下载本文档

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

文档简介

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.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=UIManager.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)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(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();Enumeration 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.availableCharsets().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.font 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.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.font TabbedPane.font RadioButton.font ToolTip.font Button.font-Icon-FileChooser.upFolderIcon FileChooser.newFolderIcon InternalFrame.iconifyIcon OptionPane.questionIcon RadioButton.icon FileView.fileIcon OptionPrmationIcon RadioButtonMenuItem.checkIcon FileView.floppyDriveIcon Slider.verticalThumbIcon InternalFrame.closeIcon Opt ionPane.errorIcon CheckBoxMenuItem.arrowIcon Tree.closedIcon InternalFrame.minimizeIcon FileChooser.homeFolderIcon FileVputerIcon html.pendingImage Tree.leafIcon InternalFrame.paletteCloseIcon Tree.openIcon html.missingImage FileView.hardDriveIcon Tree.expandedIcon FileView.directoryIcon Table.descendingSortIcon Tree.collapsedIcon OptionPane.warningIcon InternalFrame.maximizeIcon InternalFrame.icon FileChooser.listViewIcon FileChooser.detailsViewIcon Table.ascendingSortIcon Slider.horizontalThumbIcon 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 TabbedPane.contentAreaColor Table.dropCellBackground MenuItem.acceleratorForeground EditorPane.caretForeground Table.background Menu.selectionForeground OptionPane.errorDialog.border.background ToolBar.floatingBackgro und RadioButtonMenuItem.selectionBackground DesktopIcon.background CheckBoxMenuItem.selectionForeground List.dropLineColor TabbedPane.unselectedBackground InternalFrame.borderColor CheckBox.foreground ProgressBar.foreground ComboBox.disabledForeground textInactiveText OptionPane.warningDialog.titlePane.foreground Slider.highlight FormattedTextField.caretForeground Menu.selectionBackground TextField.caretForeground OptionPane.messageForeground RadioButton.highlight ToolBar.shadow CheckBoxMenuItem.selectionBackground Menu.acceleratorForeground Label.foreground text ComboBox.disabledBackground Button.focus inactiveCaptionText MenuBar.background PasswordField.selectionForeground CheckBoxMenuItem.acceleratorSelectionForeground controlShadow menu inactiveCaptionBorder PasswordField.foreground TextPane.foreground TabbedPane.tabAreaBackground Viewport.foreground TabbedPane.foreground ToggleButton.focus RadioButton.foreground infoText TabbedPane.selected MenuBar.highlight ScrollBar.highlight InternalFrame.inactiveTitl eBackground ScrollBar.thumbDarkShadow ToolBar.light EditorPane.inactiveForeground OptionPane.errorDialog.titlePane.background PasswordField.background TextPane.background RadioButton.select PasswordField.inactiveBackground Button.toolBarBorderBackground MenuItem.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.warningDialog.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.borderDarkShadow 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.background OptionPane.warningDialog.titlePane.shadow activeCaptionBorder InternalFrame.borderShadow MenuItem.selectionForeground TextArea.selectionForeground MenuItem.background ComboBox.buttonShadow ScrollBar.track ScrollBar.thumb MenuItem.acceleratorSelectionForeground Table.dropLineColor control OptionPane.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 activeCaptionText 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 RadioButtonMenuItem.disabledForeground TextField.background ColorChooser.foreground Button.light Button.disabledToolBarBorderBackground ColorChooser.swatchesDefaultRecentColor ComboBox.background Button.shadow Button.foreground Table.focusCellForeground Table.gridColor PasswordField.caretForeground TextPane.selectionForeground menuText SplitPaneDivider.draggingColor InternalFrame.borderHighlight TextArea.selectionBackground ToggleButton.light controlDkShadow TextField.light Button.background TextField.selectionForeground Separator.foreground ToolBar.dockingForeground TextPane.selectionBackground Panel.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.dropCellBackground OptionPane.errorDialog.titlePane.shadow TabbedPane.borderHightlightColor RadioButtonMenuItem.acceler atorSelectionForeground ComboBox.selectionForeground FormattedTextField.selectionBackground Tree.selectionBorderColor Tree.selectionForeground Slider.foreground TabbedPane.selectHighlight 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.buttonBackground ToggleButton.foreground Tree.line windowText FormattedTextField.inactiveForeground scrollbar controlLtHighlight SplitPane.darkShadow Button.select ScrollBar.shadow SplitPane.background controlHighlight Separator.background CheckBoxMenuItem.foreground FormattedTextField.inactiveBackground FormattedTextField.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.selectionBackground InternalFrame.activeTitleForeground Tree.selectionBackground Slider.background TextArea.foreground ComboBox.buttonHighlight Separator.highlight PopupMenu.foreground ProgressBar.selectionBackground ScrollBar.foreground OptionPane.foreground Table.selectionBackground info InternalFrame.activeTitleBackground RadioButton.light ToolBar.floatingForeground RadioButtonMenuItem.selectionForeground ToggleButton.darkShadow windowBorder ToggleButton.background TabbedPane.highlight ScrollBar.darkShadow PopupMenu.background Slider.altTrackColor ScrollBar.background Menu.acceleratorSelectionForeground 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.background 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-RootPane.questionDialogBorder RootPane.colorChooserDialogBorder CheckBoxMenuItem.border RootPane.plainDialogBorder Spinner.arrowButtonBorder RootPane.fileChooserDialogBorder ToolTip.border ToolBar.border OptionPane.border CheckBox.border RootPrmationDialogBorder OptionPane.messageAreaBorder Table.focusCellHighlightBorder 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.border 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.frameBorder 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 ProgressBar.cycleTime ToggleButton.focusInputMap Tree.focusInputMap.RightToLeft PasswordField.echoChar ToggleButton.margin AuditoryCues.allAuditoryCues Slider.minimumVerticalSize InternalFrameUI OptionPane.buttonClickThreshhold OptionPane.windowBindings MenuBar.gradient RadioButtonMenuItemUI InternalFrameTitlePane.maximizeButtonOpacity FileChooser.ancestorInputMap ScrollBar.minimumThumbSize Tree.focusInputMap InternalFrame.maximizeSound ScrollBar.width ProgressBar.repaintInterval ScrollBar.gradient RadioButtonUI Tree.ancestorInputMap ToolTip.hideAccelerator RootPane.ancestorInp utMap Tree.changeSelectionWithFocus PopupMenuSeparatorUI ToggleButton.gradient ScrollBar.ancestorInputMap InternalFrame.restoreDownSound ProgressBar.cellLength TextArea.margin CheckBoxMenuItem.gradient RadioButton.textShiftOffset Menu.submenuPopupOffsetY ScrollPaneUI Menu.submenuPopupOffsetX CheckBoxMenuImandSound OptionPane.questionSound CheckBox.totalInsets RootPaneUI FileChooserUI ToolBarSeparatorUI ScrollBar.allowsAbsolutePositioning Menu.crossMenuMnemonic Tree.leftChildIndent LabelUI SliderUI Slider.focusInputMap.RightToLeft Desktop.ancestorInputMap InternalFrame.closeSound FileChooser.usesSingleFilePane TreeUI TabbedPane.tabRunOverlay ComboBox.isEnterSelectablePopup OptionPane.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 CheckBoxMenuItem.margin Viewpo rtUI TextField.caretBlinkRate MenuItem.acceleratorDelimiter TabbedPane.tabInsets DesktopIcon.width Button.focusInputMap TextFieldUI Tree.lineTypeDashed DesktopIconUI Menu.checkIcon MenuItem.checkIcon FileChooser.filesOfTypeLabelMnemonic PasswordFieldUI ColorChooser.swatchesRecentSwatchSize ColorChooser.swatchesSwatchSize PasswordField.focusInputMap Spinner.editorBorderPainted PopupMenu.selectedWindowInputMapBindings.RightToLeft ComboBox.ancestorInputMap ScrollBar.ancestorInputMap.RightToLeft OptionPrmationSound Tree.timeFactor CheckBoxMenuItemUI SpinnerUI TableHeaderUI CheckBox.textShiftOffset ProgressBar.verticalSize MenuImandSound Slider.verticalSize InternalFrame.restoreUpSound TableUI ComboBox.timeFactor ScrollPane.ancestorInputMap TableHeader.ancestorInputMap Button.rollover TextPane.focusInputMap Button.defaultButtonFollowsFocus TabbedPaneUI SplitPane.oneTouchButtonsOpaque ToggleButton.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.caretBlinkRate 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.textIconGap Slider.trackWidth TextField.margin ComboBoxUI ScrollPane.ancestorInputMap.RightToLeft Table.ancestorInputMap.RightToLeft SplitPane.centerOneTouchButtons AATextInfoPropertyKey Tree.rightChildIndent ToolTipUI Tree.drawsFocusBorderAroundIcon InternalFrame.minimizeSound InternalFrameTitlePane.closeButtonOpacity CheckBox.gradient TabbedPane.tabsOverlapBorder List.cellRenderer FileChooser.lookInLabelMnemonic Tree.paintLines AuditoryCues.noAuditoryCues RadioButtonMenuItem.gradient Menu.borderPainted ScrollBar.maximumThumbSize Spinner.ar rowButtonInsets RootPane.defaultButtonWindowKeyBindings FormattedTextField.caretBlinkRate Menu.shortcutKeys Button.textIconGap TabbedPane.tabsOpaque AuditoryCues.cueList ToolBar.isRollover InternalFrameTitlePane.iconifyButtonOpacity TabbedPane.tabAreaInsets OptionPaneUI List.focusInputMap Slider.focusInputMap ProgressBar.horizontalSize Tree.rowHeight PopupMenu.selectedWindowInputMapBindings FileChooser.useSystemExtensionHiding ToolBar.separatorSize PasswordField.margin ToolBar.ancestorInputMap MenuBarUI List.focusInputMap.RightToLeft FileChooser.fileNameLabelMnemonic Button.rolloverIconType FileChooser.readOnly RadioButton.rollover Table.ancestorInputMap ColorChooserUI ToolTipManager.enableToolTipMode TextArea.focusInputMap Button.textShiftOffset TextArea.caretBlinkRate Slider.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.editorAlignment TextAreaUI MenuItemUI InternalFrame.activeTitleGradient RadioButtonMenuImandSound Menu.margin RadioButton.totalInsets Slider.minimumHorizontalSize MenuItem.margin RadioButtonMenuItem.borderPainted InternalFrame.paletteTitleHeight SplitPane.dividerSize TabbedPane.selectedTabPadInsets 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 Key0008:file.encoding.pkg-sun.io 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.Win32GraphicsEnvironment 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.s

温馨提示

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

评论

0/150

提交评论