@ -2,8 +2,8 @@ package com.fr.design.data.datapane.connect;
import com.fine.theme.icon.LazyIcon ;
import com.fine.theme.utils.FineUIScale ;
import com.fine.theme.utils.FineUIStyle ;
import com.formdev.flatlaf.ui.FlatUIUtils ;
import com.fr.base.BaseUtils ;
import com.fr.design.gui.ibutton.UIButton ;
import com.fr.design.gui.icombobox.UIComboBox ;
import com.fr.design.i18n.Toolkit ;
@ -55,16 +55,16 @@ public abstract class ItemEditableComboBoxPanel extends JPanel {
itemComboBox . setEnabled ( true ) ;
this . add ( itemComboBox , BorderLayout . CENTER ) ;
refreshButton = new UIButton ( new LazyIcon ( "refresh" ) ) ;
FineUIStyle . setStyle ( refreshButton , FineUIStyle . ORIGINAL_BUTTON ) ;
JPanel jPanel = FRGUIPaneFactory . createNColumnGridInnerContainer_Pane ( 2 , 0 , 4 ) ;
editButton = initEditButton ( editButton , buttonSize ) ;
editButton . setBorder ( null ) ;
FineUIStyle . setStyle ( editButton , FineUIStyle . ORIGINAL_BUTTON ) ;
editButton . setBackground ( FlatUIUtils . getUIColor ( "default.background" , new Color ( 246 , 248 , 250 , 255 ) ) ) ;
jPanel . add ( editButton ) ;
jPanel . add ( refreshButton ) ;
jPanel . setOpaque ( true ) ;
this . add ( jPanel , BorderLayout . EAST ) ;
refreshButton . setPreferredSize ( buttonSize ) ;
refreshButton . setBorder ( null ) ;
refreshButton . setBackground ( FlatUIUtils . getUIColor ( "default.background" , new Color ( 246 , 248 , 250 , 255 ) ) ) ;
refreshButton . addActionListener ( new ActionListener ( ) {
public void actionPerformed ( ActionEvent e ) {
@ -74,7 +74,7 @@ public abstract class ItemEditableComboBoxPanel extends JPanel {
}
protected UIButton initEditButton ( UIButton editButton , Dimension buttonSize ) {
editButton = new UIButton ( BaseUtils . readIcon ( "/com/fr/design/images/control/control-center2.png ") ) ;
editButton = new UIButton ( new LazyIcon ( "edit ") ) ;
editButton . setPreferredSize ( buttonSize ) ;
editButton . addActionListener ( new ActionListener ( ) {
public void actionPerformed ( ActionEvent evt ) {