like
JTextArea ta[1]= new JTextArea();
bcoz I have many tabs in text editor and I want perform cut copy paste option. and if I use a same name for all tabs then all option work only last tab because that textarea initialized in end.
like
JTextArea ta[1]= new JTextArea();
bcoz I have many tabs in text editor and I want perform cut copy paste option. and if I use a same name for all tabs then all option work only last tab because that textarea initialized in end.
If you need an array of JTextArea objects, you can declare it like this:
JTextArea[] textAreas = new JTextArea[count];
where count is the number of objects you need
Then you can access it as normal:
textAreas[i]
where i is the index you need to access.