Click here to Skip to main content

Press Releases

Welcome to the new Press Releases forum! Our old press release system has been retired but we've moved everything and everyone to a new, shinier home. Enjoy!

A press release must be written for the purpose of announcing something newsworthy. Advertisements, promotions, or anything smelling even vaguely of spam will be deleted. All press releases must be relevant to the development community.

 
NewsWSO2 Presents Two Technical Webinars on Enterprise Integration Best Practices Using the WSO2 ESB Pinmemberandrew.kinetic3-Oct-12 22:40 
GeneralRetrieve Specific Number of Messages from PST & Set Dimensions of TIFF PinmemberUsman Sarfraz3-Oct-12 18:13 
GeneralOctober 2012 Edition of Saaspose.Newsletter is out Now Pinmembersaaspose2-Oct-12 19:56 
GeneralPress release: Jelastic Wins Duke’s Choice Technology Leader Award: The Java Community’s Oscar PinmemberSoftPressRelease2-Oct-12 5:18 
NewsWSO2 VP and API Evangelist Founder Will Co-present Webinar on the Building Blocks and Business Value of API Management Pinmemberandrew.kinetic2-Oct-12 4:54 
GeneralAdd Licensing, Copy-Protection To Your Apps Quickly & Easily With CryptoLicensing For ActiveX 2012 R2 PinmemberLogicNP2-Oct-12 0:51 
GeneralAspose.Newsletter October 2012 Edition is Out Now PinmemberUsman Sarfraz1-Oct-12 21:13 
GeneralMigrate .Net Windows Forms to Java using CodePorting App Pinmembercodeporting1-Oct-12 20:37 
CodePorting Application is always making efforts to improve its features list to make it the best online C# to Java conversion service for developers. One of such feature is converting C# windows forms to Java.

This is a great feature that will reduce the cost and effort to convert C# Windows form application to java. CodePorting Engineers are currently upgrading C#2Java engine to take this idea further and make this feature more powerful for future desktop application. To start this feature CodePorting has successfully ported simple desktop application to java.

CodePorting is using Swing components instead of AWT to convert .Net forms to Java because it is easily convertible and provide wide range of features such as icons, pop-ups, tool-tips, and its plug-able look & feel makes it fit in any OS environment. C#2Java engine also converts form events to java. To accommodate this new feature, codeporting has enhanced the core, created some new Java library classes and updated the mappings files.

Below Example shows the conversion of C# Windows form to Java.

C# Code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
 
namespace CsPorter.Tests.Convert.Forms
{
    public class Test2 : Form
    {
        public Test2()
        {
            initUI();
        }
 
        public void initUI ()
        {
            Panel panel = new Panel ();
            panel.Location = new System.Drawing.Point (-1, 0);
            //panel.SuspendLayout();
            panel.Size = new System.Drawing.Size (285, 261);
 
            TextBox text1 = new TextBox ();
            text1.Location = new System.Drawing.Point (25, 25);
            text1.Text = "Autoported using C#2Java";
            text1.Size = new System.Drawing.Size (150, 25);
 
            Label label1 = new Label ();
            label1.Location = new System.Drawing.Point (25, 50);
            label1.Text = "label1";
 
            Button button1;
            button1 = new Button ();
            button1.Location = new System.Drawing.Point (25, 75);
            button1.Name = "button name";
            button1.Text = "button 1";
            button1.Size = new System.Drawing.Size (75, 23);
 
            button1.Click += new System.EventHandler (button1_Click);
 
            panel.Controls.Add (label1);
            panel.Controls.Add (text1);
            panel.Controls.Add (button1);
            button1.Visible = true;
            Controls.Add (panel);
 
            Size = new System.Drawing.Size (300, 290);
        }
 
        private void button1_Click (object sender, EventArgs e)
        {
            MessageBox.Show ("Autoported using C#2Java");
        }
 
        public static void main(String[> args)
        {
 
        }
    }
}



Java Code:
package CsPorter.Tests.Convert.Forms;
 
// ********* THIS CODE IS AUTO PORTED FROM C# TO JAVA USING CODEPORTING.COM TECHNOLOGY *********
 
import com.codeporting.csharp2java.System.Windows.Forms.Form;
import com.codeporting.csharp2java.System.Windows.Forms.Panel;
import javax.swing.JTextField;
import javax.swing.JLabel;
import com.codeporting.csharp2java.System.Windows.Forms.Button;
import java.awt.event.ActionEvent;
import com.codeporting.csharp2java.System.Windows.Forms.MessageBox;
 
public class Test2 extends Form
{
    public Test2()
    {
        initUI();
    }
 
