May 5, 2000

DevX - Software Development Resource

Interplatform Networking

Question: I want to connect a Java client program to a C/C++ server applicationusing sockets. What is the easiest way of doing this? Answer: Java provides the ability to write

DevX - Software Development Resource

Invoking C++ Code (or DLL) via Trigger

Question: Is it possible to have a trigger invoke code in a running application (either via a register-notify type of thing or by calling entry points of a DLL or…)?

DevX - Software Development Resource

Random Integer Generation

Question: How do I write a Java program that generates random numbers withinlimits, such as 1 to 100, or 1 to 1000? Answer: The java.util package includes a Random class

DevX - Software Development Resource

A HashMap of HashMaps

Question: I have been looking everywhere for information on HashMaps,particularly how to put one hash map into another HashMap. Answer: This is where the expression RTFM (Read That Fine Manual)

DevX - Software Development Resource

Multiple Drawing Threads

Question: I have written an applet which uses a Graphics object to draw movingcircles. However, when multiple threads accesses the same Graphics object,the circles disappear after being on screen for

DevX - Software Development Resource

Package Protected Constructor

Question: I need to extend class A which resides in a different package, butclass A has only one constructor which is package protected. I get a compile error in class

DevX - Software Development Resource

Vectors vs. Hashtables

Question: Is there a significant speed advantage to using Hashtables over Vectors? Answer: The answer depends on how you are using those containers classes. Ifyou are only using them for

DevX - Software Development Resource

Switching Between Frames

Question: I’m building an application that has several different frames. Eachhas a button that when pressed should bring up a new frame and closethe calling frame. How can I display