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 182034 - [69cat] Database Explorer: Data table window is commonly initially hidden behind other windows
Summary: [69cat] Database Explorer: Data table window is commonly initially hidden beh...
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-15 13:02 UTC by gliesian
Modified: 2011-12-01 12:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Hidden Table Window (1.72 MB, video/mp4)
2010-04-23 21:44 UTC, gliesian
Details
proposed patch v1 (1.15 KB, patch)
2011-11-20 14:38 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gliesian 2010-03-15 13:02:32 UTC
When viewing a table (right-click, View Data...), the data table window is often hidden behind other windows.   In order to see the data table window, the other tables need to be moved first.

For the new user... when they don't see the table be opened they may have the false impression that nothing occurred, when in fact the window did open, it's just hidden.

This is very easy to reproduce and I've seen it dozens of times.  Slightly minimize the SQL Editor height to increase the probability of this occurring.


Thanks,
Robert
Comment 1 Jiri Rechtacek 2010-03-17 12:17:14 UTC
gliesian, I didn't reproduce this problem. Could you attach a screenshot showing the problem, add step-by-step how to reproduce? Thanks
Comment 2 gliesian 2010-04-23 21:44:07 UTC
Created attachment 97942 [details]
Hidden Table Window
Comment 3 Jiri Rechtacek 2010-09-29 10:17:36 UTC
Thanks. I see the problem now. This behavior is by design, cause: table grid is not part of output mode but part of editor mode. The fix needs to redesign output of SQL commands.
Comment 4 matthias42 2011-11-20 14:38:16 UTC
Created attachment 113344 [details]
proposed patch v1

Maybe I'm missing something, but the problem boils down to the way the initial divider location is set. In the current version the location is fixed at 250. My v1 patch instead uses the setDividerLocation(double) overloaded variant, which splits the Windows at half size.

Alternativly I see this option:

setDividerLocation(Math.min(container.getHeight() / 2, 250))

to limit the size of the SQL-Editor window. With current screensizes I think both solutions should work - apart from the case, where the editor area has to limited size.
Comment 5 Jiri Rechtacek 2011-11-29 17:51:33 UTC
A nice workaround of a generic problem. Thanks
core-main/rev/d57fbb2c9614
Comment 6 Quality Engineering 2011-12-01 12:09:40 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/d57fbb2c9614
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #182034: [69cat] Database Explorer: Data table window is commonly initially hidden behind other windows