Java: Pointer le JFileChooser sur le répertoire Courant

Author:

 int,string,char,static, url, socket, url, socket, java
{filelink=23}


import javax.swing.JFileChooser;

 public class TestJFileChooser
{

  public static void main(String[]arg)
   {
          JFileChooser chooser=new JFileChooser(".");
          int result= chooser.showOpenDialog(null);
          if(result==JFileChooser.CANCEL_OPTION)
              return;
          String BD=chooser.getSelectedFile().getAbsolutePath();
          System.out.println(BD);
 
    }
}

A Voir sur le même Sujet:

  • comment exporter jtable vers excel avec jfilechooser netbeans
  • JFileChooser
  • explication du class jfilechooser
  • bibliothèque+pour+jfilechooser
  • filechooser tactile
  • jfilechooser java netbeans
  • les methodes de jfilechooser
  • jfilechooser supprimer colonne
  • java: pointer un chiffre dans un nombre
  • java répertoire courant

Leave a Reply

Your email address will not be published. Required fields are marked *