Questions tagged as 'jtextarea'

1
answer

Doubts about the jTextArea.append (add the value of the 'area' variable to the BorderLayout) - Java

I have a problem in a line of code, in this line that is underlined in the image, it gives me an error that says that the coordinates x1, y1, x2, y2 must be static, it happens that this application consists of drawing a rectangle with the mouse,...
asked by 27.12.2015 / 23:46
1
answer

Error when trying to implement JTextArea in JTable

I'm trying to use this JTextArea in some columns of my JTable , but it's giving something wrong. I know it's wrong, but I'm using DefaultTableModel . public class TextAreaCellRenderer extends JTextArea implements TableCellRe...
asked by 10.01.2018 / 12:48
1
answer

The setText method does not insert the text correctly inside a repeat loop

I created a method that shows a loop of repetition, and inside it I get the product of the variable set by the counter, like a table and such. But when it arrives in TextSet, it does not show the 10 textSet that was to show, but only the last...
asked by 04.03.2018 / 03:04
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

How 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 not. I want to add new texts along with the previous ones, but until then without success. I did the implementation on the terminal (System.out) and it wor...
asked by 30.04.2018 / 14:09
1
answer

Change the background color of a JTextArea [duplicate]

I'm a beginner in Java and I'm trying to create a function that changes the background of the words, I took a print of the example I'd like it to look like. The expected one is that in a table example, but the separation is by comma. If anyone...
asked by 28.04.2016 / 17:44
1
answer

Organize items within JTexArea [closed]

How do I get items from a combobox and put it in a jTextArea, one below the other? Follow my code: public class PW_XML extends javax.swing.JFrame { int Grade; int Frequencia; int AttackRN; int DistanciaFrag; int PHAttac...
asked by 13.11.2018 / 00:53