private void updatePreferredSize() { int newWidth = myTextColumnWidth + myIconRenderersWidth + getFoldingAreaWidth(); int newHeight = myEditorComponent.getPreferredSize().height; if (myWidth != newWidth || myHeight != newHeight) { myWidth = newWidth; myHeight = newHeight; firePreferredSizeChanged(); } }
@Override public Dimension getPreferredSize() { return new Dimension(myWidth + 1, myEditorComponent.getPreferredSize().height); }