    public void initUI ()
    {
        Panel panel = new Panel ();
        panel.setLocation(new com.codeporting.csharp2java.System.Drawing.Point (-1, 0));
        //panel.SuspendLayout();
        panel.setSize(new com.codeporting.csharp2java.System.Drawing.Size (285, 261));
 
        JTextField text1 = new JTextField ();
        text1.setLocation(new com.codeporting.csharp2java.System.Drawing.Point (25, 25));
        text1.setText("Autoported using C#2Java");
        text1.setSize(new com.codeporting.csharp2java.System.Drawing.Size (150, 25));
 
        JLabel label1 = new JLabel ();
        label1.setLocation(new com.codeporting.csharp2java.System.Drawing.Point (25, 50));
        label1.setText("label1");
 
        Button button1;
        button1 = new Button ();
        button1.setLocation(new com.codeporting.csharp2java.System.Drawing.Point (25, 75));
        button1.setName("button name");
        button1.setText("button 1");
        button1.setSize(new com.codeporting.csharp2java.System.Drawing.Size (75, 23));
 
        button1.setClick(new com.codeporting.csharp2java.System.Windows.Forms.EventHandler (this,"button1_Click"));
 
        panel.getControls().add (label1);
        panel.getControls().add (text1);
        panel.getControls().add (button1);
        button1.setVisible(true);
        getControls().add (panel);
 
        setSize(new com.codeporting.csharp2java.System.Drawing.Size (300, 290));
    }
    public void button1_Click (Object sender, ActionEvent e)
    {
        MessageBox.show ("Autoported using C#2Java");
    }
 
    public static void main(String[> args)
    {
 
    }
}

Newly added articles and documentation pages

- Migrate .Net Windows Forms to Java using CodePorting App
- Indisputable Advantages of CodePorting C#2Java App
- Convert C# is Operator to instanceof Operator in Java
- List of Conversions Supported by CodePorting C#2Java Engine

About CodePorting C#2Java App

CodePorting helps you make your .NET applications cross platform compatible and allows migrating your .NET solutions, projects and files into Java in the cloud. Other than speed and accuracy of conversion; port your C# code directly either by uploading .cs files contained in a .zip file or import directly from popular version control repositories like GIT, Mercurial HG and SubVersion. You can also download a Microsoft Visual Studio plugin and convert C# code in the real time without leaving the development environment. You may also build your own customized code conversion applications using CodePorting APIs.

Read more about CodePorting

- Start converting C# Apps and source code to Java
- CodePorting Homepage
- CodePorting C#2Java Homepage
- CodePorting Documentation
- Watch out CodePorting introductory video


Contact Us

Suite 163, 79 Longueville Road
Lane Cove, NSW 2066, Australia
Codeporting – Your CodePorting Experts
Skype Name: CodePorting
Email: support [@] codeporting [dot] com
GeneralGet Count of All Bookmarks & Manage Selected Bookmarks in a PDF File Pinmembersaaspose30-Sep-12 20:05 
General10 Evident Advantages of using CodePorting for Converting C# Apps to Java Pinmembercodeporting30-Sep-12 19:34 
NewsWorkshop on WSO2 Integration Platform Discovery Comes to Atlanta Pinmemberandrew.kinetic27-Sep-12 11:04 
NewsTypemock Introduces Unit Testing Tools for All Levels of Development PinmemberNCSM27-Sep-12 6:53 
GeneralCodePorting Converts C# Delegates to Java Instantly Pinmembercodeporting27-Sep-12 1:26 
GeneralSelect PDF Image & Extract Text from Image of PDF File in the Cloud Pinmembersaaspose26-Sep-12 17:58 
GeneralCodePorting - Your Expert for Online C# to Java Conversion Pinmembercodeporting26-Sep-12 0:38 
GeneralJava Library for Images Conversion to PSD, BMP, JPEG, PNG, TIFF or GIF PinmemberUsman Sarfraz25-Sep-12 22:28 
NewsWSO2 to Present Technical Webinar on Promoting Service Reuse with API Management Pinmemberandrew.kinetic25-Sep-12 21:19 
NewsLEAD Technologies Enhances HTML5 Medical Viewer in LEADTOOLS 17.5 PingroupLEADTOOLS Support25-Sep-12 7:27 
GeneralAccusoft Releases Barcode Reader App, Extends Mobile SDK Support PinmemberPegasus Imaging25-Sep-12 6:46 
NewsWSO2 Partners with Wipro to Deliver Open Source Middleware Solutions Pinmemberandrew.kinetic24-Sep-12 10:08 
GeneralGet Number of Images in a Slide or Presentation & Save Slide as Image Pinmembersaaspose23-Sep-12 19:18 
NewsCppDepend version 3 released! PinmemberIssam Lahlali23-Sep-12 1:25 
GeneralCODEPROJECT.COM: NEW LOOK EASIER TO USE, MORE “MODERN” PinstaffSean Ewington21-Sep-12 10:21 
GeneralTX Spell .NET 3.0 released! PinmemberChristopher Krause21-Sep-12 1:42 
NewsAerospike Founder Demonstrates How to Break the Predictable Database Performance Barrier at the Surge 2012 Scalability and Performance Conference Pinmemberandrew.kinetic20-Sep-12 9:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150414.1 | Last Updated 16 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid