Hello,
I am using following code to do formatted copy paste in JTextPane in java.But now I also want to drop the text of JButton into JTextPane.Please help me.

txt is JTextPane that is defined in...