How to read value of variable entered from user input
Hi. I am working with Ganglion and java processing. I want to declare a variable and get value of variable from user. in java, i have used to following code:
import java.util.Scanner;
public static void main (String [] args){
Scanner numb = new Scanner(System.in);
System.out.print("please enter your number ");
int n = numb.nextInt();
}
Now, I want that, when focus widget is being selected, before everything, user enter his/her number. how can I do this?
Comments
Hi Babilord,
The Focus widget has been deprecated in the GUI v5 just released. See,
https://openbci.com/community/gui-v5-release/
Your best approach with writing your Java program, may be to simply use the Brainflow library interface:
https://brainflow.readthedocs.io/en/stable/ [see the Java function calls]
Regards, William