System.err.println("repainting...");
    public void paintComponent(Graphics g)    {        Graphics2D g2 = (Graphics2D)g;        // cheapo hack to prevent apparent delay in annotation loading        if(firstTimeShown)        {            Font font = new Font(null,Font.PLAIN,10);            AttributedString str = new AttributedString("hi");            g2.setFont(font);            FontRenderContext frc = g2.getFontRenderContext();            LineBreakMeasurer measurer =                new LineBreakMeasurer(str.getIterator(),frc);            firstTimeShown = false;        }        g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,                            RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);        super.paintComponent(g2);        System.err.println("repainting...");    }