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