Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

[JFileChooser_en.properties]

Title=JFileChooser
lookInLabelText=Current
filesOfTypeLabelText=File type
upFolderToolTipText=go up

[JFileChooser_fr.properties]

Title=JFileChooser de R\u00e9al
lookInLabelText=Courant
filesOfTypeLabelText=Type de fichier
upFolderToolTipText=Remonte

/*
FileChooser.fileNameLabelText
FileChooser.homeFolderToolTipText
FileChooser.newFolderToolTipText
FileChooser.listViewButtonToolTipTextlist
FileChooser.detailsViewButtonToolTipText
FileChooser.saveButtonText=Save
FileChooser.openButtonText=Open
FileChooser.cancelButtonText=Cancel
FileChooser.updateButtonText=Update
FileChooser.helpButtonText=Help
FileChooser.saveButtonToolTipText=Save
FileChooser.openButtonToolTipText=Open
FileChooser.cancelButtonToolTipText=Cancel
FileChooser.updateButtonToolTipText=Update
FileChooser.helpButtonToolTipText=Help
*/

import java.util.Locale;
import java.util.ResourceBundle;

import javax.swing.UIManager;

public class Main {
  public static void main(String[] argv) throws Exception {
    Locale locale = Locale.getDefault();
    ResourceBundle rb = ResourceBundle.getBundle("JFileChooser", locale);

    UIManager.put("FileChooser.lookInLabelText", rb.getString("lookInLabelText"));
    UIManager.put("FileChooser.filesOfTypeLabelText", rb.getString("filesOfTypeLabelText"));
    UIManager.put("FileChooser.upFolderToolTipText", rb.getString("upFolderToolTipText"));

  }
}