Вход на сайт
Java
94 просмотров
Перейти к просмотру всей ветки
в ответ pavel-hh 30.03.04 04:11
Spasibo, no tak ne poniatno(( Poprobuiu podrobnee:
Sozdala TextArea:
Container cp = getContentPane(,0);
JTextArea ta = new JTextArea(20, 30,0);
cp.add(new JScrollPane(ta),0);
Teper' nado Text, kotoryi ia tuda vpechataiu, perenesti na mesto ???:
String text = ???;
FileWriter fr;
try
{
fr = new FileWriter("Datei.txt",0);
fr.write(text,0);
fr.close(,0);
......
chtoby on u menia sohranilsia v File "Datei.txt"...
Sozdala TextArea:
Container cp = getContentPane(,0);
JTextArea ta = new JTextArea(20, 30,0);
cp.add(new JScrollPane(ta),0);
Teper' nado Text, kotoryi ia tuda vpechataiu, perenesti na mesto ???:
String text = ???;
FileWriter fr;
try
{
fr = new FileWriter("Datei.txt",0);
fr.write(text,0);
fr.close(,0);
......
chtoby on u menia sohranilsia v File "Datei.txt"...