/** * Install the default L&F. In this method, we will look at system property "swing.defaultlaf" first. If the value * is set and it's not an instance of Synth L&F, we will use it. Otherwise, we will use Metal L&F is OS is Linux or * UNIX and use UIManager.getSystemLookAndFeelClassName() for other OS. In addition, we will add JIDE extension to * it. */ public static void installDefaultLookAndFeelAndExtension() { installDefaultLookAndFeel(); // to add additional UIDefault for JIDE components LookAndFeelFactory.installJideExtension(); }
/** * @param args the command line arguments */ public static void main(String[] args) { LookAndFeelFactory.installDefaultLookAndFeel(); File file = FileDialogUtils.chooseDirectory("Resource Folder Selection", null); // FileChooserDialog dialog = new FileChooserDialog(null, true); // dialog.setFileSelectionMode(FileChooserDialog.DIRECTORIES_ONLY); // dialog.setTitle("Resource Folder Selection"); // dialog.setMultiSelectionEnabled(true); // dialog.setSelectedFile(null); // dialog.setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); // dialog.setVisible(true); if (file != null) { (new ResourceFileBuilder()).process(file); } }