void setMonthLabelText() { String str = getFormattedDate("MMMM", cdt.getCalendarTime()); // $NON-NLS-1$ GC gc = new GC(getDisplay()); int width = monthButton.getClientArea().width; if (width > 0 && gc.stringExtent(str).x >= width) { str = getFormattedDate("MMM", cdt.getCalendarTime()); // $NON-NLS-1$ } gc.dispose(); monthButton.setText(str); }