5 Replies Latest reply: May 29, 2007 11:39 AM by 807591 RSS

    how getting the name of file without extension ?

    807591
      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;