IkiritokunI Posted December 7, 2018 Share Posted December 7, 2018 (edited) 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, 2018 by IkiritokunI Quote Link to comment Share on other sites More sharing options...
Mysteryy Posted December 7, 2018 Share Posted December 7, 2018 Literally dont know what your asking for tho. Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted December 7, 2018 Share Posted December 7, 2018 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 Quote Link to comment Share on other sites More sharing options...
IkiritokunI Posted December 7, 2018 Author Share Posted December 7, 2018 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. Quote Link to comment Share on other sites More sharing options...
Vilius Posted December 7, 2018 Share Posted December 7, 2018 Use a JTextField from swing, use some cool layouts like GridBagLayout and do your own thing Quote Link to comment Share on other sites More sharing options...
extatus Posted December 7, 2018 Share Posted December 7, 2018 @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 Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted December 7, 2018 Share Posted December 7, 2018 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 Quote Link to comment Share on other sites More sharing options...
IkiritokunI Posted December 8, 2018 Author Share Posted December 8, 2018 Thanks for the comments, I will take a look at the guide again Quote Link to comment Share on other sites More sharing options...