There are 2 code examples for javax.swing.UIDefaults.

The API names are highlighted below. You can use suckoo button to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.

Project Name: druid Package: org.dlib.gui.plaf

Source Code: WoodyLookAndFeel.java (Click to view .java file)

Method Code:
vote
like

private void putDefault(UIDefaults table,String key){
  try {
    String className="org.dlib.gui.plaf.Woody" + key;
    Class classClass=Class.forName(className);
    table.put(key,className);
    table.put(className,classClass);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
 

Project Name: vfsjfilechooser Package: net.sf.vfsjfilechooser.plaf.basic

Source Code: BasicVFSFileChooserUI.java (Click to view .java file)

Method Code:
vote
like

protected void installIcons(VFSJFileChooser fc){
  UIDefaults defaults=UIManager.getLookAndFeel().getDefaults();
  directoryIcon=lookupIcon("folder.png");
  fileIcon=lookupIcon("file.png");
  computerIcon=defaults.getIcon("FileView.computerIcon");
  hardDriveIcon=defaults.getIcon("FileView.hardDriveIcon");
  floppyDriveIcon=defaults.getIcon("FileView.floppyDriveIcon");
  newFolderIcon=lookupIcon("folder_add.png");
  upFolderIcon=lookupIcon("go-up.png");
  homeFolderIcon=lookupIcon("folder_user.png");
  detailsViewIcon=lookupIcon("application_view_detail.png");
  listViewIcon=lookupIcon("application_view_list.png");
  viewMenuIcon=defaults.getIcon("FileChooser.viewMenuIcon");
}