doucheng2053 2015-06-16 13:52
浏览 36
已采纳

从外部网站执行java GUI程序

maybe what I'm asking is difficult to do or even ridiculous, but I'll give it a try anyway.

I have a typical PHP website, with a products list. And I have a Java application which manages the products (CRUD). In that application I have a JDialog that pops up when I select to edit a product.

My question is: ¿Is there a way, no matter how difficult to implement, in which I click an "Edit product" button on the webpage and the java application JDialog pops up to edit that product?

Thank you.

  • 写回答

1条回答 默认 最新

  • dongsuichi6529 2015-06-16 14:14
    关注

    I'm no expert on the matter but take a look at custom protocol handlers.

    Define a custom protocol myapp:\\ that you can use on your web page in hrefs like:

    <a href="myapp:\\open-product1">Open Product 1</a>
    

    Then on OS level you need to specify how this protocol should be handled. (In your case that will be to run your Java program with the correct arguments to open product1). The installation of your Java program should make the necessary changes to the OS in order to correctly handle this custom protocol.

    Take a look at this site for more information.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!