Open with MyJavaTextViewer when double-click on the file icon-. (In Windows

I create a program called MyJavaTextViewer.
I create text file with ‘.MyJavaTextViewer’ extension and
I want to open that file in MyJavaTextViewer when user dbclick on that file
(Like ‘.txt’ file opens in Notepad when user dbclick on that file icon).
I want get the content of that file to String. How can I do this several actions????

Use file-type association feature of the Windows operating system. It is not a Java issue and Java can't access that particular OS feature AFAIK.

Similar Messages

Maybe you are looking for

  • Execute immediate ... using ... with type within the body of procedure

    Hello, I have the following snippet of code and structures used by him: /* begin code */ create or replace type SET_OF_PRODSET_TYPE is table of number; create table temp_ (aa number); create or replace procedure proc1 set_of_prodset in set_of_prodset

  • SQL PLUS Buffer

    Hi All, I need help to display the database buffer in sql plus.......... and how can we access the buffer to get the detail in the buffer thanks

  • Flashing folder with question mark at Startup

    Here is what I know so far. - The computer was powered off by pushing the power button without shutting down. - The computer was then restarted and it was coming into the white screen with the Apple logo in the middle, but i noticed that it was skewe

  • IPhone 5 left speaker broken, out of warranty but only 7 months old. Any advice?

    My iPhone 5 is 7 months old and my left speaker had just broke so I cannot listen to people on the phone nor listen to music. The iPhone is out of warranty, any solutions?

  • Export low quality in first 7 seconds

    Hello again, after i installed Premiere Pro CC the issue is now in the first seconds i get only a poor quality after then the picture is clear. What the heck is this for an issue??? I´ve uploaded this to the cloud but cant change the privacy mode. Sl