当前位置:首页 > 网络编程 > 软件语言 > .NET > 从C#里调用java程序

从C#里调用java程序

点击次数:14 次 发布日期:2008-11-06 08:08:32 作者:源代码网
源代码网推荐
广告载入中
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... you Know? We are good Friends I can call Java ...";
源代码网推荐 String mail="mail me.. mallm_uma@rediffmail.com mahe_proj@rediffmail.
源代码网推荐 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);

软件开发网 www.mscto.com


源代码网推荐 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

源代码网推荐

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华