// Path: DBMetadata-swing/src/main/java/com/github/abel533/Code.java
// public class Code {
//     public static Font TEXT_MSG = new Font("Monospaced", Font.PLAIN, 10);
//     public static Font TEXT_FONT = new Font(I18n.key("tools.text.font"), Font.PLAIN, 14);
//     public static Font TEXT_TABLE = new Font(I18n.key("tools.text.font"), Font.PLAIN, 12);
//     public static Font TEXT_BUTTON = new Font(I18n.key("tools.text.font"), Font.BOLD, 14);
// }


import com.github.abel533.Code;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
package com.github.abel533.component;



/**
 * 解决切换输入法导致白屏问题<br>
 * 参考：http://stackoverflow.com/questions/14374111/input-method-removes-transparent-effect-from-jframe-in-swing
 *
 * @author liuzh
 */
public class JTextF extends JTextField {

    private static final long serialVersionUID = 1L;
    private BufferedImage buffer = null;

    public JTextF() {
        super();
// Path: DBMetadata-swing/src/main/java/com/github/abel533/Code.java
// public class Code {
//     public static Font TEXT_MSG = new Font("Monospaced", Font.PLAIN, 10);
//     public static Font TEXT_FONT = new Font(I18n.key("tools.text.font"), Font.PLAIN, 14);
//     public static Font TEXT_TABLE = new Font(I18n.key("tools.text.font"), Font.PLAIN, 12);
//     public static Font TEXT_BUTTON = new Font(I18n.key("tools.text.font"), Font.BOLD, 14);
// }


// Path: DBMetadata-swing/src/main/java/com/github/abel533/component/JTextF.java
import com.github.abel533.Code;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;

package com.github.abel533.component;



/**
 * 解决切换输入法导致白屏问题<br>
 * 参考：http://stackoverflow.com/questions/14374111/input-method-removes-transparent-effect-from-jframe-in-swing
 *
 * @author liuzh
 */
public class JTextF extends JTextField {

    private static final long serialVersionUID = 1L;
    private BufferedImage buffer = null;

    public JTextF() {
        super();
        setFont(Code.TEXT_FONT);