@@ -179,7 +179,13 @@ public void addEntry(String name) {
179
179
180
180
labelMap .put (name , new TwoLabelsContainer (nameLabel , valueLabel ));
181
181
}
182
-
182
+
183
+ public void fixGroupsHeight () {
184
+ for (Component component : getComponents ()) {
185
+ component .setMaximumSize (new Dimension (component .getMaximumSize ().width , component .getPreferredSize ().height ));
186
+ }
187
+ }
188
+
183
189
public void removeEntry (String name ) {
184
190
TwoLabelsContainer labelContainer = labelMap .get (name );
185
191
assert labelContainer != null : "labelContainer for '" + name + "' is null -> was it registered?" ;
@@ -233,8 +239,10 @@ public MemoryTab() {
233
239
234
240
addEntry (LocalisationHelper .getString ("data_panel_memory_promotion_avg" ));
235
241
addEntry (LocalisationHelper .getString ("data_panel_memory_promotion_total" ));
236
- }
237
-
242
+
243
+ fixGroupsHeight ();
244
+ }
245
+
238
246
public void setModel (GCModel model ) {
239
247
boolean fullGcDataAvailable = model .getFootprintAfterFullGC ().getN () != 0 ;
240
248
boolean fullGcSlopeDataAvailable = model .getFootprintAfterFullGC ().getN () > 1 ;
@@ -377,8 +385,10 @@ public PauseTab() {
377
385
addEntry (LocalisationHelper .getString ("data_panel_count_gc_pauses" ));
378
386
addEntry (LocalisationHelper .getString ("data_panel_avg_gcpause" ));
379
387
addEntry (LocalisationHelper .getString ("data_panel_min_max_gc_pause" ));
388
+
389
+ fixGroupsHeight ();
380
390
}
381
-
391
+
382
392
public void setModel (GCModel model ) {
383
393
boolean pauseDataAvailable = model .getPause ().getN () > 0 ;
384
394
boolean gcDataAvailable = model .getGCPause ().getN () > 0 ;
@@ -469,8 +479,10 @@ public SummaryTab() {
469
479
addEntry (LocalisationHelper .getString ("data_panel_performance_fullgc" ));
470
480
addEntry (LocalisationHelper .getString ("data_panel_count_gc_pauses" ));
471
481
addEntry (LocalisationHelper .getString ("data_panel_performance_gc" ));
482
+
483
+ fixGroupsHeight ();
472
484
}
473
-
485
+
474
486
public void setModel (GCModel model ) {
475
487
boolean fullGcDataAvailable = model .getFootprintAfterFullGC ().getN () > 0 ;
476
488
boolean postConcurrentUsedSizeAvailable = model .getPostConcurrentCycleHeapUsedSizes ().getN () > 0 ;
0 commit comments