So basically I want to run this but replace ‘name’ with a Int variable
JFrame name = new JFrame();
Thank you it isn’t multiple jFrame it is one JFrame that looks different depending on the variables sent
So basically I want to run this but replace ‘name’ with a Int variable
JFrame name = new JFrame();
Thank you it isn’t multiple jFrame it is one JFrame that looks different depending on the variables sent
You cant give dynamic variable name like that in Java. But possibility is to create a dynamic datastructure like the array list and save all you JFrames in that list.
ArrayList: https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html
in that List you can save Object with an Integer as index to find them later.