javaswingpanelgrid-layoutborder-layout

Need help on Java Swing JFrame


I'm very new to Swing and I need to build a JFrame that:

How can I create a JFrame like this? I tried using only BorderLayouts and GridLayouts but I don't know how to divide the GridLayouts in other GridLayouts (Don't even know if it's possible).


Solution

  • Create one panel and add it to frame, set layout(GridLayout(6,1)). Then you can create classes or methods and extend it to JPanel and create each panel. And after try to add all this panels to you main panel in The frame.

    I don't know if I understood correctly what you want, this is solution I found.