Pooja Oza

Greenhorn
+ Follow
since Apr 01, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pooja Oza

Thanks everyone, i will now concentrate on using the DOM parser and try to do my program. Thank you all once again for your help.
I have an xml file having data, and want to add more to that file when a button is pressed in swing frame-

the xml file is like this -

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<FDTracker>
<FDdetails>
<fdnumber>8</fdnumber>
<bankname>BOA</bankname>
<beneficiaryname>test</beneficiaryname>
<rateofinterest>5</rateofinterest>
<amount>400</amount>
<maturityamount>6000</maturityamount>
</FDdetails>
// want to insert data here
<FDdetails>
.
.
.
</FDdetails>

</FDTracker>


how can i do this because every time the button is clicked, i want to store the data from the textfields of the window to an xml file , but i also want the previous data and the current one too.
I want to write the new data in between the <FDdetails> tag each time i click the button.

Can someone please help me with this? Completely exhausted searching on net for tutorials but no success.

I would really appreciate your help.




Thanks,
Pooja
hi,

I have two files - View.java and Search.java. The file View.java has four fields each having a combo box, so the user has to select any option from the drop down list from any combo box and click the search button. That click event displays all the records into a table(on the next window - i.e. Search.java) based on the selection of the values in the combo box on the previous page(i.e. View.java), also i want to add a check box column in the table, and if the user checks the check box and clicks open button on that page, it should consider all the values in that row and display it when open it in the edit mode(i.e a window - Edit.java). Can someone help me with this how can I do it? I am really stuck here.


Thanks,

Pooja
11 years ago
Thanks Peter and Marc. Luckily I too figured out a way to do this task. I simply did this with the following code- you can have a look.
Thanks once again to both of you, as you both guided me so that I was able to know something about XML atleast, but ya this DOM and Transformer stuff, i really need to focus on as i am new to all this. You both have been of great help!!! Thanks once again.



11 years ago
Thanks Marc for pointing that button listener thing. I made that changes to my code, then how can i proceed further? Do you have any idea?

I have four text fields, the user enters his details, then when he clicks the submit button, the details should be stored in an xml file, so how can i do that? and also in case i want to retrieve data from xml file then what can be done? I am completely blank in xml so do not know what to do? can you give me some guidance?

Thanks,
Pooja
11 years ago
Thanks Marc and Peter.

Peter as you said, if this is my code, and i want to store the textfields mentioned in the code below in an xml file when a button is clicked, so how can i do that? can you please guide me with this.......

11 years ago
hi,

can some one help me how can i save the values of the text fields from my swing desktop application to an XML file dynamically on the click of a submit button in a window?

Please i really do not know what to do, so please help me friends.............


Thanks,

pooja
11 years ago
Can someone please help me with this code? I cannot run this program. I am getting the error - "Cannot find symbol
symbol : method setOpaque(boolean)
method : class Login
newContentPane.setOpaque(true); "
^


12 years ago
Hey friends,

Can someone please help me with this problem -

I m trying to save a Java program in notepad in the directory C:\Program Files\Java\jdk1.6.0_20\bin\AddTwoInt.java. It gives me this message in a pop-up -



C:\Program Files\Java\jdk1.6.0_20\bin\AddTwoInt.java
You do not have permission to save in this location.
Contact administrator to obtain permission.

Would you like to Save it in the Documents folder instead?


I just don't understand where i myself is the administrator how cant it allow me to save a java program?

Please help me out with it. I really need your help friends!!!

12 years ago
Thanks Ken and Bob, i really understood those programs now.......
thanks a lot
Hi Alfred,

Thanks for your help.

But i still do not get that how come the output of the Chess and the Chicks problems have the output options like : 4 4 2 2 or whatever..... where and how do these numbers come from? Can you please clear that if possible.
Can some one help me understand the output of the following programs ..... The examples are from SCJP 6 by K&B book, in the self test of multithreading chapter...












I m stuck in these few questions, if some one can help me it would be great...... Thanks