Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blog Posts by Community

• Adopt a JSR  • Embedded  • GlassFish  
• Global Education and Learning  • Identity Management  • IoT  
• Java Communications  • Java Desktop  • Java Enterprise  
• Java Patterns  • Java Tools  • Java User Groups  
• Java Web Services and XML  • JavaFX  • JCP  
• JDDAC  • Jini  • JXTA  
• Mac Java  • NetBeans  • Open JDK  
• Portlet  • Robotics  • Sun Grid  
• Sun RFID and Sensor  • [no association]  


Java Desktop

Does the following look familiar (under default Ocean theme in Metal LAF)? The menu doesn't look good, with jagged items all over the place. The common solution in this scenario is to use a transparent icon on those menu items that don't have one. There are a few problems with this approach: What happens if you add another menu item with slightly wider icon? You will have to adjust all other...
on Oct 10, 2005
When I'm home and need to tweak and plot an equation, I use an excellent tool that ships with MacOS X 10.4, Grapher. Easy to use, it fits my purpose and provides a good user experience: As I don't want to carry both my laptops to the office every day, I bring only my Windows box, on which I have yet to find a tool to replace Grapher. I have tried several tools and none convinced me yet....
on Oct 10, 2005
Many months ago, Craig and I started the SwingFX project. One of the first components to be added was the infinite progress panel I described in a blog entry: This component was quite successful (I've recently seen a variation in ZValley's ZEN) but it remains quite simple. Michael Bushe just added a very valuable feature, the ability to cancel the current running task: You can get it today in...
on Oct 6, 2005
This past Saturday morning, a friend and I were in San Francisco at Golden Gate park, walking out of the Speedway Meadow. It was cool and overcast and the fog blanketed the tree tops and hung over our heads and gave the surroundings the blurry hazy look of an old newsreel. We were walking down into another hollow, listed on the map as Marx meadow, and drifting toward us was the sound of Joan...
on Oct 5, 2005
Tired of "dealing with a dozen png representations of a single (logical) icon as separated files"? Tired of writing/debugging the code to treat multiple files as a single logical unit? Well, Daniel Leuck, SwingLabs, and Ikayzo bring you JIC : the simple multi-resolution cross-platform icon format for Java! Ok, ok, a little dramatic I know. But hey, it's cool technology and cool technology is what...
on Oct 3, 2005
A new sub project has been added to SwingLabs today, http://deployment.dev.java.net. A few weeks ago Erik Vickroy approached me about starting a project related to deployment issues for rich client Swing applications. After a little brainstorming, it became clear that such a project would be a great addition to the SwingLabs suite of projects. Indeed, easing the deployment of rich client apps is...
on Oct 3, 2005

Java Enterprise

