I am trying to build multiple JFrames and give them a layout of FlowLayout but I am not able to get the FlowLayout to work. The JFrames are working fine but not the flowlayout. The JTextField also works but not the JLabel.
here is the code I have:
I am not getting any compilation errors so all objects and variables are initialized and found. I am not getting any nullPointerException either.
Read the Swing tutorial on "How to Use Flow Layout" for a working example.
The FlowLayout is the easiest layout manager to use. We are not going to debug your program for you. Start by adding one component to the panel and add the panel to the frame. Once that works you add the second component. Once that works add the third.
Don't write your entire program up front. Do it one step at a time and make it more complex as each step works.