Self Modifying Application (Creating ad-ons from within an application)

Ok, it's hard to ask this right...

In the past, I used VB and the VBScript ActiveX to allow the user to write code that my UI could use within itself, for example, to change the way a file would load or to extend the file open save mechanism...

Is there a way to do this maybe using the jscript engine?

Or, even better, is there a way I could compile a real java object from within my UI and create it/connect to it in my application when compiling is done?

The user would be presented a code window where he'd type in the code. In the window, he could use all the java classes to write his code and classes.

The UI would save and compile the code and start using it right away.

If someone could point me the right way.

Thanks.

[778 byte] By [icuurd12b42a] at [2007-11-26 13:47:27]
# 1

> In the past, I used VB and the VBScript ActiveX to

> allow the user to write code that my UI could use

> within itself, for example, to change the way a file

> would load or to extend the file open save

> mechanism...

Sounds dangerous. But I think I understand what you want to do.

> Is there a way to do this maybe using the jscript

> engine?

Not sure what you mean by jscript engine.

> Or, even better, is there a way I could compile a

> real java object from within my UI and create

> it/connect to it in my application when compiling is

> done?

No.

> The user would be presented a code window where he'd

> type in the code. In the window, he could use all the

> java classes to write his code and classes.

> The UI would save and compile the code and start

> using it right away.

Sounds like you want an IDE inside your program?

zadoka at 2007-7-8 1:23:05 > top of Java-index,Desktop,Developing for the Desktop...
# 2

> Or, even better, is there a way I could compile a

> real java object from within my UI and create

> it/connect to it in my application when compiling is

> done?

I believe this can be done, although I've never tried and I could be totally off here, but try this: https://javacc.dev.java.net/

SoulTech2012a at 2007-7-8 1:23:05 > top of Java-index,Desktop,Developing for the Desktop...