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:

  • charger plusieurs images jfilechooser java
  • explication du class jfilechooser
  • javax.swing.jfilechooser source fichier text
  • JFileChooser
  • jfilechooser dossier courant
  • filechooser voir que des repertoire
  • code source d'afficher des image en jfilechooseri en java
  • jfilechooser supprimer colonne
  • jfilechooser developpez.com code source
  • CHOISIER IMAGE A PARTIR DE FILE CHOOSER SWING NETBEANS

Leave a Reply

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