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 4 of 4

Thread: Integrating .chm file in Java application....URGENT

  1. #1
    Junior Member
    Join Date
    Jun 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Integrating .chm file in Java application....URGENT

    Hi,

    I have a .chm file which was created using RoBOHelp along with the header file containing the map id's for context sensitive help.

    On the main menu i have help menu, when clicked i want the .chm to be displayed. Also, on each form(AWT/Swing), i have help button and I want the context sensitive help to be displayed.

    Can you please tell me how i can do this?.

    Thanks
    Manjusha

  2. #2
    Member
    Join Date
    May 2017
    Location
    Eastern Florida
    Posts
    68
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: Integrating .chm file in Java application....URGENT

    What have you tried?
    What program will display a .chm file? It is not part of java SE.

  3. #3
    Junior Member
    Join Date
    Jun 2017
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Integrating .chm file in Java application....URGENT

    I have tried the following, but this opens the complete .chm file.

    String fileName = Path of the .chm file
    String[] commands = {"cmd", "/c", fileName};

    try {
    Runtime.getRuntime().exec(commands);
    } catch (Exception ex) {
    ex.printStackTrace();
    }

    }


    What i want is context sensitive help. The documentation team has provided me with .chm file and a .h file, which has the map id's. Is there any way in java to open context sensitive help?

  4. #4
    Member
    Join Date
    May 2017
    Location
    Eastern Florida
    Posts
    68
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: Integrating .chm file in Java application....URGENT

    What OS command opens the file? Read that command's documentation to see if it has any options to change the way it works.
    Then pass those options to it in the commands array.

Similar Threads

  1. Is is possible multiple public class in one java file? help needed..urgent
    By ruhul_inonity in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 31st, 2013, 03:33 PM
  2. How to Integrating c#dll with java
    By Indhu Mohan in forum Java Native Interface
    Replies: 0
    Last Post: October 4th, 2011, 11:17 PM
  3. Replies: 1
    Last Post: April 26th, 2011, 02:54 AM
  4. Integrating JAVA and C#
    By ckask in forum Java Native Interface
    Replies: 4
    Last Post: February 28th, 2011, 10:38 AM
  5. Credit and thrift society application(urgent)
    By 5723 in forum Java Theory & Questions
    Replies: 1
    Last Post: November 3rd, 2009, 03:44 AM