I'm working with several PFrames and several PApplets connected with the different frames.
now I am stopping some of the programs inside the PApplets by adressing them from another one and telling them noLoop()
Nice Effect for I can block Inputs to them, stop all animations but still display them.
adressing the PApplets that i constructed myself seems pretty easy via NameOfTheApplet.noLoop()
But: I dont get a clue if and how I can adress the PApplet of the main window from outside. Can I do that without crashing all others? And if: how would I adress it?
at the moment i work on a program where i have several interface-objects constructed inside the listener of another object.
i also have listeners for the objects yet to be constructed. and what is happening is this: everytime I e.g. press the "toggle" to construct "another_toggle", the listener "void another_toggle()" is triggered because of the .setState() method I had to include into the constructor cause I want the checkbox to start with another than than the default boolean (in this case true instead of false).
aint a big problem for i can filter that out. but maybe this effect is known and sb. knows an easy way around it? another way to change the default State of an Toggle?
now i am looking for a way to have on window not just always on top (which can be achieved by using Frame.setAlwaysOnTop(boolean) and works too just fine ) but also to have it always in an active state. so that a textfield that i have put in that window is always fed by the keyboard no matter the mouse has clicked into another.
ideas? or does anyone know a method of the Frame class that could achieve that?
i just found focusGained() as a PApplet method, but I cant make out what it actually does.
the public boolean focused() is quite nice and would make me think there is something like setFocussed out there but i cant find it. :-(
hi. this is a pretty nooby question but i would still be very happy to get some tips...
im currently trying to build a program using different frames.
in the forums i found several examples how to make various Frames via the Frame class.
works fine so far, but all the examples seem to have to open a second PApplet to get something into the second window.
i need 4 different fullscreen windows for the program i am working on and using four different Applets with 4 different draw() methods seemed nice at first but is just producing the worst performance. (with just two Applets, 4 frames and two draw() methods its getting worse, not speaking of 3 or 4 looping Applets...)
is there a method, were i can build several Frames and draw into them via the main Applets draw function?
Im pretty sure there is a way for there must be a reason that there are Frames on the one hand and Applets on the other, but i could not find a simple, readable example.
Is there a way to read a (or better several) wifis signal strength inside processing?
I found the WifiManager class on Android Dev (
http://developer.android.com/reference/android/net/wifi/WifiManager.html ) but I'm to new to all this to understand if processing can work somehow with those objects, too or if one would have to write a processing library on a lower code level. Maybe there already is a library for that?
in the GPS examples it seems to be as if it were just Android java objects imported, am I right or is there a step of implementation I dont see?
sorry for noobing around. just dont know where to start (or what exactly to ask for).