Users Pricing

forum

home / developersection / forums / make a string of jtextfield variable

Make a string of JTextField variable

Mark Devid 1867 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..

Mark Devid

Other


1 Answers

Anonymous User 27 Dec 2015 Accepted Answer