/*
 * Copyright 2014 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Eclipse Public License version 1.0, available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.jboss.forge.plugin.idea.ui.component;

import com.intellij.ui.components.JBTextField;
import org.jboss.forge.addon.ui.hints.InputType;

import javax.swing.text.JTextComponent;

public class TextBoxComponentBuilder extends AbstractTextComponentBuilder
{
    @Override
    protected String getSupportedInputType()
    {
        return InputType.TEXTBOX;
    }

    @Override
    protected JTextComponent createTextComponent()
    {
        return new JBTextField();
    }
}

@@ -229,55 +229,8 @@
 t;%0A%0A
-import com.intellij.ui.components.JBTextField;%0A
 impo
@@ -275,16 +275,38 @@
 tType;%0A%0A
+import javax.swing.*;%0A
 import j
@@ -611,17 +611,16 @@
 rn new J
-B
 TextFiel

Use JTextField in TextComponentBuilder