Java Webstart problem

I get this problem with the 4K games, but I think it also applies for some of the other games, so I’ve posted it here.

When I run any 4k game with Webstart, I get this Java Application box at the top. (See attached image) It wouldn’t bother me, but there is information (I believe like Lap-speed…), it hides. I don’t get it, if I e.g. run games, that show a 3D-canvas. (Like Undead-Arena)

Can anybody tell me, how I can hide that box, or other workarounds, so it doesn’t hide information?

Arne

If you signed the jar and asked for the right permission the bar wouldn’t be there.

The really annoying thing is on some systems its at the top and on other its at the bottom and it does infact cover part of the game screen.

Kev

so all 4K entries don’t use signed jars?

Thats right, this year it seems that signing counts towards the 4K so there isn’t much signing going on since it means you can fit less game in.

Kev

mmh - then at least it should at least be one of the points the games get judged at ! (Who wants to play games, where you can’t see everything ??? )

I’ll make a post there, because it seems now to be more appropriate to discuss this issue there.

Arne

you can hide that anoying bar in the webstart cache frontend.

In preferences, go to advanced, and uncheck the ticker about showing protected zone information (for me is “ver indicador de zona protegida”) i think that bar it’s suposed to show if the app is running on a sandbox

I thought signing did NOT count towards the 4k if an unsigned version is also provided that is within 4k?

With respect to the original problem…
There is probably an API somewhere that you should be using to find the overhead of the title bar and other things and adjust your frame size accordingly… this same problem applies if you have changed the title bar font to a larger font for example.

Ah nuts, I didn’t realise the bar can appear at the top as well as the bottom. The ‘proper’ solution is to insert a panel into the Frame & draw on that, but it’s expensive in bytes. I’m short on time (again) this week, so any fix for Speed4k may need to wait for the weekend.

Maybe just get the default content pane with getContentPane() would work?

Cheers
Alan

precisely, if you’d like to sign your game without having to worry about the 4K limit, just supply an unsigned version of the same jar that is below 4K as another launch option, this jar will be the one that counts in size validation

Speed4k now adjusts it’s size to allow for ‘Java Application Window’ . I think this will work whereever it is.

Alan :slight_smile:

Thank you
That worked :slight_smile:

I’m trying to deploy an unsigned jar and it prompts a security error trying to access the main aplication jar. I have followed Kev’s howto, and looked at a couple descriptors

[edit] it’s fixed now ;D will post game soon [/edit]

Unsigned application requesting unrestricted access to system
Unsigned resource: http://flx.proyectoanonimo.com/proyectos/webstart/airpong4k/airPong.jar

It isn’t signed and it’s trying to leave the sandbox.

Have a look here: http://java.sun.com/j2se/1.4.2/docs/guide/jws/developersguide/development.html#signing

[Edit] Just saw your edit - never mind then :slight_smile: [/Edit]

i was following kev’s howto and forgot to remove the

 <security>
<all-permissions/>
</security>

tags for signed jars ::slight_smile:

thanks aniway :slight_smile: