UIManager中的Keys、系統(tǒng)屬性、本機(jī)字符編_第1頁
UIManager中的Keys、系統(tǒng)屬性、本機(jī)字符編_第2頁
UIManager中的Keys、系統(tǒng)屬性、本機(jī)字符編_第3頁
UIManager中的Keys、系統(tǒng)屬性、本機(jī)字符編_第4頁
UIManager中的Keys、系統(tǒng)屬性、本機(jī)字符編_第5頁
已閱讀5頁,還剩11頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、UIManager中的Keys、系統(tǒng)屬性、本機(jī)字符編UIManager中的Keys、系統(tǒng)屬性、本機(jī)字符編碼集名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);/系統(tǒng)屬性System.out.println(nnnnnnnnn系統(tǒng)屬性);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);/本機(jī)支持的全部編碼集名字System.out.println(nnnnnnnnn本機(jī)支持的全部編碼集名字);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);/=/結(jié)果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系統(tǒng)屬性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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論