Hi
I want to know 2 things
1) Adding JTextFields to a JPanel at runtime
2) Adding JTextFields to a JScrollPane at runtime
Both JPanel & JScrollPane have been added to the main GUI at compile time itself.
I need to add the JTextFields to the above 2 components at runtime.
Should I set the JPanel layout to null and set it's layout only at runtime with the JTextFields?
I have declared JPanel & JScrollPane at the beginning of the class as follows:
public static JPanel jp;
public static JScrollPane
jsp;
I am using a lot of other files where data is constantly moving to & from them.So since I am creating the JPanel & JScrollPane in the beginning itself and adding them to other components,I am using the keyword static.
PROBLEM :
I want to just add the JTextFields to the JPanel
& JScrollPane at runtime.