Tip Bank

DevX - Software Development Resource

Java Threads and Multiple Processors

Question: On a Windows NT box with multiple processors, will a multithreaded Java application get split between the processors automatically? Answer: This depends on the version and vendor of theJVM

DevX - Software Development Resource

Textfield focus

Question: I have a frame with a few textfields on it. How can I set the focus to the first textfield? Is there something like setFocus? Answer: A component can

DevX - Software Development Resource

Operator overloading

Question: Can you do operator overloading in Java? If so, how? Answer: Java does not as of yet support operator overloading, and there are no signs that it will ever

DevX - Software Development Resource

Graphics.create()

Question: For what uses can the Graphics.create() method be used? Answer: There will be cases where you want to make a copy of a Graphics context and make some alterations

DevX - Software Development Resource

Process Local Storage

Question: Is there a way to get memory allocated that is global to the current process? Thread local storage won’t do the trick because you need a global handle to

DevX - Software Development Resource

Adding a Component to a JTable

Question: How do I add a JButton to the cells of a JTable? Answer: Using the Swing JTable class can become a sticky business when you want to customize it

DevX - Software Development Resource

DBA; Backup

Question: What is the correct way to backup a SQL Server database? I’m new to SQL Server and don’t know where to start. Answer: The best place to start would

DevX - Software Development Resource

Event handling with multiple scrollbars

Question: I’m trying to work on the basics of event handling. I found it easy to set one label and have the scrollbar change the value of the label. I