Creating Help pages

I have designed a java program(GUI).
There is a button that brings up a help page when clicked,
like in microsoft word help.
How do i create this help page.

I have tested the html on a sample program.
It's not what i'm working on.But it keeps giving 2 errors.
error::invalid escape character at line 56
error::invalid escape character at line 56
N.B:The html file is stored on my hard disk
Can someone tell me why?
And i would appreciate any other suggestion to the problem i started
with at the begining of this thread(posting 1-5).
Here is the code:
import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;
//import com.sun.java.swing.text.*;
import javax.swing.*;
import java.net.URL;
public class EeyoreQuotes extends JPanel {
    private Font demoFont = new Font("Serif", Font.PLAIN, 14);
    private boolean DEBUG = true;
    public EeyoreQuotes() {
     //create text field
     JTextField textField = new JTextField("Don't bustle me.", 15);
     textField.setFont(demoFont);
     //create password field
     JPasswordField passwordField = new JPasswordField("Don't now-then me.", 15);
     passwordField.setFont(demoFont);
     passwordField.setEchoChar('$');
     //create panel to contain text fields
     JPanel textFieldPane = new JPanel();
     textFieldPane.setLayout(new GridLayout(0, 1));
        textFieldPane.add(textField);
        textFieldPane.add(passwordField);
        textFieldPane.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createTitledBorder("Text Fields"),
                BorderFactory.createEmptyBorder(0, 5, 5, 5)
     //create text area
     String text = "It's snowing still. \nAnd freezing. \n" +
               "However, we haven't had \nan earthquake lately.";
     JTextArea textArea = new JTextArea(text);
     textArea.setEditable(false);
     textArea.setFont(demoFont);
     textArea.setMargin(new Insets(5,5,5,5));
     textArea.setPreferredSize(new Dimension(170,80));
     //create panel to contain text area
     JPanel textAreaPane = new JPanel();
     textAreaPane.add(textArea);
        textAreaPane.setBorder(BorderFactory.createCompoundBorder(
                BorderFactory.createTitledBorder("Text Area"),
                BorderFactory.createEmptyBorder(0, 5, 5, 5)
     //create html area
     JEditorPane quotePane = null;
     JScrollPane scrollPane = null;
        String s=null;
     try {
            s="C:/myjava/JEditorPane1.html";
         URL url = new URL(s);
         quotePane = new JEditorPane(url);
         quotePane.setEditable(false);
            scrollPane = new JScrollPane(quotePane);
         scrollPane.setPreferredSize(new Dimension(300, 175));
         if (DEBUG) {
             System.out.println(quotePane.getText());
             quotePane.setText(quotePane.getText());
     } catch (java.io.IOException e) {
            scrollPane = new JScrollPane(new JTextArea("Can't find HTML file."));
         scrollPane.setFont(demoFont);
     //create panel to contain html text
     JPanel htmlTextPane = new JPanel();
     htmlTextPane.add(scrollPane);
        htmlTextPane.setBorder(BorderFactory.createCompoundBorder(
                      BorderFactory.createTitledBorder("HTML Text"),
                      BorderFactory.createEmptyBorder(0, 5, 5, 5)
     GridBagLayout gridBag = new GridBagLayout();
     GridBagConstraints c = new GridBagConstraints();
     gridBag.setConstraints(textFieldPane, c);
     add(textFieldPane);
     c.gridwidth = GridBagConstraints.REMAINDER;
     gridBag.setConstraints(textAreaPane, c);
     add(textAreaPane);
     gridBag.setConstraints(htmlTextPane, c);
     add(htmlTextPane);
     setLayout(gridBag);
        setBorder(BorderFactory.createEmptyBorder(20, 20, 20, 20));
    public static void main(String[] args) {
     JFrame frame = new JFrame("Eeyore Quotes");
     frame.addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent e) {
              System.exit(0);
     frame.getContentPane().add("Center", new EeyoreQuotes());
     frame.pack();
    frame.setSize(200,200);
    frame.setVisible(true);
}

Similar Messages

  • Creating help pages in Authorware

    Hello all,
    I created a learning game in Authorware, and I've added a
    "Help" drop-down menu. Now I need to create help pages that have
    player/game instructions and rules. I want to create something as
    close to the standard Windows help pages as possible and I'm
    guessing there are functions in the windows.api that I should/could
    use. Where should I look for info on how to approach this? If I
    want an expandable left pane "Contents" list, I probably need to
    create the pages as XML files, huh? Although, it's not necessary,
    just a clean concise help section is sufficient.
    Any info is greatly appreciated.

    You have two separate issues. First, you neeed to create the
    drop down
    menu. If you're coding for PC only, look at Windows Controls.
    If you need
    Mac support as well, you're going to have to fake it with a
    lot of
    ingeneuity and hard work.
    The second is displaying and formatting the pages. The pages
    can be
    formatted however you want, from having hard-coded pages in
    Authorware to
    plain text stored in files or a database to rtf displayed in
    RTF objects.
    If you need formatting, your options are hard coded in
    authorware, RTF
    through the RTF object or an RTF ActiveX, or an embedded
    broswer displaying
    HTML or XML with XSLT.
    HTH;
    Amy
    "rprevost" <[email protected]> wrote in message
    news:el6scv$4f9$[email protected]..
    > Hello all,
    >
    > I created a learning game in Authorware, and I've added
    a "Help" drop-down
    > menu. Now I need to create help pages that have
    player/game instructions
    > and
    > rules. I want to create something as close to the
    standard Windows help
    > pages
    > as possible and I'm guessing there are functions in the
    windows.api that I
    > should/could use. Where should I look for info on how to
    approach this? If
    > I
    > want an expandable left pane "Contents" list, I probably
    need to create
    > the
    > pages as XML files, huh? Although, it's not necessary,
    just a clean
    > concise
    > help section is sufficient.
    >
    > Any info is greatly appreciated.
    >

  • Need help in creating a page that populates 3 related tables

    Hi All,
    I am pretty new to Oracle and have been trying to use the wizards in HTML_DB to create one page that will populate three tables. I have thus far have NOT been able to find my solutions. I do not know enough experience in SQL/PL_SQL to create the code on my own.
    Here is my dilemma. I have three tables:
    con (for contacts) - with regular contact info = l_name, f_name, phone...
    pro (for different programs) - with different program info = pro_name, priority..
    procon (Contact/program) - that joins the two together with initial, follow-up and close date fields.
    I created a composite primary key in the procon table that consists of the two pk's of the other two tables (using fk relationships).
    I want to be able to use one page in HTML_DB to enter in the data which will populate all three tables. Is there a way to do this in PL/SQL?
    * Also: Is there a book out there that you can recommend that really teaches SQL/PL_SQL?
    I would really, really, REALLY appreciate the help!!!!!
    Thanks,
    d.

    This isn't as bad as you think. I would create one procedure in a package and pass the parameters to the package via htmldb
    procedure insval(in_a in number, in_b in number, in_c in number)
      begin
       insert into tablea(cola)
        values(in_a);
      insert into tableb(colb)
       values(in_b);
      insert into tablec(colc)
       values(in_c);
      end;and then you call it from htmldb using a process
    schema.package.insval(:p1_a,:p1_b,:p1_c);That's ultra-simplified, but will get the job done.
    -Scott

  • How do I create a help page?

    Hi,
    I want to create some help pages regarding to different applications in EP. Can I have a contextual help? Can I use a help service? I want one help button which shows a help page referring to the application I am displaying.
    How can I do that?
    Thanks,
    Damian

    Hi Damian,
    if you need this for your own developed iViews, here http://help.sap.com/saphelp_nw04/helpdata/en/50/bb174082fe1961e10000000a155106/frameset.htm the standard way to implement the help for a component is described.
    You call the help from the iView's context menu.
    Hope it helps
    Detlev
    PS: Please consider awarding points for helpful answers. This also holds for your other thread Labels in Detailed Navigation where I have tried to help, too. Thanks in advance!

  • HELP! How do I create a page for clients and talent to login and info...

    I need to create a page for interested clients to register to my site and then browse talent for promotions...I also need talent to be able to register and store their photographs and information so that potential clients (and I) can browse through their info... This obviously needs to be two different things...How do I do this???

    This old thread may help:

  • How to create a popup help page in html db

    i'm trying to create a popup up help page in html db by having a help button from the main page and when clicked a popup page will appear... but can't seem to get it working...
    can somebody pls help me? thanks a bunch!!

    Hi Denes ,
    Need some more suggestion from you .
    I have incorporated your popup code in navigation 'Logout' link.
    Now after clicking on that the popup page appears fine .
    But i like to include two button in that popup page such a way that --
    after clicking 'Confirm Logout' button some database updation has been done and the child popup page unloads,but the parent page redirect to login page.But if cancel pressed then only child popup page unloads and no database action will will be carried out .
    Could you plz help on this .
    Cheers,
    Rosy

  • I would like to create the a swatch, add it to the library and import to the swatch panel.  The help pages available relate to earlier versions of Muse, which does not work with the 2014.2 release version that I have.  I have created a library folder, imp

    I would like to create the a swatch, add it to the library and import to the swatch panel.  The help pages available relate to earlier versions of Muse, which does not work with the 2014.2 release version that I have.  I have created a library folder, imported the colour swatch as just 4 colours as a mulib file.  I drag the four colours on to the muse page in design view but that is as far as I get.  Can anyone help?  Thanks

    I don't know since I don't share anything. You'll have to peruse the help files and check the permissions and ACLs on the Shared folder. According to the permissions on the Shared folder everyone can R&W. If you want those to be inherited by everything dropped into the folder, add an ACL for
    everyone allow read, write
    Details in the manpage for chmod. The actual steps are left as an exercise.

  • How to create another session for a help page ?

    Hello
    I am trying to create help system for an application, which would be similar to apex's own help system. The main thing is that the help page/application/procedure would run independently of the calling application, and therefore it needs to create another session, I suppose ? How do you implement that ? I have also tried to find description of the package wwv_flow_help, but haven't found anywhere. Is it useful here ?
    Thanks for any comments

    If the link is from a page in your application then that's exactly what you want to do using javasScript to open a new window but keeping the same session ID in the request. In this way, when the new request is received by the Application Express engine, it will have the session cookie that goes with the specified session ID.
    Scott
    P.S. You can help us by telling us your first name and putting it into your handle and/or profile.

  • HELP with Problem creating a page from a template Suggestions PLS.

    Nadia was kind enough to give me step by step in creating a template the right way.
    Problem is why won't it work?
    1) I create a page exactily like I want the templete to look.
    2) I save the child page as a template.
    3) I go to FILE>NEW>Page from template, look at the template on the insert on the right and it is just as I would expect it to be. The update is checked on change. I say ok and what appears on screen is I have lost all my formatting. When I look at the code, creating a page from the template causes the process to change the location of (for instance) the background image gif file from ...images/background.gif to the full location name starting the string at the C:/ all the way to ...background.gif. Therefore, the created page from the template loses all of its formatting.
    How do I fix this problem????

    Okay, here I go again with this problem step by step.
    1) Created a basic page that has a header, body and footer: www.goodimage.com and saved it as maintemp.html .
    2) I saved maintemp.html in the normal place where all the html are stored because as I was creating the template it told me I needed to save the page I was working on. So I decided to store it as an html until as it was layed out. Then I went to FILE/SAVE AS TEMPLATE storing it as maintemp.dwt.
    3) Then I created an edItable area called BODY.
    4) Then I did a FILE/SAVE AS TEMPLATE or tried to. As part of this process it wants to know if I want to UPDATE LINKS. If I do then the links will reference the template folder (but it is the DW default - hmmm what do I do) When in doubt take the default. So I did.
    5) So now I have a nice looking template called maintemp.dwt with one editablel region. So I feel pretty good until I suspect the next problem I have been fighting all along will appear. I select FILE/NEW PAGE FROM TEMPLATE and I see goodimage site, and my template called maintemp and a nice picture of it on the right screen part. Also update page when template changes is checked. Then I select to do the action.
    6)  Upcomes an unformatted screen caused by the links not being correct. I save the page as index.html to see if it will correct itself. I does not correct itself. So the index.html page is not formatted even after I closed down DW to see if that would help. It didn't. So I could go in and manually update the page but what a mess that would be.
    7) So I will go back to create a page from the maintemp.html with the UPDATE LINKS turned off. Using maintemp.html to create a template just like in step 2). When UPDATE LINKS is not selected then the template falls apart and is unusable.
    I HAVE WASTE ABOUT THREE DAYS ON THIS ONE PROBLEM AND I HAVE BUT A FEW MORE HOURS TO GET IT DONE. ONCE THIS WORKS IT WILL GO FAST. I AM TIRED OF BEING TIRED BUT MAYBE THAT IS CAUSING MY PROBLEM. ANYWAY, PLEASE HELP AS I AM AT A LOSE.
    HLOWER

  • How to create a Help page from a file

    Hello,
    I have a new APEX application and someone made a nice help document using MS Word.
    How could I inlcude that file into a Help Page, or some ideas on how this could be seen by the users?
    Thanks

    Hi,
    Apex has a facility whereby you can create a context sensitive help page facility.
    see http://download.oracle.com/docs/cd/E23903_01/doc/doc.41/e21674/bldapp_hlp.htm#CHDCDBFB
    With your help document, save the section relevant to a page as a separate document and save it as a filtered web page. Edit this document in a plain text editor and cut and paste this into the help text for the page.
    When you select help from the navigation bar, then this help text will be shown for the current page. To make it even fancier, you can define the link for the navigation bar to show the help page as a popup, so that you don't loose the current context in the application.
    Regards
    Andre

  • Auto create profile page for users that register? Please help!

    Hi everyone,
    I am building a site along with other people and I am the main web designer. I need to know how to have my site automatically create a users profile page when the said user registers on the site. Something very similar to YouTube or MySpace. Example: If a user where to create an account with the username bob678 the site/code would a page called examplesite.com/userid/bob678 (like I said before very similar to YouTube). I cant seem to find the answer to this anywhere but I know it is possible. Any and all help is very appreciated!
    PS. I already know how to allow people to register, I just need it to create a page for them.

    Ok here it is. How to create the profile page automatic after registering. I'm assuming you have created a "register.php" page and a "login.php" page. Both pages have a relationship with your database tables using PHPMySQL as well. When you created the login.php page a session variable was created. You can find it on the login page only when viewing the page in code view. The session variable will be named "MM_Username"  this is case sensitive. Remember this variable.
    Step 1-
            Create a new blank.php page. and save it as myprofile.php
    Step 2-
            In the bindings menu under applications on the side click the + and choose "Recordset Query". Then stay in the Simple Mode and choose the database connection. Then choose the table containg the columns that you created for your register.php page. Keep the all radio button too. Then choose the database column you designated to be used for storing the username and proceed to:
                                                                                         Filter: "username"              =
                                                                                                   "Session Variable"    "MM_Username"
                                                                                                   "Sort"                       "None"
    Step 3-
           In the Server Behaviors menu click +, User Authentication- Restrict Access to Page. Set "If access denied, go to: login.php". Then click + again, User Authentication- Log Out User.
    Step 4- Insert a table on the page body. Then In the Bindings menu open the + sign of your created recordset. This will display all the columns in your database table. Place the cursur inside the page body table. Then highlight the "username" column from the Bindings menu and click the insert button. This will display the username. Repeat with all columns you wish to be displayed. Save this page.
    (Remeber to edit your login.php page by setting "If login succeeds, go to: myprofile.php)
    Step 5-  "Synchronize Sitewide".
    Step 6- Now test the function you just created by starting from the top:
    Register as a new user. Once you have submitted your user information go to your login page and login with your new username and password. And if login succeeds, you will go to: myprofile.php. Once the myprofile.php page loads, your username and all the columns you inserted will be displayed. Try registering a second user and see the automatic profile page create.
    The secrete in this process is the recordset query being:
                                                      Filter: "username column" = "SESSION VARIABLE" "MM_Username"
    Setting up th recordset to be filtered by username tells the page to only display the records of the username that is logged in. If you were to keep the recordset query filter to "None" then every user records will be displayed on the page creating like a directory/phone book page.
    To sum things up make sure to save the page as a .php first thing. Then create the recordset query. Then restrict access to the page. Then add the log out to the page. This must be done in that order before anything else.

  • I want to create a page of Avery sticky labels. Can anybody help please?

    I want to create a page of Avery sticky labels. Can anybody help please?
    Can somebody help with the above heading please?

    Hello Klaus 1
    I'm very new to iMac having switch for a PC and Word.  I cant see label download for Mac. I may be doing this all wrong. Do I use "Pages" to print from? Is there an Avery label option? I can't see one but I'm being so new to Mac I'm not getting around too easily yet.
    Thanks,
    Andy

  • Help!! reflow create multiple page ?

    adobe edge reflow CC to create multiple pages and can hyperlink ? 
    I would like to save webpages in the single file format.

    We're working on Multiple pages right now. You won't be able to link to them yet but they should be in an upcoming preview. You can add your vote and track the features progress here:
    http://forums.adobe.com/ideas/2656

  • Help/advice- creating .asp pages on PC not connected to server

    I don't know if I'm using the right terminology, but I'm pretty sure we have an ASP server. I created a simple site for the place I work, and now I want to create forms, forum, etc. but it looks like I need "server-side" scripting.
    But I'm using 2 computers - My own laptop with DW to create the pages, and then my work computer without dreamweaver, that's locally connected to our server. On the computer at work I can edit pages using wordpad.
    So if I can't connect to our server straight from the laptop, how can I set up "server-side" technology?
    Don't even know where to begin here - pointing me to any kind of tutorial or info on using ASP would be much appreciated... Walking me through it would be so much better. But anyway, thanks in advance!

    This might sound like a stupid question, but if you are working for the company setting up the site and working remotely that should be a requirement of the job.  If you are an employee and not outsourced work, does the company not own the software they have you using to make the site?
    Anyways, as I said, depending on your version of Windows you can run a local test server.  It uses virtually no memory.  The version of IIS though is determined by your version of Windows.  Here is the link to the Windows 7 installation tutorial from the MSDN site ( http://technet.microsoft.com/en-us/library/cc731911.aspx ).  There are ones for other versions of Windows.  That will allow you to test the ASP.  Otherwise you will can develop but you will have no way to test any programming and dynamic content will not load. Just when you set up the Site in DW, for the Testing Server, choose your server language, but for Access choose "none". 

  • How to add/create additional page in Crystal Report Layout SAP B1

    Hi,
    I wanna ask about How to add/create additional page in Crystal Report Layout SAP B1 ?
    I want when user print Purchase Order then on last page also print some page like Penalty Clause etc.
    Pls help me to find the solution.
    Br,
    Thomas Marsetyo

    Hi,
    In your report footer, set it to create a new page before it is printed (In 'Section Expert', select the Report Footer -> 'Paging' tab -> Check 'New Page Before' checkbox). Throw your Terms & Conditions into the Report Footer section.
    If you already have a Report Footer that you want to keep, just split the footer into two sections (Right-click the Report Footer section -> 'Insert Section Below') and follow the same procedure for the newly created section.
         Check this Link
    http://stackoverflow.com/questions/9232239/adding-an-additional-page-to-end-of-a-crystal-report
    http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18960
    Regards,
    Manish

Maybe you are looking for