Forums > Java

awt : text editor


f.e
May 17, 2006 | 7:25 pm

I have an mxj external on one side, which needs a text editor (on
dbleclick(), for example). On the other side, i have this text editor,
in an independant class. Do i have to include the code of the editor in
my mxj, or could i point to it from my mxj ? How do i do this ?

best

f.e


May 17, 2006 | 8:20 pm

as long as it is in the classpath you should be able to reference it
from your mxj class and make an instance
of it when appropriate. I am not saying this cod ewill work but you
get the idea.

import my.texteditor.*;

private MyEditor _editor = null;

public void dblclick()
{
if(_editor == null)
_editor = new MyTextEditor();

_editor.setVisible(true);
_editor.bringToFront();

}

topher


Viewing 2 posts - 1 through 2 (of 2 total)