Best Way of Mixing in UI Elements?

I’m fairly new to ‘processing’ so please forgive me if I’m missing something obvious. I’m needing to add some user interaction to my processing application. At the very minimum I’m looking to be able to pose various questions to the user and use the responses to configure creation of some graphics. And although a simple console-level I/O approach would suffice (which BTW I don’t yet see how one can do), I’d really prefer to employ a more GUI-level approach with dialogue boxes, menus, etc. Can someone point me in the right direction for either of these approaches to a UI. Thank you…

Hi! What about using one of the available GUI libraries?
https://processing.org/reference/libraries/#gui

but starting from the basics:
if you want the processing program ask the user a question try:

import javax.swing.JOptionPane;
String answer, title = " title: input string ",question="question: tell me something";

//_________________________________________________________________ SETUP
void setup() {
  size(562, 340);
  answer = JOptionPane.showInputDialog(null,question,title, JOptionPane.QUESTION_MESSAGE);
 println(answer);
}

//_________________________________________________________________ DRAW
void draw() {
}

but that is about STRING…
if you want later use that to get (number) Set Point input from user
must do functions like

ask_int
ask_float

from it, add you can build a button menu what ask that questions “on click”

that would be a great way to learn, without starting with a GUI library
//________________
but that is actually lots of code / work
i found that there is a very basic input way, like a slider / you just not see it /
if you need to have 20 variables ( position, size, color ) be adjustable by user
try the mouseWheel in combination with a keypress.

examples:
both can get from here