@ -5,10 +5,10 @@ import com.fr.data.impl.JDBCDatabaseConnection;
import com.fr.design.border.UITitledBorder ;
import com.fr.design.border.UITitledBorder ;
import com.fr.design.gui.ibutton.UIButton ;
import com.fr.design.gui.ibutton.UIButton ;
import com.fr.design.gui.icombobox.UIComboBox ;
import com.fr.design.gui.icombobox.UIComboBox ;
import com.fr.design.gui.ilable.ActionLabel ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.ilable.UILabel ;
import com.fr.design.gui.ipasswordfield.UIPasswordFieldWithFixedLength ;
import com.fr.design.gui.ipasswordfield.UIPasswordFieldWithFixedLength ;
import com.fr.design.gui.itextfield.UITextField ;
import com.fr.design.gui.itextfield.UITextField ;
import com.fr.design.gui.ilable.ActionLabel ;
import com.fr.design.i18n.Toolkit ;
import com.fr.design.i18n.Toolkit ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.FRGUIPaneFactory ;
import com.fr.design.layout.TableLayout ;
import com.fr.design.layout.TableLayout ;
@ -21,17 +21,13 @@ import com.fr.general.ComparatorUtils;
import com.fr.stable.ArrayUtils ;
import com.fr.stable.ArrayUtils ;
import com.fr.stable.EncodeConstants ;
import com.fr.stable.EncodeConstants ;
import com.fr.stable.StringUtils ;
import com.fr.stable.StringUtils ;
import java.awt.event.InputMethodEvent ;
import java.awt.event.InputMethodListener ;
import java.awt.event.KeyAdapter ;
import java.awt.event.KeyEvent ;
import java.awt.event.KeyListener ;
import java.util.regex.Matcher ;
import java.util.regex.Pattern ;
import javax.swing.BorderFactory ;
import javax.swing.BorderFactory ;
import javax.swing.JFileChooser ;
import javax.swing.JFileChooser ;
import javax.swing.JPanel ;
import javax.swing.JPanel ;
import javax.swing.JPasswordField ;
import javax.swing.JPasswordField ;
import javax.swing.event.DocumentEvent ;
import javax.swing.event.DocumentListener ;
import java.awt.BorderLayout ;
import java.awt.BorderLayout ;
import java.awt.Color ;
import java.awt.Color ;
import java.awt.Component ;
import java.awt.Component ;
@ -39,13 +35,18 @@ import java.awt.Dimension;
import java.awt.Graphics ;
import java.awt.Graphics ;
import java.awt.event.ActionEvent ;
import java.awt.event.ActionEvent ;
import java.awt.event.ActionListener ;
import java.awt.event.ActionListener ;
import java.awt.event.InputMethodEvent ;
import java.awt.event.InputMethodListener ;
import java.awt.event.KeyAdapter ;
import java.awt.event.KeyEvent ;
import java.awt.event.KeyListener ;
import java.io.File ;
import java.io.File ;
import java.util.HashMap ;
import java.util.HashMap ;
import java.util.Iterator ;
import java.util.Iterator ;
import java.util.Map ;
import java.util.Map ;
import java.util.Map.Entry ;
import java.util.Map.Entry ;
import javax.swing.event.DocumentEvent ;
import java.util.regex.Matcher ;
import javax.swing.event.DocumentListener ;
import java.util.regex.Pattern ;
public class JDBCDefPane extends JPanel {
public class JDBCDefPane extends JPanel {
public static final String DRIVER_TYPE = "driver_type" ;
public static final String DRIVER_TYPE = "driver_type" ;
@ -291,7 +292,7 @@ public class JDBCDefPane extends JPanel {
jdbcDatabase = new JDBCDatabaseConnection ( ) ;
jdbcDatabase = new JDBCDatabaseConnection ( ) ;
}
}
Object driveItem = this . driverComboBox . getSelectedItem ( ) ;
Object driveItem = this . driverComboBox . getSelectedItem ( ) ;
jdbcDatabase . setDriver ( driveItem = = null ? null : driveItem . toString ( ) ) ;
jdbcDatabase . setDriver ( driveItem = = null ? null : driveItem . toString ( ) . trim ( ) ) ;
jdbcDatabase . setURL ( this . urlTextField . getText ( ) . trim ( ) ) ;
jdbcDatabase . setURL ( this . urlTextField . getText ( ) . trim ( ) ) ;
jdbcDatabase . setUser ( this . userNameTextField . getText ( ) . trim ( ) ) ;
jdbcDatabase . setUser ( this . userNameTextField . getText ( ) . trim ( ) ) ;
jdbcDatabase . setPassword ( new String ( this . passwordTextField . getPassword ( ) ) . trim ( ) ) ;
jdbcDatabase . setPassword ( new String ( this . passwordTextField . getPassword ( ) ) . trim ( ) ) ;