From b918a95d0d1ff91be6a110cbc6e1ff572c83296e Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Sat, 8 Jul 2017 00:32:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E5=8E=BB=E6=8E=89=E5=9C=86=E8=A7=92?= =?UTF-8?q?=EF=BC=8C=E5=8F=A6=E5=A4=96=E4=BC=98=E5=8C=96=E4=BA=86=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E6=8C=89=E9=92=AE=E7=9A=84=E6=98=BE=E7=A4=BA=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../alphafine/component/AlphaFineDialog.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java index 207c3ae5d..597491e34 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java +++ b/designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java @@ -147,6 +147,7 @@ public class AlphaFineDialog extends UIDialog { closeButton.setPreferredSize(AlphaFineConstants.CLOSE_BUTTON_SIZE); closeButton.setIcon(new ImageIcon(getClass().getResource("/com/fr/design/mainframe/alphafine/images/alphafine_close.png"))); closeButton.set4ToolbarButton(); + closeButton.setBorderPainted(false); closeButton.setRolloverEnabled(false); closeButton.addActionListener(new ActionListener() { @Override @@ -154,11 +155,7 @@ public class AlphaFineDialog extends UIDialog { dispose(); } }); - UILabel borderLabel = new UILabel(); - borderLabel.setBackground(AlphaFineConstants.GRAY); - borderLabel.setPreferredSize(new Dimension(AlphaFineConstants.HEIGHT, 1)); topPane.add(closeButton, BorderLayout.EAST); - topPane.add(borderLabel, BorderLayout.SOUTH); add(topPane, BorderLayout.CENTER); searchTextField.getDocument().addDocumentListener(new DocumentAdapter() { @Override @@ -184,7 +181,7 @@ public class AlphaFineDialog extends UIDialog { */ private void initProperties() { setUndecorated(true); - addComponentListener(new ComponentHandler()); + //addComponentListener(new ComponentHandler()); setSize(AlphaFineConstants.FIELD_SIZE); centerWindow(this); @@ -306,6 +303,10 @@ public class AlphaFineDialog extends UIDialog { searchResultPane.add(leftSearchResultPane, BorderLayout.WEST); rightSearchResultPane.setPreferredSize(new Dimension(AlphaFineConstants.RIGHT_WIDTH, AlphaFineConstants.CONTENT_HEIGHT)); searchResultPane.add(rightSearchResultPane, BorderLayout.EAST); + UILabel splitLabel = new UILabel(); + splitLabel.setBackground(AlphaFineConstants.GRAY); + splitLabel.setPreferredSize(new Dimension(AlphaFineConstants.HEIGHT, 1)); + searchResultPane.add(splitLabel, BorderLayout.NORTH); add(searchResultPane, BorderLayout.SOUTH); setSize(AlphaFineConstants.FULL_SIZE); }