Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Directly Click the pdf File and my Java application will run

  1. #1
    Junior Member
    Join Date
    Dec 2010
    Posts
    21
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Directly Click the pdf File and my Java application will run

    Hello Every one i have an application a java application that read pdf file and display
    the pdf file on a jPanel but i hate the way it work because before i can open and read
    pdf file i must click the jmenoitem and open the jfilebrowser so that my java application will open and read the pdf file.

    i want that i will automatically click any pdf file on my computer with out running my java application and my application will automatically run and will be the one who read the pdf file if i double click any pdf file on my computer.

    any idea about this problem? plss help.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,532
    My Mood
    Hungover
    Thanks
    144
    Thanked 647 Times in 552 Posts

    Default Re: Directly Click the pdf File and my Java application will run

    Hmm, I'm not sure this is possible with just Java. I could be wrong, but I'll be surprised if what you're talking about is easy to implement.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,356
    Thanks
    182
    Thanked 833 Times in 776 Posts
    Blog Entries
    5

    Default Re: Directly Click the pdf File and my Java application will run

    This is more an operating system problem than a programming problem, and as a result the solution depends upon the OS. I'd recommend researching how you can associate the file type with a given application for your OS.

Similar Threads

  1. how to run any installed application through my java application??
    By sgsamanthjain in forum Java Theory & Questions
    Replies: 1
    Last Post: April 1st, 2011, 09:17 AM
  2. Problem with directly and indirectly access system command
    By silentbang in forum Java Theory & Questions
    Replies: 0
    Last Post: January 29th, 2011, 11:34 AM
  3. [SOLVED] can't run javac directly from command prompt
    By epezhman in forum Java IDEs
    Replies: 7
    Last Post: January 12th, 2011, 07:38 PM
  4. [SOLVED] [help] the application file (.jad) for application does not appear to be the ....
    By ordinarypeople in forum Java ME (Mobile Edition)
    Replies: 0
    Last Post: April 4th, 2010, 04:50 AM
  5. Replies: 0
    Last Post: December 3rd, 2009, 04:43 PM