final float pieceHeight = normalizedPiece.getHeight();
if (waitingComponent != null) {
// Generate icons in an other thread to avoid blocking EDT during offscreen rendering
iconsCreationExecutor.execute(new Runnable() {
public void run() {
setIcon(createIcon(new HomePieceOfFurniture3D(normalizedPiece, null, true, true),
pieceWidth, pieceDepth, pieceHeight));
waitingComponent.repaint();
}
});
} else {
setIcon(createIcon(new HomePieceOfFurniture3D(normalizedPiece, null, true, true),
pieceWidth, pieceDepth, pieceHeight));
}
}
public void modelError(Exception ex) {