

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.








Question: I want a copy of an instance not a reference, e.g.(Image). Iknow of the clone method, but not many classes have it. Along those lines,does Java pass objects to
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
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
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
Question: I am trying to write a Java applet which canretrieve data from the user and then write itto a file on the server. Unfortunately I do nothave the access
Question: I am trying to create a Java routine to play an .au file whenit starts up (I want to then add this as a startup to my Web page).I
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
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
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
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,
Question: I have a server application listening for clientapplets to connect. The server spawns a new thread each timea connection to a client is established. I want to keeptrack, i.e.
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
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
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
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
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
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
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
Question: I can not use tha math functions which was included in math unit. when I use one of them , the compiler cant identify it. I add ‘math’ to
Question: Here is the code I’m using (the error is posted where it occurs):=================================TypePROCESS_INFORMATION = record hProcess: Longint; hThread: Longint; dwProcessID: Longint; dwThreadID: Longint;End;Procedure ExecCmd(cmdline: String);varprocc: PROCESS_INFORMATION;startup: TSTARTUPINFO;ret1: longint;ret2: longint;ret3:
Question: When I add the code ‘update.text := dateToStr(Date)’ toOnUpdateChange of the DataSource, it works some of the time. Forexample, if the record is posted by moving to another record,
Question: How can I create a form that has a list box that I can perform an incremental search on? Answer: There are a couple of ways to do this.
Question: In Visual Basic I can create component arrays, but I can’t seem to find a way to in Delphi. Does Delphi have this capability? Answer: Do You Really Need
Question: I used Oracle Forms for a long time to build Query By Form applications.I have recently switched to Delphi, and am wondering if it’s possible tobuild Query By Form
Question: How can I create a form that will roll up; that is, a form that whenclicked will reduce its height to nothing but the title bar? Answer: I have
Question: I’m a VB programmer who is new to Delphi. How do I centralize event handling for related controls?In VB, there is a concept of control arrays in which each
Question: Can forms be manipulated at runtime? Answer: Typically, you want to have your programs visibleand have the ability to switch to them; however, there are times when youhave a
Question: Is it possible to re-size arrays at runtime? Answer: I came across an exampleof how to do one. The author is BenLicht, who has come up with a brilliant
Question: How can I create a generic procedure that will load data from a table intoTListBox? Answer: Actually, this tip pertains to any control that has a property such as
Question: How can I create a Delphi program without VCL components? Answer: This code is pretty useless, but is meant to demonstrate that youdo not need to use the VCL