Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 7:31 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: RFE: Applet Parameters
PostPosted: Wed Mar 11, 2009 11:34 am 
Offline
Regular
User avatar

Joined: Thu Dec 18, 2008 6:07 pm
Posts: 238
Location: Bournemouth, UK
RFE:

I'd like to be able to pass my own parameters into my applets.

Slick could just store all the parameters in a HashMap and hold it statically or something.

I can't think of any other way to retrieve them, since System Properties could be used but they'll throw security exceptions in applets.

Thanks,
Excal / Gwinnell

_________________
- Gwinnell (irc.freenode.net, irc.chatspike.net)
- Game Jolt Moderator


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 11, 2009 12:40 pm 
Offline
Game Developer
User avatar

Joined: Sun Nov 12, 2006 8:40 pm
Posts: 574
easiest way would just be to get an instance of AppletGameContainer, then you can use the getParameter(String name) on it since it extends applet.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 04, 2009 8:46 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Kappa is right, if you want to access Applet Parameters cast the game container passed to you into AppletGameContainer (which is a valid cast because you've become dependent on having applet parameters) and call getParameter().

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group