i am creating text editor.my question is that

how can i add support for discontinous text selection in the textpane,as we can do in the mocrosoft word..??