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 111498 - JUnit panel in New File wizard is too big
Summary: JUnit panel in New File wizard is too big
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Marian Petras
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2007-07-31 15:46 UTC by jrojcek
Modified: 2007-08-02 14:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jrojcek 2007-07-31 15:46:56 UTC
The JUnit panel in New File wizard is bigger than the Choose File Type panel which causes a "jumping" effect when moving from the 
choose panel to the JUnit panel. The JUnit panel should have the same size as the very first step.

This problem appears with "Test for Existing Class" and "Test Suite" wizards.
Comment 1 Marian Petras 2007-07-31 18:51:31 UTC
The JUnit panel needs not be so wide - I will adjust the width.

I will not bind it to width (or height) of the first step page because the first step page is too small.
Comment 2 Marian Petras 2007-07-31 19:51:07 UTC
Fixed (in the trunk).

I reduced width of the text-fields so that the whole dialogue shrunk horizontally.

To reduce the size vertically, the only thing I can do is to move the "Optional comments" block of check-boxes to the
right of the "Optional Code" block. Please reopen this issue if you agree with this slight redesign. With the current
design, I cannot do much - marking as FIXED.
Comment 3 Marian Petras 2007-07-31 19:53:03 UTC
Modified file:
   junit/src/org/netbeans/modules/junit/wizards/SimpleTestStepLocation.java   (1.26)

Diff:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/SimpleTestStepLocation.java?r1=1.25&r2=1.26&diff_format=u
Comment 4 jrojcek 2007-08-02 10:20:17 UTC
Yes, please try to move the Optional Comments check boxes to the third column. It actually looks a bit weird that the second column contain two sections. 

And BTW, why does it say "Optional"? I would say all check boxes are optional? Should it say "Generated Code"?
Comment 5 Marian Petras 2007-08-02 12:46:31 UTC
I agree with your argument about "Optional". I will rename the captions to "Generated Code" and "Generated Comments".
Comment 6 Marian Petras 2007-08-02 14:24:08 UTC
Fixed (in the trunk).

Modified files:
   junit/src/org/netbeans/modules/junit/wizards/: EmptyTestStepLocation.java   (1.10)
                                                  TestSuiteStepLocation.java   (1.11)
                                                  SimpleTestStepLocation.java   (1.27)

Diffs:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/EmptyTestStepLocation.java?r1=1.9&r2=1.10&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/TestSuiteStepLocation.java?r1=1.10&r2=1.11&diff_format=u
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/wizards/SimpleTestStepLocation.java?r1=1.26&r2=1.27&diff_format=u

I also renamed the captions of the check-box groups
- modified file:
     junit/src/org/netbeans/modules/junit/Bundle.properties   (1.84)
- diff:
http://junit.netbeans.org/source/browse/junit/src/org/netbeans/modules/junit/Bundle.properties?r1=1.83&r2=1.84&diff_format=u