Border « JTextField « Java Swing Q&A





1. Swing JTextField how to remove the border?    stackoverflow.com

Is there anyway to remove a border in a JTextField?

txt = new JTextField();
txt.setBorder(null);   // <-- this has no effect.
I would really want it to look like a JLabel ...

2. Java Swing Borders to textfields and buttons    stackoverflow.com

I have a Swing UI which contains 6 text fields and labels for the input and 1 button and texfield to show the output. now I want to make a border ...

3. Rounded corner on JTextField and make it consistent through different PLAFs    stackoverflow.com

Hello dear fellow stackoverflow users, I got a simple hack where I get my long wanted round corners on a JTextField.
I found that I could subclass JTextField and override paintComponent(Graphics g) In that ...

4. Changing Border Color of AWT TextField    stackoverflow.com

In AWT application I need to set border color of TextField. In JTextField, I know that we do can do the following

JTextField tf = new JTextField();
tf.setBorder(BorderFactory.createLineBorder(Color.decode("#2C6791")));
But setBorder() method is not availiable in ...

5. Java Swing JtextField inset    stackoverflow.com

I am working with Netbeans GUI and I would like to add 3 pixels of space at the beginning of my jTextField : enter image description here I have tryied with ...

6. Border on an rounded JTextField?    coderanch.com

I've found this example of how to make a JTextField rounded in the corners and now I wonder if someone could help me to add an border that is also rounded? The code for the rounded textfield looks like this: public class RoundField extends JTextField { public RoundField(int cols) { super(cols); // We must be non-opaque since we won't fill all ...

7. jTextField default border color    coderanch.com

using java6 and all defaults, i've textfields and a jTextArea; as the default textarea has no border, i added one; but i cant find out what color textfield's borders use, so that i could use the same color in my textarea border. how can i find that out? TiA [ March 30, 2007: Message edited by: miguel lisboa ]

8. Textfield border problem    java-forums.org

9. JTextField border    forums.oracle.com





10. Possible to Remove Border Around JTextField?    forums.oracle.com