This week's book giveaway is in the Java in General forum. We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line! See this thread for details.
I have one tabbed Pane and 4 tabs say tab1,tab2,tab3 and tab4.
In these tabs scroll pane is there and each scroll pane has text areas. Now i want to get the text from current text area how to reach at current selected JTextArea ?
The JTabbedPane class has methods to determine the currently selected pane (getSelectedComponent and getSelectedIndex). Several solutions are possible, eg. a JTextArea array with components corresponding to the individual panels (you'll initialize this array when constructing your frame), then using getSelectedIndex() method as an index into this array to get the current component.