@Override protected void paintEditorAugmentations(Graphics g) { super.paintEditorAugmentations(g); paintMatchedBracket(g); }
@Override protected void paintBackground(Graphics g) { // Only fill in the background if an image isn't being used. Color bg = textArea.getBackground(); if (bg!=null) { g.setColor(bg); //g.fillRect(0, 0, textArea.getWidth(), textArea.getHeight()); Rectangle r = g.getClipBounds(); g.fillRect(r.x,r.y, r.width,r.height); } paintEditorAugmentations(g); }
@Override protected void paintSafely(Graphics g) { // Paint editor augmentations if editor is not opaque because // paintBackground() is not called in this case if (!textArea.isOpaque()) { paintEditorAugmentations(g); } super.paintSafely(g); }
@Override protected void paintEditorAugmentations(Graphics g) { super.paintEditorAugmentations(g); paintMatchedBracket(g); }
@Override protected void paintBackground(Graphics g) { // Only fill in the background if an image isn't being used. Color bg = textArea.getBackground(); if (bg!=null) { g.setColor(bg); //g.fillRect(0, 0, textArea.getWidth(), textArea.getHeight()); Rectangle r = g.getClipBounds(); g.fillRect(r.x,r.y, r.width,r.height); } paintEditorAugmentations(g); }
@Override protected void paintSafely(Graphics g) { // Paint editor augmentations if editor is not opaque because // paintBackground() is not called in this case if (!textArea.isOpaque()) { paintEditorAugmentations(g); } super.paintSafely(g); }