Skip to content

Commit 9490828

Browse files
committed
GH-51 Do not override JExtendedSpinner.getPreferredSize() to prevent StackOverflowError on Windows Classic LaF
1 parent f6500f4 commit 9490828

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

visualvm/profiling/src/com/sun/tools/visualvm/profiling/presets/ProfilerMemoryPanel.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ protected void fireActionPerformed(ActionEvent e) {
250250
add(outgoingCheckbox, constraints);
251251

252252
outgoingSpinner = new JExtendedSpinner(new SpinnerNumberModel(Math.abs(10), 0, 99, 1)) {
253-
public Dimension getPreferredSize() { return getMinimumSize(); }
254-
public Dimension getMaximumSize() { return getMinimumSize(); }
255253
protected void fireStateChanged() { updateAllocControls(); syncUI(); super.fireStateChanged(); }
256254
};
257255
outgoingSpinner.setToolTipText(NbBundle.getMessage(ProfilerMemoryPanel.class, "ProfilerMemoryPanel_TOOLTIP_Limit_alloc2")); // NOI18N

0 commit comments

Comments
 (0)