|
|
|
@ -10,6 +10,7 @@ import java.awt.event.MouseEvent;
|
|
|
|
|
import java.awt.event.MouseListener; |
|
|
|
|
import java.awt.event.MouseMotionListener; |
|
|
|
|
import java.awt.geom.Line2D; |
|
|
|
|
import java.awt.geom.Rectangle2D; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Author : daisy |
|
|
|
@ -45,6 +46,8 @@ public abstract class NewTemplatePane extends JComponent implements MouseListene
|
|
|
|
|
public void paintComponent(Graphics g) { |
|
|
|
|
super.paintComponent(g); |
|
|
|
|
g2d = (Graphics2D) g; |
|
|
|
|
g2d.setColor(UIConstants.COMBOBOX_BTN_NORMAL); |
|
|
|
|
g2d.fill(new Rectangle2D.Double(0, 0, getWidth(),getHeight())); |
|
|
|
|
int sheetIconY = (getHeight() - newWorkBookIconMode.getIconHeight()) / 2; |
|
|
|
|
newWorkBookIconMode.paintIcon(this, g2d, newIconStartX, sheetIconY); |
|
|
|
|
// paintUnderLine(g2d);
|
|
|
|
|