Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1894

Re: Generate forms from a model?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: Generate forms from a model?
Date Sun, 24 Jun 2012 09:43:23 -0700
Organization A noiseless patient Spider
Lines 32
Message-ID <js7g3d$1sm$1@dont-email.me> (permalink)
References <bf8d0c7a-a900-47ad-a4ec-5f3062017dfe@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Sun, 24 Jun 2012 16:43:25 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="IZQsHU8CwMUPnWgvh4wwWA"; logging-data="1942"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/elszVubhst+KplWeWcJzMz2Rg7XKj+U="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
In-Reply-To <bf8d0c7a-a900-47ad-a4ec-5f3062017dfe@googlegroups.com>
Cancel-Lock sha1:Y9eb2lZIDMv986xJTqJQfEBOAPI=
Xref csiph.com comp.lang.java.help:1894

Show key headers only | View raw


On 6/22/2012 3:06 AM, m.skrzetuski@gmail.com wrote:
> Hi there,
>
> is it possible to generate forms from models in Java? Suppose I have the following model.
>
> someInformation|dataType:Integer|possibleValues:1,2,3
> someOtherInformation|dataType:String|maxLength:50
> someBooleanInformation|lables:Yes,No


I found this little project on GitHub.  I haven't used it however.

<https://github.com/aeremenok/swing-formbuilder>

I also found Jelly on the Apache website (the Apache foundation has a 
LOT of Java libraries).

<http://commons.apache.org/jelly/tutorial.html>

However Jelly looks quite old, I'm not sure if it's being actively 
maintained.

Overall, I don't see a lot of this sort of something-into-something else 
type code for Swing.  If you have complexity in your Swing components, 
you'll have it in the the model as well, so you might as well just use 
Swing directly.  Mixing things like GUI validation and layout in your 
"model" doesn't seem like the best idea to me, and I think it fell out 
of vogue some years ago.



Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Generate forms from a model? m.skrzetuski@gmail.com - 2012-06-22 03:06 -0700
  Re: Generate forms from a model? Roedy Green <see_website@mindprod.com.invalid> - 2012-06-22 05:22 -0700
  Re: Generate forms from a model? markspace <-@.> - 2012-06-24 09:43 -0700

csiph-web