Browse Source

补一下JListControlPane的展示

persist/11.0-arabic
obo 4 months ago
parent
commit
4c9714dd0e
  1. 2
      designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MaxMemRowCountPanel.java
  2. 3
      designer-base/src/main/java/com/fr/design/gui/controlpane/JControlPane.java
  3. 1
      designer-base/src/main/java/com/fr/design/gui/controlpane/JListControlPane.java

2
designer-base/src/main/java/com/fr/design/data/tabledata/tabledatapane/MaxMemRowCountPanel.java

@ -2,6 +2,7 @@ package com.fr.design.data.tabledata.tabledatapane;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
@ -67,6 +68,7 @@ public class MaxMemRowCountPanel extends UIToolbar {
};
public MaxMemRowCountPanel() {
this.setLayout(new FlowLayout(FlowLayout.LEADING));
this.setFloatable(false);
this.setRollover(true);
this.setBackground(UIConstants.NORMAL_BACKGROUND);

3
designer-base/src/main/java/com/fr/design/gui/controlpane/JControlPane.java

@ -1,5 +1,6 @@
package com.fr.design.gui.controlpane;
import com.fr.base.i18n.BidiUtils;
import com.fr.design.dialog.BasicPane;
import com.fr.design.gui.controlpane.shortcutfactory.AbstractShortCutFactory;
import com.fr.design.gui.controlpane.shortcutfactory.OldShortCutFactory;
@ -106,7 +107,7 @@ abstract class JControlPane extends BasicPane implements UnrepeatedNameHelper, S
this.creators = this.createNameableCreators();
initCardPane();
// SplitPane
JSplitPane mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, getLeftPane(), cardPane);
JSplitPane mainSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, BidiUtils.applyOrientationByLocale(getLeftPane()), cardPane);
mainSplitPane.setBorder(BorderFactory.createLineBorder(GUICoreUtils.getTitleLineBorderColor()));
mainSplitPane.setOneTouchExpandable(true);

1
designer-base/src/main/java/com/fr/design/gui/controlpane/JListControlPane.java

@ -369,6 +369,7 @@ public abstract class JListControlPane extends JControlPane implements ListContr
//iconLabel和textLabel的背景颜色不会被JList背景颜色覆盖,开发者自定义
this.textLabel.setOpaque(true);
this.iconLabel.setOpaque(true);
BidiUtils.applyOrientationByLocale(this);
}
@Override

Loading…
Cancel
Save