From 45a1f4885633d8aa7528aa20e18609b20b1c404d Mon Sep 17 00:00:00 2001 From: hzzz Date: Tue, 1 Aug 2017 10:57:16 +0800 Subject: [PATCH] 4 table data tree tab border --- .../fr/design/gui/ibutton/UIHeadGroup.java | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/designer_base/src/com/fr/design/gui/ibutton/UIHeadGroup.java b/designer_base/src/com/fr/design/gui/ibutton/UIHeadGroup.java index d772054f2..85eb1e6ea 100644 --- a/designer_base/src/com/fr/design/gui/ibutton/UIHeadGroup.java +++ b/designer_base/src/com/fr/design/gui/ibutton/UIHeadGroup.java @@ -113,28 +113,28 @@ public class UIHeadGroup extends JPanel{ @Override protected void paintBorder(Graphics g) { - Graphics2D g2d = (Graphics2D)g; - g2d.setColor(UIConstants.LINE_COLOR); - - int width = 0; - for(int i = 0; i < labelButtonList.size() - 1; i++) { - int height = labelButtonList.get(i).getHeight(); - width += labelButtonList.get(i).getWidth() + 1; - g.drawLine(width, 0, width, height); - } - - width += labelButtonList.get(labelButtonList.size() - 1).getWidth() + 1; - if(isNeedLeftRightOutLine) { - g2d.drawRect(0, 0, width, getHeight() - 1); - } else { - g2d.drawLine(1, 0, width - 1, 0); - g2d.drawLine(1, getHeight() - 1, width - 1, getHeight() - 1); - } - - - g2d.setColor(UIConstants.NORMAL_BACKGROUND); - UIToggleButton headButton = labelButtonList.get(selectedIndex); - g2d.drawLine(headButton.getX(), headButton.getHeight() + 1, headButton.getX() + headButton.getWidth() - 1, headButton.getHeight() + 1); +// Graphics2D g2d = (Graphics2D)g; +// g2d.setColor(UIConstants.LINE_COLOR); +// +// int width = 0; +// for(int i = 0; i < labelButtonList.size() - 1; i++) { +// int height = labelButtonList.get(i).getHeight(); +// width += labelButtonList.get(i).getWidth() + 1; +// g.drawLine(width, 0, width, height); +// } +// +// width += labelButtonList.get(labelButtonList.size() - 1).getWidth() + 1; +// if(isNeedLeftRightOutLine) { +// g2d.drawRect(0, 0, width, getHeight() - 1); +// } else { +// g2d.drawLine(1, 0, width - 1, 0); +// g2d.drawLine(1, getHeight() - 1, width - 1, getHeight() - 1); +// } +// +// +// g2d.setColor(UIConstants.NORMAL_BACKGROUND); +// UIToggleButton headButton = labelButtonList.get(selectedIndex); +// g2d.drawLine(headButton.getX(), headButton.getHeight() + 1, headButton.getX() + headButton.getWidth() - 1, headButton.getHeight() + 1); } private void initButton(UIToggleButton labelButton) {