JTextArea « JTextField « Java Swing Q&A





1. JTextArea and JTextField internal padding on text    stackoverflow.com

I would like to increase the spacing / padding / insets for the JTextField and JTextArea. Effectively increase the spacing between the two read line on the ...

2. Embedding JTextArea into a JMenuItem    stackoverflow.com

We are building our own Web Browser in Java. It doesn't have to be anything too complicated, we just want several things to do so we could distinguish our project from ...

3. Swing - how to mix JTextField and JTextAreas and have same visual appearance?    stackoverflow.com

I am using miglayout to create a form in which there are JTextFields (short input answers) as well as JTextAreas (Longer answers). The problem is twofold.

  1. The border placed ...

4. Create a matrix using JTextFields or JTextAreas    stackoverflow.com

I have to do make a program that has to be able to show a matrix in form of Jtextfields or Jtextareas, so that the user can write in them(a number ...

5. Java: Is there any method in JTextPane that does the same thing as append() in JTextArea?    stackoverflow.com

The program lets the user type in a command in a textfield then whatever they typed will show in the text area. If it is keywords such as yes it will ...

6. Include JTextArea or JTextPane in JSP?    stackoverflow.com

I want to embed a text are to show the log information of my web application in my jsp file. I am totally new to JSP. I even don't know, which ...

7. automatic dynamic expansion / contraction of JTextArea in Java    stackoverflow.com

I start off by creating a JTextArea of a specific size. The user can add text within it but it will get cut off if it becomes too long (vertically or ...

8. Getting information from a text field to use it in a text area in other Class    stackoverflow.com

I've got one class that has two text fields in it: "name" and "surname". I need the information that someone typed in there for a text area in another class. So ...

9. Text not Setting in JTextArea/Field    stackoverflow.com

I am having problems setting some text in a JTextArea and a JTextField...I am a little confused because I have set text in them before, as a matter of fact I ...





10. JTextField/JTextArea    coderanch.com

um well let me put it this way. Lets say now I have a computer player. We each get a chance to answer a question, but it only allows the computer to do so and not wait for my answer, then moves on to the next question and not wait for my input again and again until the game is over ...

11. JButton, JTextArea, and JTextField    coderanch.com

13. can't I take a single array for JTextField and JTextArea as both are derived from JTextComponent    coderanch.com

public class Bak extends JFrame implements ActionListener { // more code JTextComponent jText[]; // more code public static void main(String args[]) throws ApplicationException { Bak q = new Bak(); q.setVisible(true); q.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public Bak() throws ApplicationException { //more code jText = new JTextField[quest.size()]; if (vo.getQuesResponseType().equals("single-line")) { jText[j] = new javax.swing.JTextField(); jText[j].setBounds(xCord + 300, yCord + 60, 100, 20); add(jText[j]); yCord = ...

14. How to copy from 4 JTextFields to 1 JTextArea    coderanch.com

Thanks for al the help! But now my program is advancing further, and getting more complex. now i have a JTable 1button and 1 JTextArea. and the same problem as before. My question is how can i get the button to put the text from the JTable to the JTextArea. here is the new javacode! ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- package Telling01; import java.awt.BorderLayout; import ...

15. Format to display Filepath in JTextArea/JTextField/ JLabel    coderanch.com

First off, you need to firm up those specifications. 1. What constitutes the 'right part' (the last slash and everything that follows it? a fixed number of characters?) 2. What constitutes the 'left part' (as many characters as can be accommodated? up to the last slash that can be accommodated?) 3. Depending on the first two specs, what's the fallback if ...

16. Displaying text in a JTextArea when a JtextField is Selected    java-forums.org

What do you mean by "when a JTextField is selected"? Do you mean when it gains focus? When a portion of the text is highlighted? Do you have a small compilable program that encapsulates your problem? If not, I would suggest that you create this and post it here, and we can use it as starting off point for discussion.





17. JTextField & JTextArea won't receive focus in a modal JDialog window    java-forums.org

Hi, I have put some components including a JTextField and JTextArea in a sub-class of JDialog. The problem is that the text field and text area components won't receive focus although they are set to be focusable, enabled and editable. Setting focus explicity through component.requestFocusInWindow() won't work either. I am not able to replicate this problem through a small test program; ...

18. JTextArea--- handler---text fit on Textbox    forums.oracle.com

19. JTextField and JTextArea    forums.oracle.com