Solved

Java Swing

Posted on 2006-10-29
10
238 Views
Last Modified: 2013-11-23
Hi ,

I like to know who to implement the "Help Menu " in the Java Swing.

1) Do java provide help menu API for this purpose ?

2 ) Actually I am looking for "Help Content" submenu which should look like the Firefox Helpcontent Submenu

Thanks

0
Comment
Question by:gauravflame
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 6

Expert Comment

by:valipotor
ID: 17828291
0
 

Author Comment

by:gauravflame
ID: 17828506
I really don't want to use "Java Help 2.0 " .

How I can implement in a simple way ..

Any old techniques

Thanks
0
 
LVL 6

Accepted Solution

by:
valipotor earned 500 total points
ID: 17828545
Design a HTML page, and load it in a JPanel.

Here is how to do it:

http://www.rgagnon.com/javadetails/java-0205.html
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:gauravflame
ID: 17832549
Hi valipoter ,

This is also a good one.

but it has overhead of .html page.

I am looking for something simple way to create "Help Menu" something within the java.

Thanks  

0
 
LVL 6

Expert Comment

by:valipotor
ID: 17832574
Hi

I don't know any simpler way to achive that.
HTML variant has the advantage that you can find tons of tools in order to design the HTML page, so I sugesst to do that.

Also, maybe some times you would like to deploy the help on a web site, no modifications will be required.

best regards,

valipotor
0
 

Author Comment

by:gauravflame
ID: 17848214
any expert like to add comments .
0
 
LVL 6

Expert Comment

by:valipotor
ID: 17848220
Hi

I doubt any other wxpert will see this thread, I sugest you put a pointer question.


Best regards,

valipotor
0
 

Author Comment

by:gauravflame
ID: 17874031
Thanks Valipotor
0
 

Author Comment

by:gauravflame
ID: 17874327
Just a thought

I will put all the Help content topic in the Jlist and when I will click any element of Jlist a dialolg will open.
Different Jdialog box for every element of Jlist.

Question : How to implement a JDialog from JList element click event .need Help

THanks
Gaurav
0
 
LVL 6

Expert Comment

by:valipotor
ID: 17875680

 // Create a list
    String[] items = {"A", "B", "C", "D"};
    JList list = new JList(items);
   
    // Add a listener for mouse clicks
    list.addMouseListener(new MouseAdapter() {
        public void mouseClicked(MouseEvent evt) {
            JList list = (JList)evt.getSource();
            if (evt.getClickCount() == 2) {          // Double-click
                // Get item index
                int index = list.locationToIndex(evt.getPoint());
                HelpDialog helpDialog=new HelpDialog(index);
                helpDialog.setVisible(true);
            }
        }
    });

where
class HelpDialog extends JDialog
{
public HelpDialog(int index)
{
    //store the index
    //initialise the dialog accordingly to the selected element from the list
}

}
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tomcat startup error 5 136
hibernate example using maven 12 82
going to wrong jsp page 2 50
Need help aligning JRadioButton that put in a box using GridBagLayout 2 27
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question