private void repaintDisplay() { Component display = viewer.getDisplay(); if (display == null) return; display.repaint(); }