@@ -83,10 +83,10 @@ class CodeCoverageReporterWindow extends JFrame implements ActionListener, Focus
83
83
paneParams = new JPanel (new GridBagLayout ())
84
84
pathsTextArea. editable = false
85
85
pathsTextArea. enabled = false
86
- addParam(UtplsqlResources . getString(" WINDOW_PATHS_LABEL" ), ' ' ' «FOR path : reporter.pathList SEPARATOR ", "»«path»«ENDFOR»' ' ' , pathsTextArea)
87
- addParam(UtplsqlResources . getString(" WINDOW_SCHEMAS_LABEL" ), " " , schemasTextField);
88
- addParam(UtplsqlResources . getString(" WINDOW_INCLUDE_OBJECS_LABEL" ), ' ' ' «FOR i : reporter.includeObjectList SEPARATOR ", "»«i»«ENDFOR»' ' ' , includeObjectsTextArea);
89
- addParam(UtplsqlResources . getString(" WINDOW_EXCLUDE_OBJECS_LABEL" ), " " , excludeObjectsTextArea);
86
+ addParam(UtplsqlResources . getString(" WINDOW_PATHS_LABEL" ), ' ' ' «FOR path : reporter.pathList SEPARATOR ", "»«path»«ENDFOR»' ' ' , pathsTextArea, 50 , 2 )
87
+ addParam(UtplsqlResources . getString(" WINDOW_SCHEMAS_LABEL" ), " " , schemasTextField, 0 , 0 );
88
+ addParam(UtplsqlResources . getString(" WINDOW_INCLUDE_OBJECS_LABEL" ), ' ' ' «FOR i : reporter.includeObjectList SEPARATOR ", "»«i»«ENDFOR»' ' ' , includeObjectsTextArea, 66 , 4 );
89
+ addParam(UtplsqlResources . getString(" WINDOW_EXCLUDE_OBJECS_LABEL" ), " " , excludeObjectsTextArea, 34 , 1 );
90
90
val scrollPane = new JScrollPane (paneParams)
91
91
scrollPane. verticalScrollBarPolicy = ScrollPaneConstants . VERTICAL_SCROLLBAR_AS_NEEDED
92
92
scrollPane. horizontalScrollBarPolicy = ScrollPaneConstants . HORIZONTAL_SCROLLBAR_NEVER
@@ -130,11 +130,11 @@ class CodeCoverageReporterWindow extends JFrame implements ActionListener, Focus
130
130
c. weightx = 0 ;
131
131
c. weighty = 0 ;
132
132
pane. add(panelButtons, c);
133
- pane. setPreferredSize(new Dimension (600 , 320 ));
133
+ pane. setPreferredSize(new Dimension (500 , 320 ));
134
134
SwingUtilities . getRootPane(runButton). defaultButton = runButton
135
135
}
136
136
137
- private def addParam (String label , String text , Component component ) {
137
+ private def addParam (String label , String text , Component component , int height , double weighty ) {
138
138
paramPos++
139
139
val c = new GridBagConstraints ();
140
140
val paramLabel = new JLabel (label)
@@ -153,17 +153,16 @@ class CodeCoverageReporterWindow extends JFrame implements ActionListener, Focus
153
153
c. fill = GridBagConstraints . BOTH
154
154
c. insets = new Insets (10 , 10 , 0 , 10 ); // top, left, bottom, right
155
155
c. weightx = 1
156
+ c. weighty = weighty
156
157
if (component instanceof JTextField ) {
157
158
component. text = text
158
- c. weighty = 0
159
159
paneParams. add(component, c)
160
160
} else if (component instanceof JTextArea ) {
161
161
component. text = text
162
162
component. lineWrap = true
163
163
component. wrapStyleWord = true
164
164
var scrollPane = new JScrollPane (component);
165
- scrollPane. viewport. preferredSize = new Dimension (200 , 50 )
166
- c. weighty = 1
165
+ scrollPane. viewport. preferredSize = new Dimension (200 , height)
167
166
paneParams. add(scrollPane, c)
168
167
}
169
168
component. addFocusListener(this )
0 commit comments