473,382 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to get the contents in JTextArea???

Hi,

Can u please help in getting the contents in the JTextArea and writing tat into a file and also writing the contents of the file in to JTextArea????

can u give me the class or function name with an example code....
Mar 31 '07 #1
2 2723
JosAH
11,448 Expert 8TB
Hi,

Can u please help in getting the contents in the JTextArea and writing tat into a file and also writing the contents of the file in to JTextArea????

can u give me the class or function name with an example code....
Note that the JTextArea inherits read() and write() methods from the JTextComponent
class. Check the relevant API docs.

kind regards,

Jos
Mar 31 '07 #2
r035198x
13,262 8TB
Hi,

Can u please help in getting the contents in the JTextArea and writing tat into a file and also writing the contents of the file in to JTextArea????

can u give me the class or function name with an example code....
Checking the api will show you how to use getText, setText and append methods
Apr 2 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: - ions | last post by:
Hello, i am relatively new to programming, Java being the first language im learning. At the moment im having trouble changing the setEnable value of a button, relative to the state of a JTextArea,...
1
by: Chris Williams | last post by:
I haven't done any Java programming for a good long bit, so this is probably something really silly but anyways, can anyone tell me why my JTextArea is not appearing when I run this? public...
1
by: Jan Gregor | last post by:
Hello I want to redirect output of jython's functions print and println to JTextArea component. Is it possible ? I tried this (swingConsole.textArea is instance): In my class ...
1
by: Colibasi | last post by:
I would like to have a JTextArea with a background white and text should be readonly. The way I tried is something like this: JTextArea text = new JTextArea(); text.setEditable(false);...
2
by: domel | last post by:
How to display a text fragment in different color or in a different font then other part of text in JTextArea ?? thanks :)
3
by: olafatia | last post by:
import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import java.io.File; import java.util.*; /* <Applet Code="MyPaint.class" width=400 height=400>...
3
by: gaya3 | last post by:
Hi, can anyone please say me how to add <html> tags inside JTextarea? Thanks in Advance. -Thanks & Regards, Hamsa
3
by: MiziaQ | last post by:
is there a way to position the jtextarea on the content pane in a certain location ?
1
by: chanshaw | last post by:
Ok my problem is that when it loads the JTextArea, it does not show the full component's width and height. I've tried specifying it with setrow, setcolumn, setprefferedsize, all of that. It does...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.