R
Richard
Hello all
I am having a problem adding a component to a JPanel at runtime. My
code adds a new JTextField. However it does not appear when I click the
add button. The component count of the JPanel does rise by one however
everytime I click the add button so the new JTextfield is being added.
I have noticed that when I click the border of the JFrame the new
JTextfield appears then. I have tried to 'repaint' the frame and the
JPanel but I still cannot see the new added JTextField. I can only see
it when I click on the edge of the frame. It seems to force a refresh.
Can anyone help?
Thanks in advance
Richard
--
I am having a problem adding a component to a JPanel at runtime. My
code adds a new JTextField. However it does not appear when I click the
add button. The component count of the JPanel does rise by one however
everytime I click the add button so the new JTextfield is being added.
I have noticed that when I click the border of the JFrame the new
JTextfield appears then. I have tried to 'repaint' the frame and the
JPanel but I still cannot see the new added JTextField. I can only see
it when I click on the edge of the frame. It seems to force a refresh.
Can anyone help?
Thanks in advance
Richard
--