We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX - Software Development Resource

Saving Panels with TextField?

Question: I am writing a presentation application and want to take a Panel and add TextFields and maybe Images to it. Is it possible to save this Panel with TextFields

DevX - Software Development Resource

TextField listeners

Question: I want to capture an event that signals a user’s completed update to a TextField. Answer: In general, a user will finish entering text in a TextField by pressing

DevX - Software Development Resource

Copy & Paste

Question: How can I copy the selected text from a TextArea to the system clipboard or paste from the system clipboard to a TextArea? Answer: Java 1.1 introduced the java.awt.datatransfer

DevX - Software Development Resource

Textediting functions in Java

Question: I’m trying to make a text editor in Java, andI want the editor to be able to make words and even pieces of words italic, bold, or underlined. It

DevX - Software Development Resource

HTML browser in Java

Question: I am tring to make a stand-alone application that can read HTML files and render them like a Web browser. How can I do this in pure Java? Answer:

DevX - Software Development Resource

Port information

Question: I need to take a port number as input froma user. How can I check if the port numberentered by the user is free and not beingused by any

DevX - Software Development Resource

Setting textfield focus

Question: I have an initially disabled TextField on a frame.When the user clicks a specific button the TextField is enabled. How do I set the input focus to the TextField

DevX - Software Development Resource

Classes in sun.* packages

All the classes in sun.* that accompany the Sun JDK are provided assupport classes that are used to implement specific sets of functionalityfor the core JDK classes. The classes in

DevX - Software Development Resource

Converting a String into an int

The Java core API possesses a method equivalent to the C atoi() function in Java. The java.lang.Integer class contains a method called parseInt()which will convert a String into an int.

DevX - Software Development Resource

Generating Random Numbers

The java.util package contains a class called Random which you can useto generate random numbers. A Random object represents a repeatingpseudo-random sequence of numbers. You can either fetch the next

DevX - Software Development Resource

Array Reflection

The java.lang.reflect package provides an Array class through whichthe values of an array can be accessed. It is usually more effectiveto cast the array after it has been obtained through

DevX - Software Development Resource

Java Arrays

C programmers are used to dealing with multidimensional arrays as chunksof contiguous memory which can be accessed through pointer arithmetic.In Java, an array is an actual object, and a multidimensional

DevX - Software Development Resource

Components Help Team Based Development

Aside from fitting well with the Microsoft environment, creating components and component based software also works well with the management and tracking of development teams. Components naturally divide into manageable

DevX - Software Development Resource

Performance Monitor Defaults

On NT, do you ever wonder why Performance Monitor starts up blank on some computers, and others have process monitored automatically upon start up? Well, Performance Monitor first looks for

DevX - Software Development Resource

Naming Standards Beyond Programming

Naming standards apply to areas besides only those of developers and source code. All areas of a software solution benefit under a consistent naming process. SQL Server table names and

DevX - Software Development Resource

Avoid Monolithic Tables in SQL Server

You can improve SQL server performance if you avoid creating tables in a monolithic fashion. By monolithic I mean tables that have dozens and dozens of fields that are not

DevX - Software Development Resource

Exceptions are Always Passed by Value

The exception handling (EH) mechanism disables the possibility of passing a thrown exception by reference or through a pointer. This is due to the way this mechanism is implemented: when

DevX - Software Development Resource

Enhancing Performance of Legacy Software

When you port pure C code to a C++ compiler, you may discover slight performance degradation. This is not a fault in the programming language or the compiler, but a

DevX - Software Development Resource

Use Toolbar-Style Title Bars

To make a form use a small toolbar-style title bar, set the form’s WS_EX_TOOLWINDOW extended style: Declare Function GetWindowLong Lib “user32” _ Alias “GetWindowLongA” ( _ ByVal hwnd As Long,

DevX - Software Development Resource

Use a Struct Instead of a Long Argument List

Functions having a long list of arguments such as: void retrieve(const string& title, const string& author, int ISBN, int year, bool& inStore); can become a maintenance problem, since their argument

DevX - Software Development Resource

Implement a Binary Tree

A binary search tree can be useful when you have to traverse a lot of data in sorted order. As this CBinarySearchTree class demonstrates, you can implement binary search trees

DevX - Software Development Resource

Modify a Toolbar’s Image List Control

Have you ever tried to create tools on a toolbar using an image list, only to find that you must detach the toolbar from the list and reset all the

DevX - Software Development Resource

Keeping Things Fresh

Sometimes you might need a browser to keep reloading the latest version of a page automatically. A good example of this is a page that displays an image from a

DevX - Software Development Resource

What’s the Status?

You can use the browser’s status bar to give users extra information about the page that they’re viewing. Here’s an example of how to do it by using a JavaScript

DevX - Software Development Resource

Easily Create All Directories in a Path

Use this code to create a tree of folders on Windows 95 or NT 4.0 in one line: Private Declare Function _ MakeSureDirectoryPathExists Lib “IMAGEHLP.DLL” _ (ByVal DirPath As String)

DevX - Software Development Resource

Cell Structures

If you use HTML tables to lay out your pages, it’s worth knowing about two properties of the tag that help you control the way table cells behave. The CELLSPACING