I have some xml files which will store the data that has to be populated on to the front end. I am using this data from the xml and laying out in to the horizontal and vertical sections making changes in the java code.
My question is: Can we do this layout control in xml itself ?. The end customer using this tool should be given the flexibility to decide his own layout (through xml modifications by some tool) instead of modifying source code.
Well, as I said there's a fair amount of design for you to do. A GUI is a complicated thing. That implies that me just dreaming up a short example for you isn't going to be practical. Not for a forum post, anyway.
But it really isn't hard. Start by figuring out what features you want in your GUI. (Have you done that yet?) Then design an XML document which can hold specifications of those features. Those are the easy parts. The hard part is to write code which parses the XML and interfaces with the GUI-generating code to format the GUI accordingly.