The Sun Java Studio Enterprise Software Forum is the place for you to congregate with fellow developers and the Java Studio Enterprise engineering team online: You can ask questions, post comments, discuss bugs or issues, share your thoughts about the UI, offer suggestions. Not a participant yet? Just join Sun Developer Network--for free--and then sign in and post away. This is part 3 of a series...
on Oct 10, 2005
Sometimes a single word can really wreak havoc, and "Bean" is one such word. My enthusiasm for Java took a distinct nose dive the first time I encountered the implementation details for the dreaded Enterprise Java Bean. It was quite a shock, and I did everything that I could to avoid using them. Now that EJB3 has significantly lessened the learning curve, many of my initial complaints have...
on Oct 6, 2005
James Gosling's recent blog asks the question: "SOA: Buzzworld Whiplash or Real Meat?" The answer probably requires a change of perspective. Jame's falls into the same trap that I fell in... SOA isn't really about a programming paradigm, it's about a product paradigm. Let me rush to explain.... To programmers SOA looks a lot like OOP (especially a lot like OOP as promoted by the SmallTalk...
on Oct 5, 2005
The Sun Java Studio Enterprise Software Forum is the place for you to congregate with fellow developers and the Java Studio Enterprise engineering team online: You can ask questions, post comments, discuss bugs or issues, share your thoughts about the UI, offer suggestions. Not a participant yet? Just join Sun Developer Network--for free--and then sign in and post away. This is part 2 of a series...
on Oct 3, 2005

Java Web Services and XML

JSR 222 Expert Group has published the JAXB 2.0 Proposed Final Draft and can be donwloaded from http://jcp.org/aboutJava/communityprocess/pfd/jsr222/index.html. Please let us know your feedback.
on Oct 7, 2005
Many XML parser APIs accept InputStream or Reader. For example, JAXB unmarshaller has unmarshal(InputStream), StAX has XMLInputFactory.createStreamReader(InputStream), XStream has XStream.fromXML(Reader). So all too often you'd write something like: XMLInputFactory xif = ...;xif.createStreamReader(new FileInputStream("data/foo.xml")); Or maybe: XMLInputFactory xif = ...;xif....
on Oct 7, 2005
Sometimes when you are binding your own classes to XML, you hit with a situation where your class representation doesn't quite match what you'd like to see in the XML. Some other times, some of your classes hit the limitation in JAXB that the class must have a default constructor. XmlJavaTypeAdapter is a solution for those problems. Consider the following question Phil asked in the JAXB&JAX...
on Sep 30, 2005

Global Education and Learning

Once again, a fine crop of great projects in the Global Education and Learning Community. This time we have some normal fare for our community in terms of math with Algebra and Path Planning plus study aids and teacher aids with a Study Buddy and an Open Gradebook. We also have a student working on a programming assignment, an educational web site, and an online exam. But this time we also...
on Oct 6, 2005

NetBeans

We want you. Okay, that was shameless. I'm sorry. It's also not particularly accurate. I just got out of a meeting with our recruiter, and I got to wondering about the difference between a recruiter's world view and an engineer's. They have a job requisition to fill, and they look for someone with the precise set of skills required for the job at hand. In engineering, we'd rather look for a...
on Oct 4, 2005
Yesterday I put together a blog showing how easy it is to work with JSTL in NetBeans. One thankful reader asked for a follow-up on using the JSTL XML library. I think this was primarily due to a problem he was having with a package name change from JDK1.4 to 5 (see my response for more details). But it's simple enough, so here goes anyhow. I'll basically just do what I did yesterday, display a...
on Sep 30, 2005
I came across this post from a frustrated developer today, and couldn't help but wonder - are we keeping NetBeans a secret? Poor Dan is just trying to create a simple JSP. For some reason, I couldn't see the code referenced in his post, but I think I got the gist of what he's trying to do. Let's tackle them one frustration at a time: Frustration #1 - Create a Hello World Web Project Create a...
on Sep 29, 2005

Open JDK

Alan recently blogged about heap dumps are back and Sundar blogged about OQL. These all use the old and historic HPROF binary heap dump format as the "heap dump snapshot", which is essentially a complete dump of all the objects in the Java heap at a given time. If you are familiar with core dumps, and the Solaris utility gcore, you'll understand what we are trying to do here, at least in a...
on Sep 30, 2005
The Tiger JDK introduced a nifty feature whereby you could run an application with -Dcom.sun.management.jmxremote and then later connect to it using the jconsole tool. That allows you to see the JVM's instrumentation (memory, classes, threads) plus any JMX instrumentation you've defined yourself. As Alan Bateman describes, with the Mustang JDK you can now attach jconsole to any application,...
on Sep 29, 2005

Java Tools

As many programmers I don't like using an IDE. Well, at least I used to. I spent many years using an editor of my own and it served my purpose very well. Hey, after all I wrote it according to my needs. Apart from Jext I always used Metapad on Windows, a slightly improved clone of Notepad, and vim on other platforms. Convinced IDE could boost my productivity, I decided to seriously try to use...
on Sep 30, 2005