Edit « JTextArea « Java Swing Q&A





1. JTextPane avoid blinking    stackoverflow.com

I have a JTextArea and I want to disable blinking from it. I have tryied to set focusable to false, but it doesn't seem to work. I also set editable to ...

2. JTextArea making non editable    coderanch.com

3. TextArea doesn't allow changing backgroundColor and font when non-editable    coderanch.com

Could you paste some code on how you are trying to change the font and the background? this works for me (jdk 1.4.1). import java.awt.*; import javax.swing.*; public class TextAreaTest { public static void main(String[] args) { final JFrame f = new JFrame("Text Area Test"); Container content = f.getContentPane(); content.setLayout(new BorderLayout()); final JTextArea area = new JTextArea(); area.setFont(new Font("helvetica", Font.BOLD, 14)); ...

4. JTextArea on PopUp -JTextArea isn't editable    java-forums.org

I am having an issue with putting a JTextArea on a popup panel. When a button is pressed, a popup should appear with a JTextArea on it. This area should be editable (e.g the user should be able to input text into it). There is a button on the pop up which, when pressed, should make the popup disapear (and will ...