This could be usefull or I want this because some time I need to use icon fast and easy to test something or just to don't add my own icon.
And now after to search for everywhere and looking inside Java's code i found some of them.
To get defaults icon, you need to ask to
javax.swing.UIManager class, wich one have the objects related with look&fell (borders, icons, fonts...)for example:
Icon icon = UIManager.getIcon("OptionPane.informationIcon");
JButton buton = new JButton(icon);
And the icon list is the next :
![]() | "OptionPane.questionIcon" |
![]() | "OptionPane.errorIcon" |
![]() | "OptionPane.informationIcon" |
![]() | "OptionPane.warningIcon" |
![]() | "FileView.directoryIcon" |
![]() | "FileView.fileIcon" |
![]() | "FileView.computerIcon" |
![]() | "FileView.hardDriveIcon" |
![]() | "FileView.floppyDriveIcon" |
![]() | "FileChooser.newFolderIcon" |
![]() | "FileChooser.upFolderIcon" |
![]() | "FileChooser.homeFolderIcon" |
![]() | "FileChooser.detailsViewIcon" |
![]() | "FileChooser.listViewIcon" |
![]() | "Tree.expandedIcon" |
![]() | "Tree.collapsedIcon" |
![]() | "Tree.openIcon" |
![]() | "Tree.leafIcon" |
![]() | "Tree.closedIcon" |



















0 comments:
Post a Comment