How do I generate a UI by using XML schema in Java?
-
Hi, this is Roopa. I have an XML schema .xsd file which consits of UI specification. Now how can i generate UI by using this XML schema through JAVA? Please help me in this regard, very urgent. Thanks in advance, Roopa
-
Answer:
Have a look at Java-FX and FXML. FXML has xml representation of UI elements and their properties (like location, height, width, colour etc). You can also use JavaFX SceneBuilder to generate the .fxml file needed. If you are open to do few steps, I would suggest few things. Understand/Imagine the UI that you are going to build. Install JavaFX SceneBuilder. Create the same UI by dragging and dropping UI components like buttons, text boxes etc and managing their properties. (The xml file you are having may not be ready to be directly imported and digested by JavaFX). (And don't worry... It is very user friendly and you can start using it like a pro within an hour) Then use a JavaFX tutorial to import the .fxml file created to Eclipse or any other IDE. This could be good starting point. http://edu.makery.ch/blog/2012/11/16/javafx-tutorial-addressapp-1/ (http://edu.makery.ch/blog/2012/11/16/javafx-tutorial-addressapp-1/) Once you compile and run your program in Eclipse, you will see the UI exactly as you designed. Now you can appreciate your good work (and maybe thank me) in a matter of 2-3 hours.....
Anonymous at Quora Visit the source
Other answers
Try xsd-forms https://github.com/davidmoten/xsd-forms Though this is limited in functionality, but good start. http://sourceforge.net/projects/xsd2gui/ http://sourceforge.net/projects/xsa-xsd2jsf/ Haven't tried these, but looks promising. http://stackoverflow.com/questions/1684774/toolkits-or-applications-that-build-ui-from-xsd http://stackoverflow.com/questions/8274615/get-html-form-from-xsd/8359238#8359238 http://ausweb.scu.edu.au/aw02/papers/refereed/fitch/paper.html https://social.msdn.microsoft.com/Forums/en-US/d7afe538-8a56-452e-b4fa-6d49e558660a/can-i-generate-a-web-form-from-xml-schemaxsd?forum=asmxandxml Pointers that might help XUL, UIML and XForms all tries to address the problem of generating form UIs from metadata. HTH.
Subhrajyoti Moitra
Related Q & A:
- how can I listen for database changes using java?Best solution by Stack Overflow
- How do I generate documentation for a project?Best solution by Stack Overflow
- How do I generate barcode using c#?Best solution by Stack Overflow
- How can I parse a complex XML with PHP and CDATA?Best solution by Stack Overflow
- How do I open a .doc file using yahoo mail?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.