Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Newbie: Using Java.awt in VJ++6.0

Posted on 1999-06-22
Medium Priority
Last Modified: 2011-10-03
Newbie question:  I have started using MS VJ6.0 and I find myself getting the WFC controls shoved in my face and down my throat.  How can I select which control set I wish to use eg:  Java.awt, swing or our own custom set?  I would ideally like to drag a few classes onto a Toolbox and then drag those new controls back onto a form.

Thanks for any help you can offer,

Question by:robertod031297
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Author Comment

ID: 1244301
Edited text of question.

Expert Comment

ID: 1244302
As far as visual components are concered, each company will try to puch there own version over evryone elses.

MS is particularly guily of this since they want to control the Jav standard and make it a Windows only stantard :-)

With JBuilder, VisualAge, etc. You generaly fet to choose what visual components to use on the GUI generatosrs, not so with MS.

I haven´t used J++ since I tested when it came out so I cannot vouch for this in the current version, but back when (which was before swing came out) you could not generate a GUI using non AFC classes on the IDE.

You could compile them and dbug them, you just couldn´t use the design tools for them.

I assume that the situation has not changed. But since I don´t know for sure, I am posting as a comment.

Regarding how you can use swing or your own classes, its rather complicated.

First, you need to download suns Java plugin to insure that you have RMI (MS uses COM), JNI (MS uses OLE), Swing (MS uses AFC) and Beans (MS uses ActiveX).

You will then have to load the class libs for the JDK for whichever of the above packages you decide to use. The best way is to simply download the full Sun JDK.

You then have to configure J++ to use the downloaded packages in the CLASSPATH or to use Suns JDK as the compiler instead of Visual J++.

To be able to design the interface, you need to download one of the free or inexpesive IDE's, such as Netbeans or Kawa and let these, instead of J++ handle all GUI releated code generation.

In the end, if you need cross platform capability or non AFC controls, you end up dumping visual J++ and devoloping on another IDE.

Accepted Solution

samnelson earned 200 total points
ID: 1244303
You cannot use the visual tools to generate Swing or AWT controls.  If you're using Visual J++, you must either code your interface by hand or put up with the WFC.


Author Comment

ID: 1244304
I'm really suprised that MS have made is so difficult to use AWT, Swing or whatever else.  Usually they push their own standard in your face but leave a back door for you to configure whatever you wish to use yourself.  

Thanks for your really detailed comment JPK.



Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question