The Latest

DevX

Creating TextField to Handle Passwords

Question: How do I create a TextField that handles a password?What are the KEY_ACTION events associated with it? Answer: The setEchoCharacter() method within the TextField class allows youto do precisely

DevX

Using Java to Control System Functions

Question: I would like to be able to browse my server and havean applet/program that would mimic the functions of,say, the control panel on a Macintosh.Would I needto write a

DevX

Will Downloading Java Applets Fill Hard Disk?

Question: Constant downloading and fear of accumulating masses of useless files is turning me off on Internet. My concept of Java is that exe files, etc., will be on the

DevX

Can Java Communicate with Local Serial Port?

Question: Is it possible to have Java talk to a localserial port on a machine, for example,COM1 or COM2 on a PC?Is there a way to do this without nativemethods,

DevX

Can I Add Menu Bars to Applets?

Question: Is it possible to add a menu bar to an applet without usingFrame as the container?Also, is it possible to show a Frame without a new window poppingup?I am

DevX

Responding to Mousedown Event in TextField

Question: How can I respond to a mousedown event in a TextField? Answer: From the Java 1.0.2 API specs:“In Java 1.0, the AWT does not send mouse or focus events

DevX

How to Fix Drop-down Box Conflict in Applet

Question: I am unable to run an applet and use a drop-downbox on the same page when using Netscape. The page hasmassive flickering and the applet will sometimes run. Theapplet

DevX

Equivalent of void myRoutine in Java?

Question: I know that in order to pass something byreference, you pass an already-created objectand let the subroutine modify the contents ofthat object. Unfortunately, the Integer, String,etc. objects don’t allow

DevX

Launching Another Application from Java

Question: Is it possible to launch another application from aJava application (not an applet)? Answer: Yes. There are two classes of interest for performingsystem level functions such as this: java.lang.Runtime

DevX

Appending to a File

Question: How can I append to a file in Java?The file is ASCII. It exists. The program hasrights to the file. I just need to add to the endof the

DevX

How to calculate sqrt()

Question: How do you calculate sqrt()? Answer: Of course the best way to compute square roots is to useMath.sqrt(),but I assume your question is academic. I’m not sure of the

DevX

Passing Data Between Two Threads

Question: I am new to Java and am currently trying toassociate idioms and techniques from otherlanguages/environments with like capabilities inJava. Specifically, I am trying to determine howto perform inter-thread and

DevX

What is the Thread.interrupt()method’s purpose?

Question: What is the purpose of the Thread.interrupt()method? I expect that if I call the interrupt()method of a sleeping thread, anInterruptedException will be thrown. Here is aquick code sample showing

DevX

Using .net Classes to Log On to Mail Server

Question: How do I use the .net classes to log on to a mailserver and request, say, the number of new mailmessages? Or send a message?Just POP3/SMTP. An example would

DevX

Why Does Spawned Thread Work on PC and not Sun?

Question: This may be too vague, but:I spawn a thread (after a button click) which bringsup a new window. This works great on my PC runningNetscape 3.0 and Internet Explorer,

DevX

How to Prevent Simultaneous Access

Question: How do you lock a file in Java to prevent simultaneous multipleaccesses? Answer: If you’re concerned about simultaneous access by independent processes,you’ll have to rely on the host OS

DevX

Reading from URL into String

Question: What is the maximum size of a string array I can have in my applet?I am trying to store some stock prices in a string array after reading themfrom

DevX

Adding and Removing Columns from Tables

Question: How can I add and remove columns from a table at run time? Answer: While I’m an avid supporter of Delphi, one of the most annoying things about it

DevX

How do I set Paradox table passwords?

Question: How can I set Paradox table passwords in Delphi 2.0? Answer: Let Me Blow Off Some Steam About the BDEUnfortunately, setting passwords on Paradox tables cannot be done using

DevX

Accessing a C Library from Java Applet

Question: I want to be able use a Web frontend for a databaseapplication. I would like to use Java to process theuser input and C for accessing the database. Myquestion

DevX

What is an Interface?

Question: I have no experience with object-oriented languages, havingonly learned BASIC when I was a child. Most people say Java is easy,but in my case it’s not. I don’t understand

DevX

Too many TDBEdit components on a Form

Question: I am using Delphi 16 running under Win95.I have an application which requires use of more than 200 TDBEdit components. When designing the form I find that 178 appears