You can't directly import java code into Director. You could
but you may find it difficult because there will be a huge
difference in the way you create and refer to visual elements
What does your text editor do? It may turn out to be fairly
easy to reproduce some of its features in director.
Another alternative would be to compile your java text editor
into an exe, and launch the exe from a director movie. You could
have it edit a specific temporary text file, which Director could
then read in when the editor is quit.