JLayeredPane and JScrollBar?

15 views
Skip to first unread message

jun...@selma.hfmdk-frankfurt.de

unread,
Nov 22, 2015, 1:33:52 PM11/22/15
to seesaw-clj
Hi,

 is there support for JLayeredPane and JScrollBar in seesaw, or, if not, how would I add it?

Gary Verhaegen

unread,
Nov 22, 2015, 4:53:07 PM11/22/15
to seesa...@googlegroups.com
IIRC, seesaw is mostly a set of sane, nice functions that create and manipulate Swing objects, so most of your function results and arguments are actually unwrapped Swing objects, meaning that if seesaw does not offer a nice factory function for some class, you should be able to just call the constructor through interop.


On Sunday, 22 November 2015, <jun...@selma.hfmdk-frankfurt.de> wrote:
Hi,

 is there support for JLayeredPane and JScrollBar in seesaw, or, if not, how would I add it?

--
You received this message because you are subscribed to the Google Groups "seesaw-clj" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seesaw-clj+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dave Ray

unread,
Nov 22, 2015, 11:55:53 PM11/22/15
to seesa...@googlegroups.com
As Gary mentions, a lot of Seesaw will work on normal Swing objects, even those it doesn't know about. Otherwise, adding direct support isn't too complicated. I think listbox is a reasonable example:

https://github.com/daveray/seesaw/blob/develop/src/seesaw/core.clj#L1681

Hope this helps,
Dave
Reply all
Reply to author
Forward
0 new messages