devxlogo

August 29, 2000

Making Better Use of Garbage Collector

Imagine you have an enormous object serialized on disk that you are using in memory, or that object is loaded in memory. You want to allow the garbage collector (GC)

Implementing Callback Routines

One of the easier ways of implementing an event-driven programming model is through passing function pointers which are invoked when an event occurs. But because Java doesn’t support the notion

Controlling Debugging Information

Debugging is a core part of application development in Java. Programmers tend to use System.out.println & System.err.println in the code everywhere, which becomes uncontrolled as the program evolves. This becomes

Getting Around a Bug in Testing Your Applets

If you’ve tried using the Java Plugin to test your Applets and got a mysterious “Security Exception,” then you’ve run into a known, but unadvertised bug. For a complete description

Placing Child Window

Question: How do I make a child window go behind its parent window when a button is clicked? I know self.focus() brings a window forward. I need the opposite of

Blocking E-mail from Specific Address

Question: How do I block an e-mail address from sending messages to our server? A former employee keeps sending messages from his outside account to our current employees. I have

Focusing on Field

Question: I am using onblur method on text fields. Based on Validation I want to put the focus back on field. function fldfocus(fldname) {if (navigator.appName==”Netscape”) {document.Layers[fldname].Focus();else {document.all[fldname].focus();}} On Netscape it

Inheritance in C++

Question: In order to have better maintainability and optimum performance, how many levels of inheritance do you recommend ? Answer: Performance is not affected by the depth of inheritance. The