forum

Home / DeveloperSection / Forums / Make a string of JTextField variable

Make a string of JTextField variable

Mark Devid 1563 27-Dec-2015
I make some variable by

        String[] StoreValueFromTable = new String[5];
        String[] ColumName = new String[5];
        for(int Count=0;Count<5;Count++){
            StoreValueFromTable[Count] = "MindStick"+Count;
            ColumName[Count] = "MS"+Count;
            System.out.println(StoreValueFromTable[Count]+", "+ColumName[Count]);
        }
I am trying to make JTextField[] Fiels[Count] = new JTextField(); it's giving me error. I am not sure, is there a way to make it dynamically..

Updated on 27-Dec-2015

Can you answer this question?


Answer

1 Answers

Liked By