Tip Bank

DevX - Software Development Resource

Serialization to Byte Array

Question: How can I convert a class instance to a byte array and thensubsequently reconstruct the original class from the byte array? Answer: Java’s Object Serialization API allows you to

DevX - Software Development Resource

Backspaces and Form Focus

Question: I have two questions: When using the Backspace key to delete content in a text box, the control is passed to the preceding text box once all data is

DevX - Software Development Resource

Servlets vs. Applets

Question: We currently use applets to allow users to access a database,but are looking for ways to improve performance. Is a servlet-basedsolution faster than an applet-based solution? Answer: This will

DevX - Software Development Resource

Incorrect IP Lookup

Question: I have an application which uses dialup networking. If I connectafter starting my application, InetAddress.getLocalHost() alwaysreturns 127.0.0.1. Even if I connect before starting up,then disconnect and reconnect, the IP

DevX - Software Development Resource

Object Finalization

Question: How can I finalize an object without waiting for the garbage collector? Answer: The System class contains a convenience method called gc() that canbe used to ask the JVM

DevX - Software Development Resource

Attaching a DataGrid Control to ADO

Question: How can I use ADO and DataGrid (OLE DB) control in a VFP form? This code does not work in VFP as it works in VB 6.0: DataGrid1.DataSource=mADORecordset1 Answer:

DevX - Software Development Resource

Scrollbar Value Notification

Question: Is there a way that I can dynamically determine the value of aScrollbar when I am scrolling? The adjustmentValueChanged method gets called only when you stop scrolling. But I

DevX - Software Development Resource

WordViewer and ASP

Question: I would like to open a .doc file (link) in Internet Explorer 4.0 with WordViewer. The problem is that if users have Word 8.0 installed on their PC, it