|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.design.data.tabledata.tabledatapane; |
|
|
|
package com.fr.design.data.tabledata.tabledatapane; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Dimension; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
|
|
|
|
|
@ -87,13 +88,12 @@ public class MaxMemRowCountPanel extends UIToolbar { |
|
|
|
this.removeAll(); |
|
|
|
this.removeAll(); |
|
|
|
this.add(switchCache); |
|
|
|
this.add(switchCache); |
|
|
|
switchCache.setSelectedIndex(MAX_IN_MEMORY); |
|
|
|
switchCache.setSelectedIndex(MAX_IN_MEMORY); |
|
|
|
|
|
|
|
if (this.getComponentCount() == 4) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
this.add(new UILabel(" ")); |
|
|
|
this.add(new UILabel(" ")); |
|
|
|
this.add(numberSpinner); |
|
|
|
this.add(numberSpinner); |
|
|
|
this.add(new UILabel(" " + Toolkit.i18nText("Fine-Design_Basic_Row"))); |
|
|
|
this.add(new UILabel(" " + Toolkit.i18nText("Fine-Design_Basic_Row"))); |
|
|
|
if (this.getComponentCount() > 4) { |
|
|
|
|
|
|
|
this.remove(1); |
|
|
|
|
|
|
|
this.remove(1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.validate(); |
|
|
|
this.validate(); |
|
|
|
this.repaint(); |
|
|
|
this.repaint(); |
|
|
|
} |
|
|
|
} |
|
|
|