|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.mainframe.alphafine.component; |
|
|
|
|
|
|
|
|
|
import com.bulenkov.iconloader.IconLoader; |
|
|
|
|
import com.fr.base.ConfigManager; |
|
|
|
|
import com.fr.base.FRContext; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
@ -134,7 +135,7 @@ public class AlphaFineDialog extends UIDialog {
|
|
|
|
|
private void initComponents() { |
|
|
|
|
initSearchTextField(); |
|
|
|
|
JPanel topPane = new JPanel(new BorderLayout()); |
|
|
|
|
UILabel iconLabel = new UILabel(new ImageIcon(getClass().getResource("/com/fr/design/mainframe/alphafine/images/bigsearch.png"))); |
|
|
|
|
UILabel iconLabel = new UILabel(IconLoader.getIcon(AlphaFineConstants.IMAGE_URL + "bigsearch.png")); |
|
|
|
|
iconLabel.setPreferredSize(AlphaFineConstants.ICON_LABEL_SIZE); |
|
|
|
|
iconLabel.setOpaque(true); |
|
|
|
|
iconLabel.setBackground(Color.WHITE); |
|
|
|
@ -149,7 +150,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.setIcon(IOUtils.readIcon(AlphaFineConstants.IMAGE_URL + "alphafine_close.png")); |
|
|
|
|
closeButton.set4ToolbarButton(); |
|
|
|
|
closeButton.setBorderPainted(false); |
|
|
|
|
closeButton.setRolloverEnabled(false); |
|
|
|
@ -345,7 +346,7 @@ public class AlphaFineDialog extends UIDialog {
|
|
|
|
|
*/ |
|
|
|
|
private void removeLeftPane() { |
|
|
|
|
if (searchListModel.isEmpty() && defaultPane == null) { |
|
|
|
|
defaultPane = new NoResultPane(Inter.getLocText("FR-Designer-AlphaFine_NO_Result"), IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/no_result.png")); |
|
|
|
|
defaultPane = new NoResultPane(Inter.getLocText("FR-Designer-AlphaFine_NO_Result"), AlphaFineConstants.IMAGE_URL + "no_result.png"); |
|
|
|
|
searchResultPane.remove(leftSearchResultPane); |
|
|
|
|
searchResultPane.add(defaultPane, BorderLayout.WEST); |
|
|
|
|
refreshContainer(); |
|
|
|
@ -556,7 +557,7 @@ public class AlphaFineDialog extends UIDialog {
|
|
|
|
|
break; |
|
|
|
|
case ACTION: |
|
|
|
|
rightSearchResultPane.removeAll(); |
|
|
|
|
rightSearchResultPane.add(new NoResultPane(Inter.getLocText("FR-Designer_NoResult"), IOUtils.readIcon("/com/fr/design/mainframe/alphafine/images/noresult.png"))); |
|
|
|
|
rightSearchResultPane.add(new NoResultPane(Inter.getLocText("FR-Designer_NoResult"), AlphaFineConstants.IMAGE_URL + "noresult.png")); |
|
|
|
|
validate(); |
|
|
|
|
repaint(); |
|
|
|
|
break; |
|
|
|
|