麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 開發 > Java > 正文

Calling Java program from C#

2024-07-21 02:20:18
字體:
來源:轉載
供稿:網友
calling jaba program from c#

author date of submission user level
maheswara rao 07/18/2001 intermediate

  
source code sunmsmsrao.zip 7 kb

hi sharpers
this is mahesh again after some break. in this article i am going to show how to call java program using c#.  

according microsoft definition of c#: -
揅# is a simple, modern. object oriented language and combine the high productivity of vb and the raw power of c++?/font>

according mahesh definition of c#: -
揅# is simple, modern, object oriented beautiful language and daughter (she-sharp) of java and microsoft ?/font>

what i want to say sun (sun) and ms (moon) both are very important to it world (world) but both are now enemies now a days they are making languages to dominate each other.  this is sure without sun and moon there is no world like that with out sun and ms there is no it world. i pry to god to make both are good friends they should work for it people.   

this application has 4 files

shesharp.cs
javasharp.java
comp.bat  //for compel
j.bat  
in this application i used inner class for developing panel.

using system.windows.forms;
using system.drawing;
using system.drawing.drawing2d;
using system.diagnostics;
using system;

厖?

厖?.

//for mixed background
public void format(object s,painteventargs a)
    {
      graphics g=creategraphics();
      rectangle rect=new rectangle(0,0,300,300);
      color nyc=color.fromargb(200,50,5,200);
      lineargradientbrush b=new       lineargradientbrush(rect,color.darkorange,nyc,lineargradientmode.vertical);
      g.fillrectangle(b,rect);
    }

//for calling java program
private void calljava(object ob,eventargs arg)
    {
        process.start("j.bat");
    }

//using inner class for panel
public class pp:panel
    {
     int x;
     int y;
     timer t=new timer();
     string s="hi.../nyou know?/nwe are good friends/ni can call java ...";
     string mail="mail me../[email protected]/[email protected]";
     private label l=null;
     private label maill=null;
     color nyc;
//constructor
     public pp()
       {
       x=10;
       y=200;
     this.location=new point(0,10);
     nyc=color.fromargb(200,10,5,225);
     this.size=new size(300,230);
     maill=new label();
     l=new label();
     l.text=s;
     l.size=new size(250,100);
     l.forecolor=nyc;
     l.backcolor=color.transparent;
     l.font=new font("verdana",15,fontstyle.bold);
     l.textalign=contentalignment.middlecenter;
     maill.text=mail;
     maill.size=new size(160,40);
     maill.location=new point(10,192);
     maill.font=new font("verdana",7,fontstyle.bold);
     maill.forecolor=color.yellow;
     maill.backcolor=color.transparent;
     this.controls.add(l);
     this.controls.add(maill);
     t.interval=50;
     t.tick+=new eventhandler(draw);
     t.enabled=true;
      }

   protected override void onpaint(painteventargs a)
     {
      graphics g=a.graphics;
      rectangle rect=new rectangle(0,0,300,230);
      lineargradientbrush b=new lineargradientbrush(rect,color.darkorange,nyc,lineargradientmode.vertical);
      g.fillrectangle(b,rect);
      font ff=new font("arial",14,fontstyle.bold);
      solidbrush bb=new solidbrush(nyc);
      stringformat df=new stringformat();
     }

//for animation

     void draw(object ob,eventargs a)
     {
     l.location=new point(x,y);
      --y;
      if(y==-100)y=230;
        }
    }

    public static void main()
    {
    application.run(new shesharp());
厖?

厖?








  

remarks: os: win2000 and 98 with clr and java

this application is dedicated to sun and ms.  

mail me:

[email protected]

[email protected]

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 久久精品黄 | 伊人网站| 91久久国产露脸精品免费 | 毛片毛片| 一道本不卡一区 | 国产正在播放 | 日日草夜夜 | 久久久久久久久久久综合 | av一二三四区 | 亚洲一级簧片 | 精品国产乱码一区二区三区四区 | a级在线 | 中文字幕在线亚洲 | 成人在线视频免费播放 | 久久亚洲精品国产 | 亚洲国产成人久久一区www妖精 | 国产精品一品二区三区四区18 | 精品国产看高清国产毛片 | 国产成视频在线观看 | 极品一级片 | 日本a大片 | 26uuu成人人网图片 | 欧美国产一级片 | 欧美a久久 | 亚洲午夜天堂吃瓜在线 | 欧美一级淫片a免费播放口 91九色蝌蚪国产 | 亚洲福利在线视频 | 成人免费精品视频 | 欧美一级在线免费 | 欧美wwwwww| 天天干天天透 | av电影免费在线 | www日韩大片 | h视频免费在线观看 | 国产成人高潮免费观看精品 | 日韩蜜桃视频 | 巨根插入| 麻豆传传媒久久久爱 | 国产孕妇孕交大片孕 | 日韩专区在线 | 91短视频在线播放 |