Applet appears on top of everything

2 views
Skip to first unread message

Dan Watling

unread,
Nov 22, 2009, 10:07:06 AM11/22/09
to PulpCore
Here's the scenario: I've got a Java Applet using PulpCore hooked into
Facebook via an iframe. The applet works great, however, it doesn't
play nice with Facebook's menus and the tool bar at the bottom of the
screen. Instead of appearing below it, it appears on top of
everything. Does anyone know of a fix for this?

Thanks,

-Dan

David Brackeen

unread,
Nov 22, 2009, 10:27:02 AM11/22/09
to pulp...@googlegroups.com
What browser/OS?
I'm not sure it could be fixed... try asking at the regular Java applet forums. Maybe you could try turning off plugin2.


--

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=.



Dan Watling

unread,
Nov 22, 2009, 10:44:25 AM11/22/09
to PulpCore
I was looking around the web and found this: http://bugs.sun.com/view_bug.do?bug_id=6646289

It is looking as though I'll have to come up with another solution to
mask the problem.

-Dan


On Nov 22, 9:27 am, David Brackeen <brack...@gmail.com> wrote:
> What browser/OS?
> I'm not sure it could be fixed... try asking at the regular Java applet
> forums. Maybe you could try turning off plugin2.
>
> On Sun, Nov 22, 2009 at 7:07 AM, Dan Watling <daniel.watl...@gmail.com>wrote:
>
> > Here's the scenario: I've got a Java Applet using PulpCore hooked into
> > Facebook via an iframe. The applet works great, however, it doesn't
> > play nice with Facebook's menus and the tool bar at the bottom of the
> > screen. Instead of appearing below it, it appears on top of
> > everything. Does anyone know of a fix for this?
>
> > Thanks,
>
> > -Dan
>
> > --
>
> > 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>
> > .

Jonathan Chung

unread,
Nov 23, 2009, 4:03:13 PM11/23/09
to PulpCore
I ran into this the other day when I also embedded a Java applet in a
Facebook app. I think it has something to do with the fact that
applets are heavyweight components, having worked with Swing for a
while and recalling that when there are Z-order problems, it's usually
because of a mix of heavyweight and lightweight components.

I'm aware of an upcoming Java game that's poised to reach a *lot* of
people on Facebook, so I'm curious to see how they tackle this issue.
That game is 3D though, so it might be using the JOGL / LWJGL stack
instead, and those applets are inherently different.

There are probably ways to mask the issue. One may be to detect when
the applet loses focus and using that as a cue to hide it (and if you
are very crafty, taking a screenshot at that moment to give the
illusion that it's still there). That won't work for a game for which
you cannot pause the gameplay though.

Dan Watling

unread,
Nov 23, 2009, 4:33:56 PM11/23/09
to PulpCore
I'd be curious to know what that Facebook game is ;) Do you know if
they used an existing 3d scenegraph (e.g. xith, jME, ardor3d), or did
they build it from the ground up?

As far as masking goes, I think I'm going to add a header to the top
of the iframe just big enough so the menus at the top won't appear
under the applet.

-Dan

Jonathan Chung

unread,
Nov 23, 2009, 6:52:08 PM11/23/09
to PulpCore
Do a search for Gravity Bear. They are making a social 3D fighting
game, which looks pretty awesome. I have no idea what they used for
it, other than that it's made with Java.

The solution mentioned won't fix the other major problem - clicking
the Applications button in the bottom bar. That's equally as important
and will irk users who want to flip to another game. :(

Jonathan Chung

unread,
Nov 23, 2009, 7:03:26 PM11/23/09
to PulpCore
Hmm, I just realized an even more deal-breaking thing that gets
covered up - all the lightboxes are covered up by the game. Given that
these are a really important part of the Facebook experience, it's
definitely worth exploring better ways of working around this. Hmm...

Dan Watling

unread,
Nov 23, 2009, 7:37:55 PM11/23/09
to PulpCore
I'm actually not too concerned about the overlap of the bottom bar.
That is going away very soon -- December 20th I believe.

Regarding the lightboxes, I haven't decided if I am going to just hide
the applet, or if I am going to attempt implementing the dialogs
myself in the applet. At the moment it is looking as though I'll have
to do it myself. Facebook Connect has been very finicky for some
reason.

-Dan

Dori

unread,
Nov 24, 2009, 3:24:15 AM11/24/09
to PulpCore
I've done a small bit of work with facebook connect, and to solve the
dialog program the only thing i could come up with (an experienced
programmer i am not!) was to change the visibiliy of the pulpcore
applet via javascript whenever a dialog was anticipated, but this
becomes a hassle when it comes to triggering this from the applet
itself (see the recent discussion on the pulpcore forums on the
reliability of liveconnect) if you want to reach a good (browser) base
of users.

I think it may be against the ToS to implement the dialogs yourself
in the applet, it would be a real hassle as well!

For the record i found it a nightmare doing any facebook stuff, the
documentation was terrible in places (and sometimes over a year out of
date) which things undocumented, compleatly obsolete method headers
and in some places compleate contradictions in what can / cannot be
acheived whilst sticking within the ToS. Also they are liable to
change the API's at any moment (without warning)!

That said the benefits of a succesful FBConnect implementation and
obvious!

Good luck!

Dori

Jonathan Chung

unread,
Nov 24, 2009, 12:30:14 PM11/24/09
to PulpCore
Could you provide a reference for the claim about it being against
their terms to roll your own dialogs?

Dorian Cussen

unread,
Nov 24, 2009, 1:05:39 PM11/24/09
to pulp...@googlegroups.com
I couldnt pinpoint whereabouts the terms mentions this sort of thing as it was a while ago, and i cant say for certain this is even true, i do remember that you are not allowed to display the buttons etc they supply if you edit them in any way, and i would be very suprised if you would be allowed to emulate / replicate / impersonate any part of the core facebook functionality in any way for multiple reasons. I remember there being a few ToS agreements dotted around, one of which i didnt see till id started developing. Saying all that things do change over time so maybe you will be fine, just have a poke around! :)

2009/11/24 Jonathan Chung <ste...@gmail.com>
--

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.



Reply all
Reply to author
Forward
0 new messages