Saturday, 15 May 2010

java - How to change JFileChooser label "Look in:" to "Save in:" (not title)? -


How to change the JFileChooser label "Save in:" in "Save:" No )? Here you can see what I want to change:

Enter image details here

I found a solution, maybe it would be useful for anyone:

  Jfile Chupper Selector = new Jeffile Closer ("Open"); // Set the text and language of all components in JFileChooser UIManager.put ("FileChooser.openDialogTitleText", "Open"); UIManager.put ("FileChooser.lookInLabelText", "Lookin"); UIManager.put ("FileChooser.openButtonText", "Open"); UIManager.put ("FileChooser.cancelButtonText", "Cancel"); UIManager.put ("FileChooser.fileNameLabelText", "Filename"); UIManager.put ("FileChooser.filesOfTypeLabelText", "TypeFiles"); UIManager.put ("FileChooser.openButtonToolTipText", "OpenSolidated File"); UIManager.put ("FileChooser.cancelButtonToolTipText" "Cancel"); UIManager.put ("FileChooser.fileNameHeaderText", "File Name"); UIManager.put ("FileChooser.upFolderToolTitText", "UpOneLevel"); UIManager.put ("FileChooser.homeFolderToolTipText", "Desktop"); UIManager.put ("FileChooser.newFolderToolTipText", "CreateNewFolder"); UIManager.put ("FileChooser.listViewButtonToolTitText", "List"); UIManager.put ("FileChooser.newFolderButtonText", "CreateNewFolder"); UIManager.put ("FileChooser.renameFileButtonText", "RenameFile"); UIManager.put ("FileChooser.deleteFileButtonText", "DeleteFile"); UIManager.put ("FileChooser.filterLabelText", "Typefile"); UIManager.put ("FileChooser.detailsViewButtonToolTipText", "Details"); UIManager.put ("FileChooser.fileSizeHeaderText", "Size"); UIManager.put ("FileChooser.fileDateHeaderText", "Dated"); // Set JFileChooser UIManager.put ("FileView.directoryIcon", set to New ImageIcon (FileSystem.class.getResource ("folder.png")); UIManager.put ("FileChooser.homeFolderIcon", New Image (FileSystem.class.getResource ("user-home.png"))); UIManager.put ("FileView.computerIcon", New Image (FileSystem.class.getResource ("computer.png"))); UIManager.put ("FIleView.floppyDriveIcon", New Imagen (FileSystem.class.getResource ("media-floppy.png"))); UIManager.put ("FileViewHardDriveIcon", New Image (FileSystem.class.getResource ("drive-harddisk.png"))); UIManager.put ("FileView.fileIcon", New Image (File System Class.GetRSOS ("File Page")); UIManager.put ("FileChooser.upFolderIcon", New Imaging (FileSystem.class.getResource ("go.png"))); UIManager.put ("FileChooser.newFolderIcon", New Image (FileSystem.class.getResource ("folder-new.png"))); UIManager.put ("FileView.fileIcon", New Image (File System Class.GetRSOS ("File Page")); UIManager.put ("FileChooser.listViewIcon", New Imagine (FileSystem.class.getResource ("listIcon.png"))); UIManager.put ("FileChooser.detailsViewIcon", New Image (FileSystem.class.getResource ("details.png"))); // Update UI swing destinations. Update ComponentTriOi (selector);  

No comments:

Post a Comment