rohit2 0 Newbie Poster

I am new to swing. Now I am developing a frame with multiple tabs. For this I used jTabbedpane. Now the problem is that I am not able to save contents of seleted jTextPane of jTabbedPane. While saving, I am only able to save contents finally wriiten on jTextPane. So please tell me how to use same jTextPane to write different contents in different tabs.. and how to get access on selected jTextPane in jTabbbedPane? Please Help......