private static boolean imagesLoaded = false;
public static void loadImages() {
int imgTotal;
String imgRoot;
Version version;
if (imagesLoaded)
return;
imgTotal = imageFileNames.length;
adminImages = new ImageIcon [ imgTotal ];
version = new Version(false);
/*
System.out.println("Loading Images...");
*/
/*
* File names are relative to
* IMQ_HOME/lib/images/admin
*/
imgRoot = Globals.JMQ_LIB_HOME
+ File.separator
+ "images"
+ File.separator
+ "admin";
/*
* When loading splash screen, check if commercial product
* and load splash_comm instead of default splash_openmq.
*/
for (int i = 0; i < imgTotal; ++i) {
String fileName;
if (i == SPLASH_SCREEN && version.isCommercialProduct()) {
fileName = imgRoot
+ File.separator
+ "splash_comm.gif";
} else {
fileName = imgRoot