5 Replies Latest reply: Apr 29, 2008 2:19 PM by 807591 RSS

    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;