/* */ public void paint(Graphics paramGraphics)
/* */ {
/* 1048 */ if (this.qtcHelper.mClient != null)
/* 1049 */ if (isValid()) {
/* 1050 */ synchronized (this) {
/* 1051 */ QDGraphics localQDGraphics = null;
/* 1052 */ Region localRegion = null;
/* */ try
/* */ {
/* 1055 */ if ((QTSession.isCurrentOS(1)) || (QTSession.isCurrentOS(4))) {
/* 1056 */ localQDGraphics = getPort();
/* 1057 */ localRegion = localQDGraphics.getClip();
/* 1058 */ localQDGraphics.clipRect();
/* */ }
/* 1060 */ synchronized (this.qtcHelper.mClient) {
/* 1061 */ if (this.deferResize)
/* */ {
/* 1068 */ this.qtcHelper.doClientSetBounds();
/* */ }
/* 1070 */ if (this.moved) {
/* 1071 */ this.moved = false;
/* 1072 */ if (this.clientListener != null)
/* 1073 */ this.clientListener.componentMoved(new ComponentEvent(this, 100));
/* */ }
/* 1075 */ if (this.deferResize) {
/* 1076 */ this.deferResize = false;
/* 1077 */ if (this.clientListener != null) {
/* 1078 */ this.clientListener.componentResized(new ComponentEvent(this, 101));
/* */ }
/* 1080 */ if (this.doRedrawForQTPlayer) {
/* 1081 */ this.qtcHelper.mClient.redraw(null);
/* 1082 */ this.doRedrawForQTPlayer = false;
/* */ }
/* 1084 */ if ((MRJWorkaroundFlag) && (!this.deferRedraw) &&
/* 1085 */ (!this.isWin))
/* */ {
/* 1123 */ if ((localQDGraphics != null) && (localRegion != null))
/* 1124 */ localQDGraphics.setClip(localRegion);
/* */ return;
/* */ }
/* */ }
/* 1089 */ if ((this.qtcHelper.mClient instanceof QTDrawable)) {
/* 1090 */ if (!((QTDrawable)this.qtcHelper.mClient).getGWorld().equals(QDGraphics.scratch)) {
/* 1091 */ QTUtils.checkFreeMemory();
/* 1092 */ this.qtcHelper.mClient.redraw(null);
/* */ }
/* 1094 */ } else if (isShowing()) {
/* 1095 */ QTUtils.checkFreeMemory();
/* 1096 */ this.qtcHelper.mClient.redraw(null);
/* */ }
/* 1098 */ this.deferRedraw = false;
/* */ }
/* */ } catch (QTException localQTException) {
/* 1101 */ if ((localQTException.errorCode() == -500) || (localQTException.errorCode() == -108)) {
/* 1102 */ if (localQTException.errorCode() == -108) {
/* */ try {
/* 1104 */ QTUtils.checkFreeMemory();
/* */ } catch (UtilException localUtilException) {
/* 1106 */ QTRuntimeException.handleOrThrow(new QTRuntimeException(localUtilException), this.qtcHelper.mClient, "redraw");
/* */ }
/* */ }
/* 1109 */ if (this.countRegionErr < 3) {
/* 1110 */ if (this.deferResize)
/* 1111 */ this.doRedrawForQTPlayer = true;
/* 1112 */ this.countRegionErr += 1;
/* 1113 */ QTUtils.reclaimMemory();
/* 1114 */ repaint();
/* */
/* 1123 */ if ((localQDGraphics != null) && (localRegion != null))
/* 1124 */ localQDGraphics.setClip(localRegion);
/* */ return;
/* */ }
/* 1117 */ this.countRegionErr = 0;
/* 1118 */ QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), this.qtcHelper.mClient, "setDisplayBounds");
/* */ }
/* */ else {
/* 1121 */ QTRuntimeException.handleOrThrow(new QTRuntimeException(localQTException), this.qtcHelper.mClient, "setDisplayBounds");
/* */ }
/* */ } finally { if ((localQDGraphics != null) && (localRegion != null))
/* 1124 */ localQDGraphics.setClip(localRegion);
/* */ }
/* 1126 */ this.countRegionErr = 0;
/* */ }
/* */ } else {
/* 1129 */ doParentLayout();