devxlogo

Setting icon image for dialogs in java

Setting icon image for dialogs in java

Question:
How can we set icon images for the dialogs?

Answer:
There is currently (as of Java 1.1 and 1.2beta3) no way to set icon images for dialogs. On most platforms, dialogs will inheritthe same icon used by their parent Frame.The Swing classes in the Java FoundationClasses suffer from the same problem. Thisis scheduled to be changed in a futurerelease, where you will be able to set theicon for dialogs.

devx-admin

Share the Post: