Bob Hendry

Subscribe to Bob Hendry: eMailAlertsEmail Alerts
Get Bob Hendry via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Top Stories by Bob Hendry

Complex graphics programming is something we rarely do in PowerBuilder. Most of the programs we write include objects that interact with the user and usually don't require graphics. The graphics that we do use are simple geometric features, such as lines and rectangles, to provide a bit of spice to our programs. However, Java works a bit differently since applets use a lot more graphics. Most applets use both simple and complex graphics to add energy to the overall presentation. My next three articles will focus on adding simple (then complex) graphics and animation to your Java applets. The Paint Method In an applet the paint() method is automatically fired when it's rendered (Javaspeak for "displayed"). When the applet is loaded into the browser and the user resizes the browser, Java automatically fires this method. For PowerBuilder programmers this method acts mor... (more)

Wireless PowerBuilder

The first wave of wireless applications flopped badly. Does anyone remember the commercial that shows a young man lying on the beach with his PalmPilot? It goes something like this: a stressed businessman doesn't want to leave the office to go on vacation. A colleague loans him his PDA. With the PDA, Mr. Stressed Businessman would be able to check e-mail and upload spreadsheets and text documents - all without ever leaving his beach chair. Why did I find this funny? At the time, the expectations for wireless devices were grossly inflated. The beach scene in the commercial surely... (more)

Using The Jtable

In Part 2 I continue my discussion on the use of the JTable. (Part 1, "Mastering the JTable," can be found in the January issue of JDJ, [Vol. 6, issue 1].) I'll briefly review the three major classes you'll need while working with data within the JTable. 1. JTable: Controls the visual presentation of the data, however, it has limited control over where the data comes from. In the simplest of circumstances, the JTable can populate itself with data only if the data is static and doesn't come from a database. In the above case, it can be used without any supporting classes. Usuall... (more)

Building the Executable, Pt. 1

This month I'll show you how to prepare a completed PowerBuilder application for deployment to users. PowerBuilder lets you develop and deploy applications for many application architectures. This month (and next) I'll try to help you make decisions about creating an executable and packaging an application for deployment in a client/server architecture. Creating an executable is a matter of packaging the various pieces it needs in an appropriate manner. To get the kind of executable you want, you need to know how to choose the right pieces and the correct way of packaging them. ... (more)

Moving to Java

This article is an overview of the structure of a Java program. My goal is to introduce the Java language to PowerBuilder programmers, pointing out striking similarities between the two languages. Although there may be some value in the simplicity of a "Hello, world" program, it demonstrates something you basically wouldn't ever write code for, so it's not very helpful. Just one note before I begin. Java, like Unix, is strictly case-sensitive. That means a Date object named Today is totally different and unrelated to a Date object named today. Let's look at Listing 1, which I'll... (more)