I am new to java Swing. I am trying to develop a tool, in which I used a Jtextpane as an editor. Jtextpane is enclosed in a Jtabbedpane to meet my requirement. But I have inserted the JTextpane in a Jscrollpane and then to the Jtabbedpane. Now, when I select a particular tab, I should get the corresponding Jtextpane. I have used the
jTabbedPane.getSelectedComponent();
But it returns the Jscrollpane. So, I am unable to save the contents in corresponding Jtextpane...
Can anybody plz help me to resolve this....
Thanks in Advance...