Use org.gjt.sp.jedit.textarea.StandaloneTextArea
"to embed a jEdit
TextArea
into other applications." The API includes an example. You'll need to look at jedit.props
"for properties that can be set."
Addendum: Oops, I misunderstood the question. You might look at a Java-centric plugin like Classpath
that "Maintains global and project-specific java classpaths."