Hi...
So, I have a project where I need to have the user edit a settings file and determine whether they want 1, 2, or 3 screens (applets). Because the way that Applets and Frames are declared globally (at least I've always know them to be), I'm not sure how to use this parsed variable to create a second or third applet dynamically during runtime - it seems to have to be created in setup (or even before the main applet).
I had some thoughts (assuming I have a parsed int that reads 1, 2, or 3 for the number of screens) :
Option A) Only call the 'secondScreen.init()' if that number is 2 or and secondScreen.init()' and 'thirdScreen.init()' if it's 3
Option B) If that number is 2, call 'thirdScreen.stop()' or 'thirdScreen.dispose()' , if it is 1, call it on the third and second applet...
Does anyone have any experience in this?
Thoughts? Sound dangerous? Verbose?
1