Eight Years of Service
Posts: 1,871
Threads: 93
how to save a text and don't remove after reup a program. 07-31-2016, 12:01 PM
#1
In The Name Of Allah
Salam Alekum
guys i maked tools.
I havd jtexField and and command.
I wany when i type any think jtextfield and i click on the command, save the text. When i close a program and i up it show me text in a textfield i mean don'r remove a text.
I hope you undetstanded me .
Die But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
![[Image: p_237m2jx1.png]](http://c.top4top.net/p_237m2jx1.png)
Click for Free VPN
•
Twelve Years of Service
Posts: 3,138
Threads: 99
RE: how to save a text and don't remove after reup a program. 07-31-2016, 12:05 PM
#2
All you have to do is to read that text file when your program starts. Read the file and put the contents into the text box
•
Eight Years of Service
Posts: 1,871
Threads: 93
RE: how to save a text and don't remove after reup a program. 07-31-2016, 12:12 PM
#3
when i up a program i type for eg"Mr.Kurd" in a textField, i want when i click on command save it and when i close it and reup it showing me "Mr.Kurd" in the.textFild.
Die But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
![[Image: p_237m2jx1.png]](http://c.top4top.net/p_237m2jx1.png)
Click for Free VPN
•
Twelve Years of Service
Posts: 3,138
Threads: 99
RE: how to save a text and don't remove after reup a program. 07-31-2016, 01:17 PM
#4
Let me clear what you want to say,
You have a TEXT BOX, and you have some text it in lets say MR. KURD, Now when I close that app and run it again, you want the textbox to have MR. KURD in it? Is that what you want?
•
Eight Years of Service
Posts: 1,871
Threads: 93
RE: how to save a text and don't remove after reup a program. 07-31-2016, 01:18 PM
#5
Yes Yes, You Are Really Really clever.
Die But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
![[Image: p_237m2jx1.png]](http://c.top4top.net/p_237m2jx1.png)
Click for Free VPN
•
Eight Years of Service
Posts: 1,871
Threads: 93
RE: how to save a text and don't remove after reup a program. 07-31-2016, 01:30 PM
#7
let's Say when i up a program nothink in TextBox, But i type Mr.Kurd and when i click save command save a Text for me & i wan't when i close it and reup it textBox content Mr.Kurd.
Die But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
![[Image: p_237m2jx1.png]](http://c.top4top.net/p_237m2jx1.png)
Click for Free VPN
•
Twelve Years of Service
Posts: 3,138
Threads: 99
RE: how to save a text and don't remove after reup a program. 07-31-2016, 01:33 PM
#8
Create a function that would read the text file, now run that function when your program has initialized. You can put that function in the constructor of your application.
•
Eight Years of Service
Posts: 1,871
Threads: 93
RE: how to save a text and don't remove after reup a program. 07-31-2016, 01:35 PM
#9
Can write a code. Sorry i tired you.
i have new question how i use java with web service i :
GET
POST
(This post was last modified: 07-31-2016, 01:38 PM by Mr.Kurd.)
Die But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
![[Image: p_237m2jx1.png]](http://c.top4top.net/p_237m2jx1.png)
Click for Free VPN
•