How to create a Help(user guide) Window with Swing for my software package
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   A_Subrahmanyam
Posted On:   Thursday, January 22, 2004 08:02 AM




			
I want to create a Help window like of Mocrosoft help

			
windows using Swing. I tried to creat help window using

			
JToolBar , JTabbedPane and JsplitPane but not able to use

			
JSplitPane for every Tab of JTabbedPane..

			
Pls help me



Re: How to create a Help(user guide) Window with Swing for my software package

Posted By:   A_Subrahmanyam  
Posted On:   Sunday, January 25, 2004 11:01 PM

sir ,

I tried that ..but still facing problem..
Plz send me the whole code so that .. i can compile


plz
plz

subrahmanyam

Re: How to create a Help(user guide) Window with Swing for my software package

Posted By:   Eugene_Petersen  
Posted On:   Thursday, January 22, 2004 08:31 AM

If you are talking about the help which comes up when you press F1, then the following code should help:

//create the frame and add the JToolbar as normal
//then do the following
splitter = new JSplitPane();
//set other JSplitPane properties here
JPanel tab1 = new JPanel();
JPanel tab2 = new JPanel();
JPanel tab3 = new JPanel();
JPanel tab4 = new JPanel();
JTabbedPane tabs = new JTabbedPane();
tabs.addTab("Content", null, tab1, "View content List");
tabs.addTab("Index", null, tab2, "View index List");
tabs.addTab("Search", null, tab3 "Enter a search here");
.....
splitter.add(tabs); //add left side pane
splitter.add(scollpane); //add right side pane
contentPane.add("Center", splitter);
.........



Hope this help. let me know if you getting stuck and
I'll try to clear it up more.



Goodluck
About | Sitemap | Contact