Turning PulpCore into lightweight component?

2 views
Skip to first unread message

Jonathan Chung

unread,
Sep 27, 2010, 6:13:08 PM9/27/10
to PulpCore
I've integrated PulpCore into a Swing application for my day job, and
for the most part, it's worked great.

One of the complications is that because it's built as an Applet, it's
a heavyweight component, and this makes things complicated with
regards to making it play nice with other components at times,
particularly with regards to Z-order and repaint behavior. The
problems are most pronounced on Mac.

What would I have to do to make PulpCore into a lightweight component?
Thanks!

David Brackeen

unread,
Sep 27, 2010, 6:56:02 PM9/27/10
to pulp...@googlegroups.com
At minimum, disable BufferStrategy. I believe there's a setting somewhere that allows you to disable it in applets.
If the problem is actually the Applet component, you'll have to fork the "applet platform" and make a version that uses JComponent or some other lightweight component.


--
You received this message because you are subscribed to the Google Groups "PulpCore" group.
To post to this group, send email to pulp...@googlegroups.com.
To unsubscribe from this group, send email to pulpcore+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulpcore?hl=en.


Jonathan Chung

unread,
Sep 27, 2010, 8:27:00 PM9/27/10
to PulpCore
Thanks. I went with the forking route by switching it over to a
JPanel. It took some effort to sort out the applet vs JPanel lifecycle
differences, but it's working nicely so far.

On Sep 27, 3:56 pm, David Brackeen <brack...@gmail.com> wrote:
> At minimum, disable BufferStrategy. I believe there's a setting somewhere
> that allows you to disable it in applets.
> If the problem is actually the Applet component, you'll have to fork the
> "applet platform" and make a version that uses JComponent or some other
> lightweight component.
>
> On Mon, Sep 27, 2010 at 3:13 PM, Jonathan Chung <sten...@gmail.com> wrote:
> > I've integrated PulpCore into a Swing application for my day job, and
> > for the most part, it's worked great.
>
> > One of the complications is that because it's built as an Applet, it's
> > a heavyweight component, and this makes things complicated with
> > regards to making it play nice with other components at times,
> > particularly with regards to Z-order and repaint behavior. The
> > problems are most pronounced on Mac.
>
> > What would I have to do to make PulpCore into a lightweight component?
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "PulpCore" group.
> > To post to this group, send email to pulp...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > pulpcore+u...@googlegroups.com<pulpcore%2Bunsu...@googlegroups.com>
> > .

Brent

unread,
Oct 5, 2010, 6:36:23 AM10/5/10
to PulpCore
Care to share? I bothered David years back about this capability for
a children's storybook builder that I thought would be fun. I'd still
like to try it out. Build the storybook in a swing app, deploy to an
applet.

Winston Wolff

unread,
Oct 5, 2010, 11:01:13 AM10/5/10
to pulp...@googlegroups.com
I too would like a JPanel version of PulpCore.

Winston Wolff
Stratolab - Games for Learning
tel: (646) 827-2242
web: www.stratolab.com

> To unsubscribe from this group, send email to pulpcore+u...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages