This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 19686 - Cannot shrink Output Window
Summary: Cannot shrink Output Window
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-23 10:24 UTC by Tomas Hurka
Modified: 2008-12-23 08:39 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch for org.netbeans.lib.terminalemulator.Term (607 bytes, patch)
2002-01-23 10:45 UTC, Tomas Hurka
Details | Diff
Proposed patch for java.awt.SplittedPanel.SplitLayout (2.06 KB, patch)
2002-01-23 10:50 UTC, Tomas Hurka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2002-01-23 10:24:09 UTC
Output Window is not shrinkable. It can only grow in size. This bug occurs only
on Mac OS X, since the Mac OS X implementation respects component's minimum size  and does not allow user to resize such component under its minimum size.
Comment 1 Tomas Hurka 2002-01-23 10:40:50 UTC
This bug is caused by two separate problems. The first one is in
org.netbeans.lib.terminalemulator.Term.java where minimum size of
org.netbeans.lib.terminalemulator.Screen is set to its actual size.
Second problem is in org.openide.awt.SplittedPanel.SplitLayout.minimumLayoutSize(). I guess
that implementation of this method should use getMinimumSize() instead
of getPrefferedSize() for obtaining size of the underlaying
components. The similar logic with getMinimumSize() is used for example in java.awt.BorderLayout class. I will attach the patch for
Term.java as well as for
SplittedPannel.java
Comment 2 Tomas Hurka 2002-01-23 10:45:08 UTC
Created attachment 4350 [details]
Proposed patch for org.netbeans.lib.terminalemulator.Term
Comment 3 Tomas Hurka 2002-01-23 10:50:29 UTC
Created attachment 4351 [details]
Proposed patch for java.awt.SplittedPanel.SplitLayout
Comment 4 Tomas Hurka 2002-01-23 14:34:36 UTC
Proposed patches applied to trunk. The fix is not complicated at all.
It was reviewed by Ales Kemr for Term patch and David Simonek for
SplittedPanel patch. I think that it is good idea to include it in
3.3.1, since it is an annoying bug and there is no workaround. Similar
grow-forever problem of Debugger panel is corrected by this fix too.
Comment 5 iformanek 2002-01-23 17:21:12 UTC
Does the fix introduce any semantic change on platforms other than 
MacOSX? In other words, is the code modified ever run on 
Win/Linux/Solaris JDK?
Comment 6 Tomas Hurka 2002-01-23 17:29:04 UTC
The modified code is executed on other platforms.
Comment 7 eadams 2002-01-25 11:30:36 UTC
Ian, Honzo and I discussed this.
We do not approve this fix at this time because
it is too late in the release cycle and impacts
only Mac OS users (my apologies to those users).

This bug should be fixed immediately after NB 3.3.1
is final and made available via AutoUpdate os that
Mac OS users have a fix.
Comment 8 Jan Zajicek 2002-04-02 16:33:00 UTC
Tomasi, please, verify this, if it is already integrated into Orion.
Thanks.
Comment 9 Tomas Hurka 2002-04-04 09:02:09 UTC
Verified in FFJ 4.0 build 020403_1
Comment 10 Quality Engineering 2003-07-01 16:31:04 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 11 Quality Engineering 2008-12-23 08:39:20 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.