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 22925

Summary: doubled scrollbars when invoking Ant Settings/Properties custom property editor
Product: platform Reporter: Milos Kleint <mkleint>
Component: Window SystemAssignee: _ ttran <ttran>
Status: CLOSED FIXED    
Severity: blocker CC: akemr, issues, mmirilovic
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 20570    
Bug Blocks:    
Attachments: screenshot
working hack for NbPresenter.diff

Description Milos Kleint 2002-04-29 09:54:02 UTC
using dev build from 29/April/2002, Win2000.

I get doubled scrollbars when invoking Ant
Settings/Properties custom property editor.
Besides being ugly, one has to use both the
scrollbarsi n order to scroll all the way to the
end of line.
Comment 1 Milos Kleint 2002-04-29 09:55:20 UTC
Created attachment 5585 [details]
screenshot
Comment 2 David Konecny 2002-04-29 13:19:01 UTC
Looks like problem of property editor.
Comment 3 akemr 2002-04-29 16:48:00 UTC
Hmm, I didn't change scrolling in custom property editor.
In NB 3.3.1 it works.

CCing Properties module - does something change in properties
editor??
Comment 4 Jesse Glick 2002-04-30 02:17:42 UTC
[Milos please don't use JPEG for screenshots...GIF or PNG is non-lossy.]

Trung I would guess this is a regression triggered by issue #20570.
Comment 5 akemr 2002-04-30 10:02:56 UTC
I also think it's caused by #20570, so reassigning to Trung.

I'll attach patch/hack to NbPresenter which works fine for
Properties custom editor.
Comment 6 akemr 2002-04-30 10:04:02 UTC
Created attachment 5601 [details]
working hack for NbPresenter.diff
Comment 7 Jesse Glick 2002-04-30 22:27:27 UTC
Yuck, that's evil-looking.

Maybe the patch for issue #20570 should just be backed out. The
original problem was *not* with random special components displayed in
dialogs, which generally already use JScrollPane if it makes sense.
The problem was with message panes where the displayed object is a
String, and a GUI component is generated for you - with no scrolling
ability. However JOptionPane is used to display the messages, not
NbPresenter directly. Maybe #20570 should just be WONTFIX and anyone
displaying a long text message should just be responsible for
reformatting it into a GUI component with a decent layout.
Comment 8 _ ttran 2002-05-07 09:35:24 UTC
Okay, I take a safer route.  JScrollPane will be inserted in between
only if the _minimumSize_ is larger than the screen not the
_preferredSize_ as it is now.  This is only a safeguard to make sure
we don't display dialogs larger than the screen.  Each dialog must
still be properly designed to take the limited screen size into
consideration.
Comment 9 Marian Mirilovic 2002-05-24 15:54:21 UTC
verified in [nb_dev](20020524)
Comment 10 Quality Engineering 2003-07-01 16:31:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.