That's a Graphical User Interface (GUI) that you're talking about, and those are complicated enough that applications depend on libraries of pre-written code, If the library is large enough, and includes most of what you'll need to write an application, it's commonly called a "framework".
Java has two standard frameworks to choose from: Swing and JavaFX. You can learn about those in the graphical user interface trails at the Java Tutorials site:
https://docs.oracle.com/javase/tutorial/
Python has a number of choices, but the first should usually be tkinter. This is a Python interface to a GUI library (called Tk for "toolkit") designed for an entirely different language (Tcl). The tkinter package (capitalized as Tkinter in Python 2) is included with every standard installation of Python. There's no single, complete reference for it in Python terms, but the following site has a pretty good tutorial:
https://www.python-course.eu/python_tkinter.php
C++ has no standard GUI. It's got a very low-level standard library with no support for anything outside the program other than a file as a stream of bytes or characters. You need to look outside the standard language. Two popular portable (Unix/Linux, WIndows, MacOS) choices are Qt (pronounced "cute") and the fully-free and open-source GTK+. I haven't tried them, personally, so I can't recommend a tutorial. You can get more information at their home pages:
Qt: https://www.qt.io/
GTK+: https://www.gtk.org/