ADS BY GOOGLE

File searches are traditionally accomplished by an operating system utility. Most operating systems provide some sort of search facility that allows the user to track down misplaced or forgotten files. However, the facilities differ in their approach for searching files ­ graphical ver...
JavaServer Pages (JSP), an API layer that extends the servlet architect, provide developers with a standard for creating template-based HTML applications. The JSP specification marries scripting tags and Java code in an HTML template with nonvisual JavaBeans and servlets running in the...
One of the first truly reusable components I wrote in Java was a login bean that validated a username/password against our company's network. It was lightweight (using AWT classes), and worked with both applets and applications.
As the popularity of Java increases, many information services departments are embracing Java as the solution to their cross-platform challenges. As this trend progresses, many developers will be faced with the challenge of migrating their Java servers from UNIX to an NT boot-time envi...
I haven't found a good discussion on the topic of class loading and unloading in my searches through Java literature or Java resources on the Web, so I thought it would be a good topic to cover this month. This month's column is all about how and when Java classes are loaded and unload...
Often it-s very useful to create classes that represent a restricted number of real-world entities in our Java programs. For example, there is only a single instance of the java.awt.Toolkit class that ever exists in a single Java VM. This Toolkit represents the windowing system on the ...
I don't have to argue the point that the Java language's multi-threading capabilities are great. They're simple to use and generic enough to work on a variety of different implementations. Whether a VM is made to operate using a single operating system thread, like Microsoft's VM, or u...
In this month's column I'm going to show you how to use Java 1.1's new "inner classes" to control a windowed UI. The big advantage I've found to using this technique is that it makes creating and initializing a Java user interface simple, the technique is easy to understand a...
One of the primary reasons for the success of Java has been its robust dynamic class loading mechanism. The Java Virtual Machine ClassLoader is a mechanism that Java uses to load classes at runtime. Techniques to take advantage of Java's dynamic nature and the interactive nature of the...
The idea of the AWT (the Abstract Window Toolkit) is to make a platform-independent way to build UIs. That is a noble and worthwhile goal, to be sure. Unfortunately the AWT falls into the same traps that so many of the other tools targeting platform independence did years ago. Walking...
I want to start this column by pointing out that Netscape Inc. has announced support for Java 1.1. This is a significant event for us Java developers because I think it means the era of Java 1.0 is coming to an end. Those of you who are not yet familiar with the new features and enhanc...
In this month's column I'll show you how to re-route the standard input and output streams for more versatile applets, applications (and other Java executable types). The impetus for this technique was pretty much born when Microsoft's Internet Explorer first came out. You see, before...
One thing I really love about Java is the built-in support for multi-threading and thread synchronization. This multi-threading support is built straight into the Java Virtual Machine specification and it's built right into the Java language. Where in C++ you would have to use an OS-sp...
I've been working with Java for almost two and a half years now. I can say with confidence that I know pretty much what's going on in the Java core classes. Through the Java training I do, I try to pass an understanding of Java to my students (and hopefully through the students the sam...
This month's Tips and Tricks column is about how to invoke the JDK command-line tools from within your Java applications and trusted applets. I recently had a chance to actually find this skill useful in a commercial product, so I thought I'd share the technique with you.
There have been a lot of new APIs and facilities added to Java 1.1 that have received a lot of fanfare: the Java Database Connectivity API, the new event model, JavaBeans and so on. A lot of new functionality has also been added very quietly, probably because it's not quite as glamorou...
In the course of teaching my Essential Java course, my student's attitudes towards low-level exceptions always amaze me. Most notably, my student's instinctive abhorence of ArrayIndexOutOfBoundsExceptions and NullPointerExceptions. They just hate these types of exceptions, and even the...
I'm going to try to do two things in this month's column. As always, I'm going to show you a Java trick that you may find useful, or at least wildly entertaining. Second, I'm going to show you my interpretation of a (gasp) Microsoft technology after migrating to Java.
Palette animation is a method for doing simple animation that requires a minimum of memory for pixel data. Doing palette animation in Java is certainly a possibility, but you're not going to figure out how unless you do a lot of experimentation yourself. So, in this month's Tips 'n Tri...
With Java 1.1 rolling off the digital assembly line, it's time to take a look at Java's new AWT event delivery model. The nice thing about this new model is that the design pattern it uses, a Listener/Listenee model, is applicable to your Java 1.0.X applications and applets, not just J...
When designing a Java applet or application, you often may wish to place a similar set of components in several different places. Perhaps you would like to have a labeled text entry field, or a more complicated structure like a list of IP addresses and subnet masks, with entry fields f...
Like most web surfers, I just love Java Applets. I love what people are doing with them, and all the nifty new content being developed. Week to week, the number of original and creative applets being added to the Gamelan site, for example, is increasing exponentially (http://www.gamela...
One of the significant advances of Java over C++, its nearest syntactic relative, is Java's built-in thread synchronization facilities. Java uses a very object-oriented approach to thread synchronization, in which each and every object has its own monitor, which is used to protect the ...


ADS BY GOOGLE