Browse Source

修改配色面板在window系统上bug

master
mengao 7 years ago
parent
commit
0f123963ee
  1. 9
      designer_chart/src/com/fr/design/mainframe/chart/gui/style/ChartAccColorPane.java
  2. 2
      designer_chart/src/com/fr/design/mainframe/chart/gui/style/ChartFillStylePane.java

9
designer_chart/src/com/fr/design/mainframe/chart/gui/style/ChartAccColorPane.java

@ -16,7 +16,6 @@ import javax.swing.event.ChangeListener;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.geom.Rectangle2D;
/**
* 图表颜色填充--32种精确颜色选择界面.
@ -65,11 +64,9 @@ public class ChartAccColorPane extends BasicPane implements MouseListener, UIObs
public void paintComponent(Graphics g) {
Graphics2D g2d = (Graphics2D) g;
super.repaint();
Rectangle2D bounds = this.getBounds();
if(bounds == null) {
return;
}
this.setLayout(null);
this.setBounds(0,0,WIDTH*ROWCOUNT, WIDTH*4);
Paint oldPaint = g2d.getPaint();
g2d.setPaint(new Color(212, 212, 216));
g2d.fillRect(0, 0, WIDTH*ROWCOUNT, WIDTH*4);

2
designer_chart/src/com/fr/design/mainframe/chart/gui/style/ChartFillStylePane.java

@ -94,7 +94,7 @@ public class ChartFillStylePane extends BasicBeanPane<AttrFillStyle>{
}
protected void initLayout() {
customPane.setPreferredSize(new Dimension(200, 130));
customPane.setPreferredSize(new Dimension(200, 100));
colorGradient.setPreferredSize(new Dimension(120, 30));

Loading…
Cancel
Save