JXTaskPane does not allow custom painting

View: New views
4 Messages — Rating Filter:   Alert me  

JXTaskPane does not allow custom painting

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Currently JXTaskPane is quite limited for custom painting mostly due to the contentPane which can't be replaced.
Moreover the contentPane's container, a JXCollapsiblePane, is private therefore extending the TaskPane would be also useless.

Could you please at least consider to change the JXCollapsiblePane modifier, from private to protected ? Is there maybe any constraint I'm not seeing ?

Thanks

Lucio
[Message sent by forum member 'luciobiondi' (lbiondi@...)]

http://forums.java.net/jive/thread.jspa?messageID=369364

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXTaskPane does not allow custom painting

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Lucio,

> Currently JXTaskPane is quite limited for custom
> painting mostly due to the contentPane which can't be
> replaced.

That's possibly a problem.  The default content pane is at least JXPanel.  You can cast (*shudder*) and set a painter.

> Moreover the contentPane's container, a
> JXCollapsiblePane, is private therefore extending the
> TaskPane would be also useless.

Why do you need to extend it?  Why is extending it useless?  I'm not seeing your point.

> Could you please at least consider to change the
> JXCollapsiblePane modifier, from private to protected
> ? Is there maybe any constraint I'm not seeing ?

The JXCollapsiblePane is an implementation detail.  There's no reason to (or rather should be no reason to) expose it.  If you feel there is such a need, then there is probably some missing API.

Karl
[Message sent by forum member 'kschaefe' (kschaefe@...)]

http://forums.java.net/jive/thread.jspa?messageID=369398

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXTaskPane does not allow custom painting

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Karl,

> The default content pane is at least JXPanel. You can cast (*shudder*) and set a painter.

Yeah, I've seen the JXPanel. Unfortunately can't use a painter. I'm wrapping many swing/swingx widgets for a  programming language providing an own painting system, i.e. it doesn't expose painters, therefore I'm forced in replacing the contentPane.

> Why do you need to extend it? Why is extending it useless? I'm not seeing your point.

Because also extending the JXTaskPane I would not have access to the JXPanel's container, that is the  XCollapsiblePane, which is precisely private.

In other words, what is missing IMO is something like

    JXTaskPane.setContentPane
or
    JXCollapsiblePane.setContentPane

if the latter would be at least protected.

In general, I would say, but very quietly :-), if you, I mean the swingx developers, can avoid, or at least limit, putting restrictions that prevent access or the replacement of components' internals, as sometimes what the API exposes by default is not enough to satisfy some special needs (what, all things considered, was the distinguishing aspect of Swing, in my opinion).

This of course does not stop me to thank you for the great job you are pursuing with Swingx (with Jeannette, Alex, etc.. of course)

Lucio
[Message sent by forum member 'luciobiondi' (lbiondi@...)]

http://forums.java.net/jive/thread.jspa?messageID=369443

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...


Re: JXTaskPane does not allow custom painting

by jdnc-interest :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Lucio,

I think that by allowing the content pane to be set, we can accomplish all of your aims.  It seems to me that it really should be part of the API to begin with.  Please file an enhancement request.

Thanks,

Karl
[Message sent by forum member 'kschaefe' (kschaefe@...)]

http://forums.java.net/jive/thread.jspa?messageID=369462

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@...
For additional commands, e-mail: jdnc-help@...