Most voted "jtextarea" questions
Jtextarea is a multi-line text component, which displays plain text. Use this tag only if the problem is specific to this component.
Learn more…17 questions
Sort by count of
-
5
votes1
answer1084
viewsRedirect System.out.println output to Jtextarea
I’m having trouble making this redirect, let’s explain. I own a class called Engine.java, this class is responsible for doing my processing and in it has all the System.out.prints process, the…
-
5
votes1
answer2234
viewsTo limit and display the number of characters in a Jtextarea
I have a supplier registration window, and I’d like to insert a jTextArea so that the user has the option to enter some observation about the supplier. The idea is that, limit the amount of…
-
4
votes1
answer482
viewsChange text of a Jtextarea at runtime
Good morning to all, I have a backup routine that should write the result in a JTextArea, at runtime. The copy works, the problem is that the window containing the JTextArea gets stuck and does not…
-
3
votes1
answer143
viewsHow to call the value of a variable?
How can I call the value of a function variable into another function? I’m using the jPanel, where I will add a text with: jTextArea.append("AREA = " + /*AQUI*/); Where it says HERE I wanted to put…
-
3
votes2
answers136
viewsRelease only the last line for writing
How do I allow the user to write only in the last line of a JTextArea, that is, without being able to make modifications on the upper lines? (as in CMD or Terminal, for example).
-
3
votes1
answer192
viewsHow to use setNextFocusableComponent in a Jtextarea
I used setNextFocusableComponent in a JTextArea, but it doesn’t work because the TAB works as a "space" inside the JTextArea, how to solve this ??
-
2
votes1
answer1026
viewsCentering text on a Jtextarea or Jtextpane
In this image the text is not centered, it is far above the JTextArea: And I would also like the text to begin in the middle of JTextArea and was adjusting as I was writing. What method can I use to…
-
2
votes2
answers385
viewsDisplay Jcombobox object data in a Jtextarea from the selected item
I wanted to show the data of a customer who is on a combobox inside a Jtextarea, as in the following image: The problem is that only the information of "Igo Brasil" is shown, when I try to show the…
-
1
votes1
answer2024
viewsDisplay text in Jframe
I would like to know how to assemble a text in my Java class, but this text would have the contents of a record of my database. I’ve done more or less that using JLabel but it creates one-line…
-
1
votes1
answer367
viewsDoubt about jTextArea.append (add the value of the area variable to Borderlayout) - Java
I have a problem with a line of code, this line that is underlined in the image, gives me an error that says that the coordinates X1, Y1, x2, Y2 have to be static, it turns out that this application…
-
1
votes1
answer303
viewsLike putting a Jscrollpane in a Jtextarea?
I’m trying to create a project where I print several sentences in one JTextArea, but for that, I need to include a JScrollPane. I looked at some examples on the internet but none is working. public…
-
0
votes1
answer445
viewsChange the background color of a JTEXTAREA text
I am a beginner in Java and I am trying to create a function that changes the background of words, I took a print of the example as I would like it to be. What is expected is for a table to be…
-
0
votes1
answer264
viewsHow to update text in jTextArea?
How do I update the jTextArea? I try to update it with the click of a button, but I can’t. I want to add new texts along with the previous ones, but so far without success. I performed the…
-
0
votes1
answer99
viewsError while trying to implement Jtextarea in Jtable
I’m trying to use this JTextArea in some columns of mine JTable, but something’s going wrong. I know it’s wrong, but I’m using DefaultTableModel. public class TextAreaCellRenderer extends JTextArea…
-
0
votes1
answer292
viewssetText method does not insert the text correctly within a repeat loop
I created a method that shows a loop of repetition, and inside it I keep setting the product of the variable by the counter, like a table and such. Only when it arrives in Textset, it does not show…
-
-1
votes1
answer94
viewsOrganize items within Jtexarea
How do I pick up items from a combobox and place in a jTextArea, one below the other? Follows my code: public class PW_XML extends javax.swing.JFrame { int Grade; int Frequencia; int AttackRN; int…
-
-1
votes2
answers40
viewsManual String Breaking in JAVA
Gentlemen, I am trying to do a routine that receives a certain text and a word from the user, after checking if within the text there is a word equal to what was requested. My attempt was to…
java comparison string-concatenation characters jtextareaasked 3 years, 9 months ago Gabriel Galdino 3