i want to embed an open source editor to my java desktop application. But i am not sure yet how to do it. I got jnlp web start and jar file to import library. The program which will be imported is like below.
In fact i just need internal frames but if it is too 开发者_JAVA百科completed i can embed whole program too. I think about 3 options but don't know which one really works and which one is better.- Run jnlp webstart in java code
- Run jar file in java code(non-executable jar)
- Import jar and use its api (This is really what i need but i m not sure how to do this. I debugged the code to understand which frame works how but i have no experience about it and i found it very complicated)
Any advices how to solve this problem ?
Thanks, Bilal
The picture just shows the view but there's more behind. You can't just embed the internal frames into you application and use the editors functionality. You'll need all the model, controller, support, ... classes too.
You may be lucky, that the main frame is just a simple container and you can "replace" it with your own container. But I not too optimistic. I don't think, that the editor has an API that allows integrating the internal frames into another container. So Option 3 would be the best but I think it's out of reach. Is it a common editor? Maybe more help is possible if you just tell us its name.
精彩评论