Hello Osbot community, I am currently working on a script where you enter a mob name in an J-input dialog window, and select an item to eat from a dropdown(JComboBox) menu and the bot will kill the any nearby mobs with the name you entered and when your character drops below a certain hp mark your character will eat the food. At the current moment I have the script set up such that each of these 2 actions is accomplished in separate jframes/windows. Can anyone point me in the right direction on combining the windows into one? Any help would be much appreciated!
i've included pictures of part of my code in these imgur links below
(how the 2 windows are displayed when program is run)
the createGUI method call creates the jcombobox in this image while Joptionpane is the input box