Welcome!

Jim Crafton

Subscribe to Jim Crafton: eMailAlertsEmail Alerts
Get Jim Crafton via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Top Stories by Jim Crafton

A couple of shots with a more dynamic pose and some experiments with the suit materials. Eyes are now rigged in Houdini with a custom eye asset. These are raw renders, no post work done in AE. From 3D 2010-2011 From 3D 2010-2011 ... (more)

Couple more shots of the guard

Some more shots of the nasty guard! From 3D 2010-2011 From 3D 2010-2011 ... (more)

More on Syntax Highlighting

Last month we discussed the use of Swing's Document model to create a syntax-highlighting Document model that we could just plug into JTextPane and use. This month we'll continue with that and add complete support for comments, strings and numbers. We'll also cover how easy it is to actually use the model we've developed, and test things out as we go along. To start things out let's try and use what we have so far. If we look at the code below we can see that plugging the Document we've created into a JTextPane component is quite easy. Defining the keywords is also very easy. JTex... (more)

A Return to Reflection

When we last talked, I promised to finish up the CodeDocument class I'd so abruptly left behind back in July (JDJ Vol. 4, issue 7). Now, due to millions of desperate letters from fans around the globe, I've decided to finish off the series in this article, tackling reflection once again and ending with a text component that supports syntax highlighting and a simplified version of something similar to Borland's Code Insight. Along the way we'll see a few more tricks that JTextArea can do, and in general we'll just go hog wild in code! A Refresher on Reflection Those of you who rea... (more)

Components, and Creating a Custom Property Editor

This column discusses property editors and how to implement one for Java -specifically, how to make one work for our CodeDocument class. When last we talked, we saw how to build a CodeDocument class, but it wasn't something we could work with in a visual designer like JBuilder, say, or Visual Cafe. In this column we'll build a special case of the JTextArea component and add some specialty properties and property editors to support the CodeDocument class we worked on before. The code listings at the end of the article are excerpted from the complete code, which you can download fr... (more)