a good way u introduces but
dear friend
i have problem to solve this matter plz help me or any body else who know can also mail me on capricorn_4all@hotmail.com
i have to make a simple window/frame using java swing and create menus at runtime as described in xml document. XML document is attached below i have needed to load and read xml document using Java API xml. This xml document contains the menus structure.
When we run the application and pass the xml document name using command line argument then the output should contain a window/frame on the screen and create menus as described in the xml document. If we change any menu settings in xml document. Then application should able to recreate menus according to the change.
Note:
1. Use java API for xml processing
2. Xml document passed as command line argument
All menus will be created at run time as described in the xml document
The xml file with code is as under for your kind consideration.
so dear if any body can help me so plz mail me with code/help as soon as possible
With the above line of instructions may i have able to read xml but still not able to create runtime menus by using swing and my desired xml file. plz help me as soon as possible i ll b thank full to u.
The xml code that i have to use is:
<?xml version="1.0" encoding="UTF-8"?>
<!-- New document created at Sun Dec 11 20:59:54 GMT+03:00 2005 -->
<!-- Created by abc -->
<console>
<menus type='Main'>
<menu name='File'>
<menuitem name='New' />
<menuitem name='Open' />
<menuitem name='Close' />
<menuitem name='Exit' />
</menu>
<menu name='Search'>
<menuitem name='Find' />
<menuitem name='Find Next' />
<menuitem name='Replace' />
</menu>
<menu name='Help'>
<menuitem name='Index' />
<menuitem name='About' />
</menu>
</menus>
<menus type='Popup'>
<menuitem name='Cut' />
<menuitem name='Copy' />
<menuitem name='Paste' />
<menuitem name='Find' />
</menus>
</console>