0 Replies Latest reply: Mar 17, 2010 7:35 PM by 800288 RSS

    Where are the java swing String for me to translate?

    800288
      The JFileChooser don't provide support for my language, I'd translate strings defined in the file http://www.rgagnon.com/javadetails/JavaUIDefaults.txt with the UIManager.put(), but I'm not finding the popup strings ("view", "refresh" and "new folder" options when you right-click).

      Does anyone know where can I find them to translate?

      --update*

      Solved: the FileDialog creates the native open dialog.

      Now I just need to know how to center it on screen (the default ways don't work).
      import java.awt.Frame;
      import java.awt.FileDialog;
      
      public class TEST {
      
          public static void main(String[] args) {
          FileDialog fileDialog = new FileDialog((Frame)null);
          fileDialog.setVisible(true);
          }
      
      }
      Edited by: wellington7 on Mar 17, 2010 5:34 PM