private Point getPersistedSize() { boolean oldPersistSize = persistSize; // This affects getDialogBoundsStrategy persistSize = true; try { Point persistedSize = super.getInitialSize(); return persistedSize; } finally { persistSize = oldPersistSize; } } }
protected Point getInitialSize() { Point p = super.getInitialSize(); // p.y += p.y/10; return new Point(500,p.y); }
@Override protected Point getInitialSize() { if (!persistSize) { // For "small" dialogs with label-only results, use the default // height and the persisted width Point size = super.getInitialSize(); size.x = getPersistedSize().x; return size; } return super.getInitialSize(); }
protected Point getInitialSize() { final Point size= super.getInitialSize(); size.x= convertWidthInCharsToPixels(75); size.y+= convertHeightInCharsToPixels(20); return size; } }
@Override protected Point getInitialSize() { final Point size= super.getInitialSize(); size.x= convertWidthInCharsToPixels(75); size.y+= convertHeightInCharsToPixels(20); return size; } }
return super.getInitialSize();