新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> 本版讨论.NET,C#,ASP,VB技术
    [返回] 中文XML论坛 - 专业的XML技术讨论区计算机技术与应用『 Dot NET,C#,ASP,VB 』 → Calling Java program from C# 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2206 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: Calling Java program from C# 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     admin 帅哥哟,离线,有人找我吗?
      
      
      
      威望:9
      头衔:W3China站长
      等级:计算机硕士学位(管理员)
      文章:5255
      积分:18406
      门派:W3CHINA.ORG
      注册:2003/10/5

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给admin发送一个短消息 把admin加入好友 查看admin的个人资料 搜索admin在『 Dot NET,C#,ASP,VB 』的所有贴子 点击这里发送电邮给admin  访问admin的主页 引用回复这个贴子 回复这个贴子 查看admin的博客楼主
    发贴心情 Calling Java program from C#


    发信人: walts (休息一会), 信区: DotNET        
    标  题: Calling Java program from C#
    发信站: BBS 水木清华站 (Wed Jul 25 19:07:00 2001)


    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..\nmallm_uma@rediffmail.com\nmahe_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);
         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());
        }
    }




    --

    A great poem is a fountain forever overflowing with the
     waters of wisdom and delight.
                               
                                              —— Shelley


    ※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.142.118]
    上一篇
    返回上一页
    回到目录
    回到页首
    下一篇


       收藏   分享  
    顶(0)
      




    ----------------------------------------------

    -----------------------------------------------

    第十二章第一节《用ROR创建面向资源的服务》
    第十二章第二节《用Restlet创建面向资源的服务》
    第三章《REST式服务有什么不同》
    InfoQ SOA首席编辑胡键评《RESTful Web Services中文版》
    [InfoQ文章]解答有关REST的十点疑惑

    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/11/9 2:25:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 Dot NET,C#,ASP,VB 』的所有贴子 点击这里发送电邮给Google AdSense  访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/15 19:26:18

    本主题贴数1,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    46.875ms