Dimension () { Dimension preferredSize = super.getPreferredSize(); if (myDurationWidth > 0) { preferredSize.width += myDurationWidth + myDurationLeftInset + myDurationRightInset; } return preferredSize; }