Does anyone knows how to set the text field to editable of non-editable according to what it read in the XML??
e.g if XML reads
<edit> True</edit>
for(int l=total;l<2*total1;l++)
{
text1=new JTextField(newString[l]);
text1.setBounds(newPos[l],newPos[l+1],100,30);
text1.setEditable(false);<--------------------------- can be set to true
text1.setText("123");
panel.add(text1);
e.g if XML reads
<edit> True</edit>
for(int l=total;l<2*total1;l++)
{
text1=new JTextField(newString[l]);
text1.setBounds(newPos[l],newPos[l+1],100,30);
text1.setEditable(false);<--------------------------- can be set to true
text1.setText("123");
panel.add(text1);