List Info

Thread: JavaBean version of JSVGScrollPane




JavaBean version of JSVGScrollPane
country flaguser name
United States
2007-04-16 15:21:45
While it is nice that JSVGCanvas has been JavaBean-ized, I
was very surprised
to discover that JSVGScrollPane had not received similar
treatment. The
component I was working on was simple enough that switching
to a hand-built
GUI rather than using the NetBeans form builder was not that
big a deal, but
it seems to me that if you want to build a GUI complex
enough that a form
builder will be a good timesaver, it's very likely that
you'll also want a
scrollpane as well. Are there significant technical
challenges to making
this happen? Is there more to it than adding a default
constructor, plus
maybe a setCanvas(JSVGCanvas c) method to make a
null-argument constructor
more usable?

-- 
View this message in context: http://www.nabble.com/JavaBean-
version-of-JSVGScrollPane-tf3586994.html#a10023930
Sent from the Batik - Dev mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org


Re: JavaBean version of JSVGScrollPane
country flaguser name
Australia
2007-04-16 20:39:10
Hi jalex.

jalex:
> While it is nice that JSVGCanvas has been
JavaBean-ized, I was very surprised
> to discover that JSVGScrollPane had not received
similar treatment. The
> component I was working on was simple enough that
switching to a hand-built
> GUI rather than using the NetBeans form builder was not
that big a deal, but
> it seems to me that if you want to build a GUI complex
enough that a form
> builder will be a good timesaver, it's very likely that
you'll also want a
> scrollpane as well. Are there significant technical
challenges to making
> this happen?

Probably not, but I don’t know much about JavaBeans.

> Is there more to it than adding a default constructor,
plus
> maybe a setCanvas(JSVGCanvas c) method to make a
null-argument constructor
> more usable?

Perhaps you could investigate, and supply a patch?

Thanks,

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycamjabber.org  ▪  ICQ 26955922  ▪  MSN cammcc.id.au

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org


Re: JavaBean version of JSVGScrollPane
country flaguser name
United States
2007-04-17 10:35:00

Cameron McCormack-4 wrote:
> 
> 
>> Is there more to it than adding a default
constructor, plus
>> maybe a setCanvas(JSVGCanvas c) method to make a
null-argument
>> constructor
>> more usable?
> 
> Perhaps you could investigate, and supply a patch?
> 
> 

I did try subclassing JSVGScrollPane, adding a zero-argument
constructor and
re-implementing Serializable with a dummy property, which
should have been
sufficient from what I've read about JavaBeans. I cannot get
the NetBeans
IDE to recognize it as a Bean, however. I don't know whether
I'm not fully
understanding what it means to be a JavaBean, or whether
there is something
extra NetBeans is expecting to find. I was hoping that
whoever made
JSVGCanvas into a JavaBean might be listening and could
supply some insight.


-- 
View this message in context: http://www.nabble.com/JavaBean-
version-of-JSVGScrollPane-tf3586994.html#a10037182
Sent from the Batik - Dev mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org


Re: JavaBean version of JSVGScrollPane
country flaguser name
France
2007-05-28 20:00:01
OK, patch in Bug #42533 
<http://issues.apache.org/bugzilla/show_bug.cgi?id=425
33> seems to 
successfully make JSVGScrollPane as a JavaBean (it is
recognized by 
Matisse Netbeans IDE now). But for now, I did not try it to
build a 
"fully functional" scrollpane really showing SVG
stuff. Maybe some more 
things need to be there...

Herve Girod

jalex wrote:
> Cameron McCormack-4 wrote:
>   
>>     
>>> Is there more to it than adding a default
constructor, plus
>>> maybe a setCanvas(JSVGCanvas c) method to make
a null-argument
>>> constructor
>>> more usable?
>>>       
>> Perhaps you could investigate, and supply a patch?
>>
>>
>>     
> I did try subclassing JSVGScrollPane, adding a
zero-argument constructor and
> re-implementing Serializable with a dummy property,
which should have been
> sufficient from what I've read about JavaBeans. I
cannot get the NetBeans
> IDE to recognize it as a Bean, however. I don't know
whether I'm not fully
> understanding what it means to be a JavaBean, or
whether there is something
> extra NetBeans is expecting to find. I was hoping that
whoever made
> JSVGCanvas into a JavaBean might be listening and could
supply some insight.
>
>
>   

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )