What have you done? XD Do a few things for me. Create a class for a custom object that will contain your mappings, i.e. MiningLocationMapping, and give it a meaningful toString method. Make the generic type of ListView from String to MiningLocationMapping. When you need to finally execute based on selection listView...getSelectedItem() will return a MiningLocationMapping that will hold all the information you'll need to configure the bot. Lastly, look into bindings. It's much cleaner.

P.S. Good job acknowledging there was something bad about this code and congratulations on using software that facilitates proper design paradigms. JavaFX > Swing

That's all the code I'll spoonfeed you. The rest you should be able to figure out, including the use case for bindings. Think about how you would want to expand this later. Hint: What if the user wanted to change the mining location while the bot is running? How can you easily achieve this in one line instead of 20 without any re-configuration?