can i make my app (open with) windows menu with java (need examples) -


i need example make app default text editor in java (i mean when open text file opens program)

how can java ??

i found answer after many tests when open text file app open menu in windows

 public static void main(string[] args) {             filereader file_reader = null;         try {             new notepad().setvisible(true);             file_reader = new filereader(args[0]);             bufferedreader br = new bufferedreader(file_reader);             string temp = "";             while (br.ready())             {                 int c = br.read();                 temp = temp+ (char)c;             }             myarea.settext(temp);             br.close();             file_reader.close();             textcontent = myarea.gettext();         } catch (filenotfoundexception ex) {             logger.getlogger(notepad.class.getname()).log(level.severe, null, ex);         } catch (ioexception ex) {             logger.getlogger(notepad.class.getname()).log(level.severe, null, ex);         } {          } } 

you must make app exe


Comments