Remove File Protection Using java

In this video i'm going teach you how to remove file protection using java.
i use java io package for this lesson .
you can download netbeans project from here
http://ity.im/0rN90

 you can download flv video from here
http://ity.im/0rN91

code:   private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                       
              try {
            File file=new File(jTextField1.getText());
            file.setWritable(true);
            if (file.canWrite()) {
                jLabel2.setText("This File Is Writeble");
                jTextField1.setText(null);

            }
           else{
 jLabel2.setText("This File Is read Onley");
 }
        } catch (Exception e) {
        }    }       
7/20/2012 12:14:42 pm

l-deserved position for quality,style and comfort.Dansko is now extending their remarkable position to comfortable,stylish sandals for each and every day time wear.The Dansko Shoe

Reply



Leave a Reply.