December 7, 20187 yr Dear community, I'm making a gilted altar script but I was looking for some GUI. I want, when you start the script you can add different names so that name comes between the strings. This is always different because not always the same people are online. I checked out the forums but could not find a guide for it. sorry for the wrack english. Hope some1 can help me out. edit: like this Edited December 7, 20187 yr by IkiritokunI
December 7, 20187 yr 1 minute ago, Mysteryy said: Literally dont know what your asking for tho. He basically wants to save a collection of strings (POH hosts) and then when it comes to entering the house portal iterate through the collection till an available host is found. At least that's what I was able to decipher from the OP
December 7, 20187 yr Author 26 minutes ago, Ragnar Lothbrok said: He basically wants to save a collection of strings (POH hosts) and then when it comes to entering the house portal iterate through the collection till an available host is found. At least that's what I was able to decipher from the OP I want that any1 who run my script can chose their own names and that the names comes between the strings in my script But I can not find how to set up a GUI (layout) for it what relays to it.
December 7, 20187 yr Use a JTextField from swing, use some cool layouts like GridBagLayout and do your own thing ?
December 7, 20187 yr @Explv has a tutorial for you. 15. Adding a GUI Then use JTextField as mentioned above. http://web.mit.edu/6.005/www/sp14/psets/ps4/java-6-tutorial/components.html
December 7, 20187 yr Just grab a String like Apaec's done and split at ","'s for example, then just iterate the values and add them to an ArrayList
Create an account or sign in to comment