5 Replies Latest reply on Apr 29, 2008 7:19 PM by 807591

    how getting the name of file without extension ?

      Hello all!

      I am trying to get the name of a file like this :
      JFileChooser dialog = new JFileChooser
      File x= dialog.getSelectedFile();
      String name = x.getName();
      but x is name_of_the file+"."+extension;