Upgrading a 1.2.2 application to 1.4.2


R

Ray Mitchell

Hello,

I have a GUI application that was created several years ago with Java
version 1.2.2 using the Visual Cafe IDE. I would like to upgrade it to
version 1.4.2 and be able to use the Sun One Studio 5 IDE on it. I have
built it using the new tools and it "almost" works. As far as the GUI goes,
part of it is okay but some if it is out of whack, like oversized buttons
and the like. I don't know if the non-GUI portion of it actually functions
correctly. I have several questions:

1. Is there any documentation on what must be changed to move a 1.2.2
application to 1.4.2?

2. Could the problems be strictly the result of deprecations?

3. The only compiler message I get is telling me that there are
deprecations and I should recompile with "-deprecation" for details. Where
do I set up the compiler options such as this? I've tried the built in Help
but they apparently left out the part about setting up and using the IDE.

4. The person that wrote the code I'm compiling wrote all of the GUI
manually. Is there any tool in Studio 5 that will find this pre-existing
code and create whatever IDE components are necessary to permit the use of
the GUI editor on it?

Thanks,
Ray Mitchell
 
Ad

Advertisements

H

Harald Hein

Ray Mitchell said:
As far as the GUI goes,
part of it is okay but some if it is out of whack, like oversized
buttons and the like.

Oh, did someone forget to use layout managers? Bad luck.
I don't know if the non-GUI portion of it
actually functions correctly.

Then write tests and run them.
1. Is there any documentation on what must be changed to move a
1.2.2 application to 1.4.2?

Every SDK comes with documentation. Part of this documentation is a
list of changes from the previous version, another part is
compatibility documentation.
2. Could the problems be strictly the result of deprecations?

No. Most likely someone hard-coded GUI locations and sizes instead of
using a layout manager.
3. The only compiler message I get is telling me that there are
deprecations and I should recompile with "-deprecation" for
details.

If you are concerned about the deprecated methods, why don't you just
change them? Read the API documantation. It usually points to the
replacement methods.
4. The person that wrote the code I'm compiling wrote all of the
GUI manually. Is there any tool in Studio 5 that will find this
pre-existing code and create whatever IDE components are necessary
to permit the use of the GUI editor on it?

No.
 

Top