GUI for Editing XML? - java

i need to create GUI for editing xml document showing the XML in tree view and displaying the need node name and value in a text box for editing. Please let me know if any tool/framework available for this.
Note: its a web application using jsp

You could use eclipse. Download "Eclipse IDE for Java Developers" from http://www.eclipse.org/downloads/.

You may want to have a look on Eclipse or Netbeans platform as a start.
These are for desktop applications. Not sure if you are looking for webApp or desktop app since you didn't mention it in your question.

I don't any specific toolkit that could build a GUI for you but xml spy could give you ideas on how you want your GUI to look like:

Related

Convert/import existing javafx project into SceneBuilder

I have a javafx project already in Intellij but doing the view/gui stuff is just kinda tedious. I found scenebuilder and would like to use it for my existing project, but dont know how to "import" it. I understood that I need fxml files, but dont know where to create them etc.
Can anyone help me? Thanks!
Create your FXML files and edit them in SceneBuilder.
As James_D notes in comments:
There's no tool I know of for converting Java-based UI to FXML. You would just have to re-do all the view in FXML one way or another if you want to use SceneBuilder.
You can also edit the FXML text directly in your IDE for small simple changes, but, in general for large projects with a lot of FXML files, it will probably be better to do most of the editing or at least the initial FXML creation using SceneBuilder.
Search the web for a good tutorial on FXML if you need one.
As you are using Idea, to get started use the JavaFX new project wizard and slowly copy in, then port over parts of your existing application from your existing project as you replace the view logic.
Idea (or at least some recent version of it that I have tried) does have the ability to use SceneBuilder embedded in the IDE, though I have found that functionality is a bit flaky, so I don't advise using that at this time.
However, you can also configure the IDE to link to and use an external SceneBuilder installation, which works fine. Follow the instructions at:
Open files in Scene Builder from Idea.
Stand-alone SceneBuilder is available for free from Gluon:
SceneBuilder download.
Use a build tool like maven, following the maven standard directory layout for file placement.
Follow the standards and conventions for resource lookup outlined in the:
Eden coding resource guide.
You don't need to fully convert all view logic from Java code to FXML, you can have an application which mixes the two paradigms and that can work well, just choose what works best for your application components.

Java Swing front-end to Etherpad

I am looking to implement Etherpad's functionality into a Java Swing application. There is a Java library for accessing Etherpad's HTTP API, but it only seems to support getting/setting the entire pad text. I want to have live multi-user editing of plain text in Java, where all users see each other's changes realtime while editing. Can anybody point me in the right direction?
Just use: http://docs.oracle.com/javafx/2/swing/SimpleSwingBrowser.java.htm and point it at the Etherpad Pad URL you want to edit...
If I'm honest though, your question is not very clear in what you want to accomplish.
I found a Java library for easily accessing Etherpad's API. I combined this with the JavaFX web browser component and a custom Swing UI.
For anyone finding this on Google or something, you can see my code on GitHub as a standalone app here: https://github.com/Netsyms/SyMATPadViewer
Feel free to use it (BSD license), just change the PADS_URL in the PadUtils class and put your Etherpad API key in the file padkey at the root of the src directory.

Developing an Eclipse Content Assist plugin

I am trying to extend the default behaviour of content assist for XML files in Eclipse (Helios or lower). I need to add some predefined list items in an XML file when a user types a particular string and presses Ctrl+Space.
I tried to search over the internet and got some basic knowledge from Eclipse Help and from this blog. However, being a newbie in writing plugins, I'm unable to figure out some points, like
What should be the plugin template?
or where will the implementing class reside?
I am unable to find any tutorial which can explain it in a better way. Any suggestions in terms of useful links/tutorials would be a great help.
TIA.
The help you link to is for developing content assist in a new editor. If what you want is to add to the existing Eclipse WST XML editor then you have to use the org.eclipse.wst.sse.ui.completionProposal extension point defined by WST to add content proposals. There is an example here

Properties editor Ui to use in swt/jface application

I am currently working on a project where i have a need to integrate/build a properties editor (like Jboss tools properties editor open in eclipse for editing hibernate configuration files) in my desktop application. I was looking for some good ready to use UI plugin to just integrate in my application or with small changes in the source code of the plugin to make that working according to my needs. Can someone please redirect me to the right way.
Thanks
Take a look at http://www.eclipse.org/sapphire/
In the past, I was using Eclipse Structured Source Editing framework. It gives you extensible XML source editor (e.g. you get most source editor features like syntax highlight, code completion - but you can extend and customize those features) - and you can create an Eclipse Forms-based visual editor that would use the SSE XML DOM as a model (e.g. you may add listeners to DOM nodes - to keep your visual editor in sync with the modifications user makes to the source code.
I found a good SWT wrapper, which has provided some ready to use widgets, PropertyTable is one of them.
https://code.google.com/a/eclipselabs.org/p/opal/wiki/PropertyTable
Hope this will help others.
Hibernate configuration files are xml so you should be able to edit them with the standalone Eclipse IDE. When creating a Hibernate Configuration file you would just save it as configuration.cfg.xml and for hibernate class mapping files you would do className.hbm.xml.
I wouldn't say you would need a plugin to create and edit hibernate configuration files. Hibernate will know what to do with the file when it runs as long as they are in the correct build path.
I hope this helps or at least points you in the right direction.

Free XML based java gui language with builder

Is there a free decent java GUI descriptor language (probably XML based), which has a Glade-like (WYSIWYG) GUI builder?
Netbeans IDE. Whenever you use its GUI editor, it stores the GUI in XML, in a *.form file.
For example if your create a class com.some.package.MyForm which extends some Swing component or window, look for this file $SRCDIR/com/some/package/MyForm.java and $SRCDIR/com/some/package/MyForm.form.
The former is the actual Java class that gets compiled. The latter is a file that Netbeans uses to store the GUI in XML format. This is what netbeans uses to generate the auto-gen'd code that goes in the code fold to initiliase the GUI.
HTH
Edit:
I do acknowledge that the Netbeans IDE probably isn't the best one out there, and I personally use it only because it's already built into the IDE that I use anyway. For me it gets the job done, and I may sometimes have to manually apply tweaks in the code to get what I want. It's a no-frills, XML-based, Java GUI, WYSIWYG editor.
Sorry this is prob not the answer you were looking for but have you looked into using flex? The markup in Flex is all XML based and the builder is very good.
Blaze DS can then be used to communicate between flex and Java.
Dont know any pure xml layout frameworks off the top of my head. Whats your reason for wanting an XML based UI?
Simple googling yields me many like http://swingml.sourceforge.net/, http://jfcml.sourceforge.net/,http://cookxml.yuanheng.org/cookswing/etc.
You can try JavaFX, it is too a cool DSL way of representing the Swing components and it provides more of its own for API for animation and graphics usage.
Netbeans and eclipse have plugins/extensions to do DnD development for it.

Categories

Resources