Problems with LayoutManager in different JFrames?

One problem I see is that you're trying to get the text from a JTextField in the GUI class's constructor. This is before a user has had any time to enter the text so shouldn't work (unless you pre-fill it which I don't see you're doing). You'll want to add ActionListeners to your JTextField or a JButton and get the text from the JTextField after the user has entered it and pressed the JButton or pressed Enter in the JTextField triggering listener, not in the constructor.

The Oracle Java Swing tutorials will show you how to do this.

When you have multiple JFrames, it's difficult to keep all of the Swing components on the event dispatch thread. Swing components are not thread safe.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions