Hello, I am trying out GUI programming for the second time. I have 3 different classes; the first class "Drawgraphics.java" draws some graphic objects like triangle, circle etc. The second class "Gui.java" is for the GUI with buttons, TextAreas and panels and a JTextArea (is it correct?) where I hope to display the graphic objects. The third class RunGui.java is just a main class to run Gui.java.
Currently, the objects are shown in another frame which I defined in the main method of class "Drawgraphics.java" - see code below;