开发者

Java, using another java program in jar format

开发者 https://www.devze.com 2023-01-15 12:11 出处:网络
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.

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.

Java, using another java program in jar format

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.

  1. Run jnlp webstart in java code
  2. Run jar file in java code(non-executable jar)
  3. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号