0

bit of an issue. I'm trying to make a JSwing frame with a label, textfield, and two buttons. When the routine first runs, the buttons and the textframe are invisible. When I resize the frame, the buttons and textframe appear, and remain there when I return the frame to its original size. Any ideas why this is happening?

SBM1926
  • 37
  • 1
  • 5

2 Answers2

1

You should call setVisible(true) on your frame after you added the components to get them rendered in your frame. See this answer for more information.

Community
  • 1
  • 1
MoQ93
  • 341
  • 2
  • 12
0

After adding the elements, you may want to call revalidate(). Post your code for more help.

Felix D.
  • 786
  • 1
  • 11
  • 17