Questions tagged as 'jtextarea'

1
answer

Redirect output from System.out.println to JTextArea

I'm having trouble making this redirect, let's explain. I have a class called Engine.java , this class is responsible for doing my processing and it has all System.out.prints of the process, the problem is that now I created a windo...
asked by 16.02.2016 / 20:46
1
answer

How to limit and display the number of characters in a JTextArea

I have a supplier registration window, and I would like to enter a jTextArea so that the user has the option to enter any comments about the supplier. The idea is to limit the number of characters to be typed and show the amount...
asked by 14.07.2016 / 20:15
1
answer

Change text in a JTextArea at runtime

Good morning everyone, I have a backup routine that should write the result to a JTextArea , at runtime. The copy works, the problem is that the window containing JTextArea gets stuck and does not append the text every time a...
asked by 10.11.2015 / 13:22
2
answers

Release only the last line for writing

How do I allow the user to be able to write only the last line of a JTextArea , that is, without being able to make modifications in the upper rows? (such as CMD or Terminal, for example).     
asked by 30.06.2016 / 03:02
1
answer

How to use setNextFocusableComponent in a JTextArea

I used setNextFocusableComponent in JTextArea , but it does not work because TAB works as a "space" within JTextArea , how to solve it?     
asked by 19.12.2016 / 04:29
1
answer

How to call the value of a variable?

How can I call the value of a variable of a function, into another function? I'm using jPanel , where I'm going to add text with: jTextArea.append("AREA = " + /*AQUI*/); Where it says HERE I wanted to put the value of a variable t...
asked by 27.12.2015 / 19:45
2
answers

Display JCombobox object data in a JTextArea from the selected item

I wanted to show data from a client that is in a combobox inside a JTextArea, as in the following image: Theproblemisthatonlytheinformationof"Igo Brasil" is shown, when I try to show the information of another client, this happens: Infor...
asked by 25.04.2016 / 02:46
1
answer

How to center the text in a JTextArea or JTextPane

In this image the text is not centered, it is much higher than JTextArea : And I would also like the text to start in the middle of JTextArea and adjust as I write. What method can I use to fix this?     
asked by 01.08.2015 / 05:45
1
answer

Show text in JFrame

I would like to know how I can put text in my Java class, but this text would have the contents of a record in my database. I've done more or less this using JLabel but it creates one-line labels and would like to create multi-line runnin...
asked by 13.11.2016 / 22:38
1
answer

As per a JScrollPane in a JTextArea?

I'm trying to create a project where I print multiple phrases in a JTextArea , but for this, I need to include a JScrollPane . I looked at some examples on the internet but none are working. public class Projeto extends JFrame {...
asked by 22.08.2017 / 14:01