Is it possible to create a user interface with java and eclipse using a xml file?
As in android
Thx
SwiXml looks like what you need.
Google Web Toolkit will support XML layout from version 2.0 onwards.
Quick Example
This is a web front end however and not swing.
Here's a 2006 article about a few options including SwiXml, which produced one of the few decent results in a 2004 GUI building challenge. There doesn't seem to be many new entries in the field--perhaps people all moved to Web 2.0--except the very promising Apache Pivot with WTKX.
I think as with any non-trivial project, you have to examine the alternatives based on your very specific requirements. I investigated all those options in early 2007 for a company project, but we ended up rolling our own (except using the CSS parser from JAXX) because none completely satisfied our needs.
Related
I'm interested in using XUL as a standard way of defining my Java app (both Swing and web alike) UIs. To do this, I need two major components:
An open source GUI builder that allows me to drag n'drop UI elements, like Abeille forms or Matisse, etc., and export these UIs into a standards-compliant XUL file
A Java lib for reading that exported XUL file and building UI components out of it
I would have thought this would be easy to find, however there are a number of problems:
For one, I can't seem to find an "official" XSD Schema for XUL (even off of Mozilla's site), so it doesn't seem to be universally enforced/validated from a central schema, and as such, seems to have lots of conflicting variations across various XUL tools/products
Hence, gettting one tool that can export a XUL file, and a Java lib to read that XUL file without errors, seems to be difficult/impossible
All the XUL-based GUI builders I've found seem to be proprietary and expensive
The only Java libs that can read XUL files seem to be billed as "XUL toolkits" and include a web server, templating engine, etc. In other words, they are overkill for what I need, which is something that can read a XUL file and produce a container object full of UI widgets.
Anyone have any idea as to how I could marry these two ideas together and accomplish what I need? Thanks in advance!
I once explored that avenue with many toolkits. From my experience, it is not worth it, but why not give it another try?...
I needed the following :
CSS Integration, if possible, to skin the UI
Scripting using Rhino and/or other JVM scripting languages
XML markup support and basic Swing integration (Not really important)
I ended up customizing an existing library. I can't recall the exact name, but I think it was a fork of swingml to support inline scripting better. I improved the Rhino support and also hooked some Jython integration.
There were many other options, but nothing that was really astonishing.
I also tried to use Apache Commons Jelly (main library behind early Apache Maven versions). Commons Jelly has/had a Jelly Swing module.
At the end, I realized that it wasn't both convenient and time saving, in addition to overhead (Java reflection and dynamic method dispatching, proxies and interaction with JVM scripting languages -> scoping among other things, etc.).
I have developed some years ago and I am currently refreshing a Java sourceforge project based on XUL, and integrating scripting languages called javaXUL: https://sourceforge.net/projects/javaxul/
Check http://www.zkoss.org/product/zk
I have used zk in past it's a nice tool based on XUL. It has community edition as well as License version.
Please check if this will help. thanks
Can any one give me detailed information about Java's new technology that is JAXX.
Really I have searched all over the web but not getting exact details that could help me to
write program in Java JAXX ,Compilation & run the same.
It is a new technology ahead of Swing.
Thanks.
It seems Ethan Nicholas' work on Jaxx is not a dead project.
Read here for good introduction: today.java.net/pub/a/today/2006/03/30/introducing-jaxx.html
JavaCSS is found in the JAXX project. JAXX is a xml format style implementation of the swing gui interface. You write an xml document, and a css style document, and are able to bind the inputs and outputs of the GUI to your java implementation engine. The css style document allows for rapid sophisticated gui development. Using the jaxx jar engine, the xml code is converted into java code that runs as rapidly as if deployed in a .java class file.
The project has been continued by a French group of programmers and is now to be found here:
http://www.nuiton.org/projects/jaxx/files
The latest release is JAXX 2.4.2. The latest update was May or June 2011. Whilst in French, the documentation is still comprehensible in English. Just translate.
The original ethan nicholas files of jaxx were last updated on 17-07-2009
http://sourceforge.net/projects/jaxx/
Please note: www.jaxxframework.org/wiki/Main_Page is a dead link, the site is discontinued. instead a mirror has been made and can be found at: buix.labs.libre-entreprise.org/original-jaxx/www.jaxxframework.org/wiki/Main_Page.html
This documentation is essential to understand the meaning and purpose of jaxx and its use.
Have you tried this link??
http://today.java.net/pub/a/today/2006/03/30/introducing-jaxx.html
The resource is pretty good and has a few links at the end for further reading.
Without more detail of your issues, its all I can offer.
Note: I would suggest however that this project doesnt look very active.
I am building a website in Eclipse Helios using Google App Engine and want to implement ASP.NET Master Page like functionality for common code across different pages. Is there something similar in Java?
Updated:
I am not a Java developor, after looking at the links in the posted answers, I think Facelets and Tiles Framework offer the template functionality. Which one is the preferred one? Both can run on GAE.
I'm not very familiar with asp.net but a short read on master pages suggest to me that what you are looking for is JSF Facelets. Facelets allows you to define a template with default content and points where template clients can insert there code.
Template clients can fill in these insert points but don't have to fill in all of them or they can add new ones. So you can also build templates on other templates.
Here is an article which should you give a better idea of what JSF templating can do.
Instructions for setting up JSF on GAE are here
I'm not sure about GAE but here's an SO question that has suggestions for Java EE applications.
Update
Here's a list of stuff supported in GAE and according to this SO answer, it seems to support certain versions of JSF as well.
I am trying to learn how to work with java webservices, but i had some issues working with eclipse bundeled with some incubated modules, which give me some errors while trying to program something.
Can you suggest me an IDE for developing java webservices, which would be easy to use (or which eclipse package...), especially for beginners.
It would be grate if you could maybe also point me some tutorials of how to create a simple java webservice step by step. The ones that if ound where kind of "old" 4-6 years ago.
I just went through the same process, and didn't have many problems using eclipse. Once you get past the initial learning curve of setting things up, it's really not that bad :)
Here's some of the sources I used to learn how to build JAX-WS services:
http://download-llnw.oracle.com/javaee/6/tutorial/doc/?wp405739&JAXWS.html#wp72279
JAX-WS/Java EE tutorial from Oracle, updated June 2010
https://metro.dev.java.net/getting-started/basic.html#Building_Server
This gives some useful code snippets whether you are starting from Java or from a WSDL file.
http://www.ibm.com/developerworks/java/library/j-jstl0211.html
Information on JSP tags and the JSTL standard libraries. (these are super useful when writing the JSP pages your user will end up seeing)
http://www.stardeveloper.com/articles/display.html?article=2001081601&page=1
Information on JSP scripting tags and custom tags in general.
http://java.sun.com/developer/technicalArticles/javaserverpages/code_convention/
JSP code conventions/best practices
Try Java EE 6 examples with Glassfish. They are relatively fresh and Glassfish has an excellent support for almost all parts of the spec
http://download.oracle.com/javaee/6/tutorial/doc/bnayk.html
With eclipse and axis look at this:
http://ws.apache.org/axis2/tools/1_2/eclipse/wsdl2java-plugin.html
I'm using NetBeans, and haven't had any problems with it so far!
You can download it here: https://netbeans.apache.org/download/index.html
I am trying to review the different available wiki engines and was interested in one that is java based. Could you recommend or list any java based wiki engine so that i can have check it out.
I am familiar with the following JSPWIKi, Elsie.
Thanks
There are quite a few available. I'd check out the open-source ones first.
I have to say XWiki impressed me most, but that was for a feature set we were looking for quite a while ago, it may not match your exact needs...check out the full list I linked, see if anything fits you well.
You might like to think about Confluence. It's not open source, but it's extensible, if you wanted to make some kind of plugin.
I'm using JSPWiki since a few years.
JSPWiki is a feature-rich and extensible WikiWiki engine built around the standard J2EE components (Java, servlets, JSP).
VQWiki and Confluence have worked well for us.
Another great Java based Wiki engine is GWiki http://labs.micromata.de/display/gwiki/Home it can be embedded and extended by macros written in in Java or Groovy.