How to add inline xml schema using jaxb?

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

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

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.