ArtinSoft's Blogs

Software Migration Experts
Welcome to ArtinSoft's Blogs Sign in | Join | Help
in Search

Jose Aguilar's Blog

All things migrations, software and technology

May 2006 - Posts

  • HP and Intel Developer Workshop in Seattle

    In a couple of weeks I'll be teaching some of the lessons at the HP and Intel Developer Workshop in Seattle, WA. The workshop will take place on June 13-15. As with the previous workshop, in Dallas, this is a great oppotunity to port your code to 64-bit windows on the Itanium platform. You'll be surprised that it may be easier to port your source code than it looks - in Dallas we had a guy that ported his code in about an hour! Then again, we've been working with a company for about two years on the port - can't tell you who it is, but if you knew, you'll see why it is taking so long.

    The Workshop has all sorts of nice perks. In addition to the quality training given by yours truly and my coworkers, you can also also take with you the Itanium server that you use during the class. You can read all the benefits about it on the Workshop's web page.

    Posted May 29 2006, 06:29 PM by Jaguilar with no comments
    Filed under: ,
  • Visual Basic Webcasts

    In the next few weeks I'll be doing several webcasts for Microsoft Latin America. They are about Visual Basic 6.0 to Visual Basic .NET migrations, and will be given in spanish.

    The first presentation will be this Friday, and it is called Why consider a project to upgrade from Visual Basic 6.0 to Visual Basic .NET?. In this presentation, we'll talk about the business and technological factors that influence the decision to upgrade an application. The second one is about Understanding the Upgrade Wizard, in which we'll talk about the process of upgrading an application from Visual Basic 6.0 to Visual Basic .NET.

    Some other webcasts are planned, but there's no date assigned yet. As soon as there is, I'll post all the information here.

     

  • No, there's no mixing of J# and Windows Forms components

    We have been aware of that fact for a while, but we tried anyway - and it doesn't work. The main issue is that the components were implemented separately, and respond to different object hierarchies. Windows Forms receive components that extend the System.Windows.Forms.Control class, while Java containers receive objects that extend from javax.swing.JComponent. This causes an incompatibility, as the code will not even compile when you add an object from the "other" hierarchy, as shown in the following example. Trying to compile this code:

          JFrame frame = new JFrame("HelloWorldSwing");
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          ...
          ComboBox cb = new ComboBox();
          frame.getContentPane().add(cb);

    will give you this compilation error:

          Cannot find method 'add(System.Windows.Forms.ComboBox)' in 'java.awt.Container'

    The exact same thing happens when you try to add a J# Component to a Windows Form. There are of course technical reasons for this, like the fact that the J# runtime was developed independently, thus components expect a different environment when being drawn, and that it uses a different event handling mechanism (based on Java instead of .NET). But it is a bummer not being able to use a JTable and, for example, a DateTimePicker side-by-side.

  • On Visual J#, Swing support and supplemental UI libraries

    A colleague of mine passed me this great link, which details the differences in API support between the different versions of Java, including J#. This is a great resource if you're considering moving your Java application to J# 2005, as it will tell you exactly which packages will give you a headache.

    It is also worth mentioning that if you're working with Visual J#, the Supplemental UI Library is a must. This library includes an implementation of several Swing classes and packages, plus some support for additional classes added to the java.util.* package since JDK 1.2 (remember that J# supports the JDK up to 1.1.4). This Supplemental Library is already included in the Microsoft Visual J# Version 2.0 Redistributable Package.

    And don't forget that there's a Visual J# 2005 Express Edition as well!!

    Posted May 25 2006, 07:32 PM by Jaguilar with no comments
    Filed under:
Powered by Community Server (Non-Commercial Edition), by Telligent Systems