Re: JavaBeans
On 7/23/2011 8:18 AM, Stefan Ram wrote:
More than 10 years ago, some people suggested JavaBeans as
software components, so that - in an IDE - Java programs can
be composed from JavaBeans.
Now, I have read someone claiming that this had failed and
that it was not used in the industry.
Can someone explain, if this is true, why it has failed?
And, if it has failed, what does this mean for program design
and those parts of Java that involve JavaBeans?
I sometimes use javax.swing.event.SwingPropertyChangeSupport,
which is a subclass of java.beans.PropertyChangeSupport.
Is this now deemed to be at risk of becoming obsolecent?
From your question it seems obvious that you are talking
about JavaBeans as drop and drag GUI components not as data classes.
It is definitely not widely used.
But given that maybe 95% of Java GUI's are we based and maybe
only 10% of Java desktop app developers like GUI builders, then
the potential audience is just 0.5% of all Java developers.
And if the tool support is way behind what Microsoft offers,
then even those people get disappointed.
So I think we can say that it has failed.
And I think we can blame it on lack of market and
being an immature technology (those are probably
dependent - if the market had been there then the technology
would have matured).
If you want this type of stuff then VB6 -> C# win forms -> C# WPF
has simply been the typical choices.
Arne