国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > Java > 正文

從C#里調用java程序

2024-07-21 02:22:14
字體:
來源:轉載
供稿:網友
http://www.c-sharpcorner.com/1/callingjavafromcsmsrao.asp
  
  
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.darkora
nge,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]
com";
     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,ny
c,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());
    }
  • 本文來源于網頁設計愛好者web開發社區http://www.html.org.cn收集整理,歡迎訪問。
  • 發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 东乡县| 焦作市| 合肥市| 桐城市| 二连浩特市| 商南县| 类乌齐县| 油尖旺区| 西吉县| 四平市| 宁河县| 兰西县| 天津市| 宜宾市| 会理县| 勐海县| 仪陇县| 东丰县| 容城县| 菏泽市| 华池县| 策勒县| 乌兰浩特市| 徐水县| 晋城| 张家口市| 凤庆县| 九江市| 云安县| 邻水| 临洮县| 阿合奇县| 通化县| 深水埗区| 武夷山市| 萍乡市| 聂拉木县| 虞城县| 达孜县| 紫云| 友谊县|