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: Opening Documents in specific location using JButtons

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    3
    My Mood
    Tolerant
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Opening Documents in specific location using JButtons

    Hi All

    I have just signed up to the forum and hope you can help me with a java program to open Microsoft Documents, I don’t want to edit these programs just yet.
    I have very little experience with Java having completed semester 1 last years and have done nothing since.
    I want the program to do the following - When I click onto a desktop icon it open a JPanel which has Four Buttons. Each button has to open a different document in different locations E.G. C:\word.docx, C:\Excel.xlsx etc. I can create a java basic application that will show the buttons but cannot get any further at the moment.
    I hope you can help me with this.

    Twolohan


  2. #2
    Senile Half-Wit Freaky Chris's Avatar
    Join Date
    Mar 2009
    Posts
    834
    My Mood
    Cynical
    Thanks
    7
    Thanked 105 Times in 90 Posts

    Default Re: Opening Documents in specific location using JButtons

    What have you tried? What problems do you get?

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Opening Documents in specific location using JButtons

    Look at the Desktop class to a way to open a file with the OS's chosen application.

Similar Threads

  1. Replies: 0
    Last Post: September 15th, 2011, 06:44 AM
  2. Appending to online documents
    By aussiemcgr in forum Java Theory & Questions
    Replies: 3
    Last Post: August 2nd, 2011, 08:44 AM
  3. output to a specific location in html code
    By aketr in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 15th, 2011, 11:44 AM
  4. [SOLVED] Specific Text Extraction from PDF Research paper documents
    By user101 in forum Threads
    Replies: 1
    Last Post: September 8th, 2010, 11:30 AM
  5. Reading the size (height and width) of word documents
    By pradeep_das in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 7th, 2010, 09:58 AM