Script JavaBeans with the Bean Scripting Framework

Script JavaBeans with the Bean Scripting Framework

Add scripts to your JavaBeans or JavaBeans to your scripts The Bean Scripting Framework (BSF) is one of the more interesting Java offerings available free at IBM’s alphaWorks site (see Resources). BSF lets Java programs run scripts written in other…

Compiler optimizations

Can you count on compilers to optimize your Java code? Developers are accustomed to compilers from languages other than Java that support various optimizations. In development, code is typically compiled with optimizations turned off so that source-level debuggers can operate…

Programming XML in Java, Part 1

Programming XML in Java, Part 1

Create Java apps with SAX appeal So, you understand (more or less) how you would represent your data in XML, and you’re interested in using XML to solve many of your data-management problems. Yet you’re not sure how to use…

A multiline button is possible!

Can JButton create a multiline button? Q: Suppose I want to create the button with a label as shown below: “Your Name” “Name” will be on the second line. I tried to create it with: new JButton(«Your n Name») Unfortunately,…

Java servlet books: A comparative review

Java servlet books: A comparative review

Find out where you can get the best servlet coverage Lately, I’m often asked which books on Java servlet and JavaServer Pages (JSP) I would recommend. In fact, even when I was at a local bookstore recently someone asked me…

Java Tip 90: Accelerate your GUIs

Improve GUI performance using ‘lazy’ evaluation Slow graphical user interfaces (GUIs) are a common complaint directed at Java. While constructing snappy GUIs can take time and effort, I’ll present a class that can speed up GUIs with little extra work…

Performance problem or design problem?

What to consider before you optimize When I travel around the globe speaking to developers, performance is always a hot topic in relation to the Java platform. The main issues usually focus on which JVM to use, how to increase…

News and New Product Briefs (March 6, 2000)

Sun releases Java API for XML Sun Microsystems has released the JAXP (Java API for Extensible Markup Language Parsing) Optional Package. JAXP adds XML capabilities to the Java 2 Platform, which should help developers create cross-platform business-to-business applications based on…

Server-side Java: Internationalize JSP-based Websites

Server-side Java: Internationalize JSP-based Websites

Build Websites that speak in tongues Most Websites are customized for a specific locale, with the locale defined as a geographical region or political entity that shares a common language, culture, and customs. While this may not be a significant…