Java: JOptionPane showMessageDialog examples (part 1)

I’ve been working with the Java JOptionPane showMessageDialog a lot lately, so I thought I’d create a page here with a number of showMessageDialog examples, sort of a JOptionPane reference page.

I’ll walk you through some JOptionPane examples here, starting with a simple example and then increasing the level of difficulty as I go on.

Transparent JFrame - How to make a JFrame transparent on Mac OS X

Summary: How to make a Java JFrame transparent (translucent) on Mac OS X.

A lot of people complain about a lot of things in regards to Java on Apple's Mac OS X platform, and okay, occasionally I'm one of them, but a very cool thing you can do on OS X is to create translucent (transparent) frames and windows with Java.

A Java splash screen with a progress bar (Part 1)

In this tutorial I look at how to create a splash screen in a Java application. At the end of the discussion I'll share all of the Java classes that are needed to implement your own Java splash screen.

Use Quaqua to display a sheet in a Java Swing application on Mac OS X (Part 2)


The running program

The Quaqua JSheet effect is very nice, it works as advertised. My only problem with it currently is that it does something to distort the image when the JSheet is displayed. You can see this problem in the image shown below, where the coffee cup image that sits on top of the caution image does not look very good:

Quaqua JSheet - Display a sheet in a Java Swing application on Mac OS X

I'm always looking for ways to make my Java Swing applications on Mac OS X look more and more like native Mac applications, and when a co-worker mentioned the name Quaqua, I decided to take a look at that library/framework one more time. I had looked at it before, but this time, looking at it with a new mindset, I noticed it offers a JSheet implementation.