Click to See Complete Forum and Search --> : Problem in displaying an XML file in a Java Application


kaushik_mca
November 28th, 2000, 09:55 AM
I am developing a "Java Application" which is Menu driven and based on Swing.There are two Panels,on the left Panel I am showing the Menu(which is generated on the fly by parsing an XML file from the server after proper authentication of the user, i.e geting the user profile and generating the XML file, and that xml file is sent to the client for displaying the menu), I want to show the respective entry/modification form. There may be thousand Menu options. I can display the entry form with corresponding class file, but imagine I have to write thousand classes. I want to use only one class file that will display the user entry forms for various menu options. How can I achieve this? One way is to way define an XML file for each option and sendig to the client and then the client program(singlr class) will parse it and display accordingly. But the problem is again that I have to write thousand XML file and again how the Client program will keep track of the new tags which may be added at the server side in the xml file and how to display the components, i.e width,height,position, etc., i.e, how to control the components.

I am not geting any proper solution to this problem. Thannksin advance to anyone giving suggestion on this topic. Reply soon --

Kaushik K Dey