• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

Java Swing

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
gauravflame
Asked:
gauravflame
  • 5
  • 5
1 Solution
 
valipotorCommented:
0
 
gauravflameAuthor Commented:
I really don't want to use "Java Help 2.0 " .

How I can implement in a simple way ..

Any old techniques

Thanks
0
 
valipotorCommented:
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
Industry Leaders: 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!

 
gauravflameAuthor Commented:
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
 
valipotorCommented:
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
 
gauravflameAuthor Commented:
any expert like to add comments .
0
 
valipotorCommented:
Hi

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


Best regards,

valipotor
0
 
gauravflameAuthor Commented:
Thanks Valipotor
0
 
gauravflameAuthor Commented:
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
 
valipotorCommented:

 // 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now