Win a copy of Head First Android this week in the Android forum!

Neh Agarwal

Greenhorn
+ Follow
since Feb 27, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Neh Agarwal

It is sort of a requirement for me to use java to do it, and I have reached a place where I am able to change the values and delete the unwanted tag, but it is not saving it back to the xml file. Please help me how to save the xml file.
I know little about DOM, I was trying to use DOM for this, but am stuck, please help!
hello,

I have a xml file of the format:


For each product I have to delete the element define with attribute name as LogRootPath, LogGroupPath and LogPath, and it has to be replaced by some other element like, <define name="Path1" value="/root/log">, etc.

Can you please help me do that.
Thanks,
Neha


Hi,

I have installed eclipse but I don't know how should I add the exsisting code that I have to it.

The only menu option that I find is to create a new project, which is not what I want to do.

Can you please help.

Regards,
Neha
Hi,

I am trying to use some IDE for JSP, and am new with it, got to know about eclipse.

I have code of some project and I need to make some changes to it, please suggest which is a good IDE for JSP and also how to create my exsisting project with it.

Please Help!

Thanks,
Neha
Hi,

How will we use ComponentShown method in this case to not allow the user to resize the JFileChooser?

The code provided above creates problem sometimes if the user opens the chooser n closes it several times!

Please Advice!

Neha
12 years ago
Thanks a lot, it works perfectly
12 years ago
I need to validate product version entered by the user. The allowed pattern is any alphanumeric and a dot, i.e allowed values are:
1
1as.1dfd
11.11.hjh etc.

I am using the pattern as ^(\\w+.?\\w+)+$
The only problem with the ablove pattern is if the user gives only 1 digit or 1 letter, it fails to be matched

Can you please suggest a valid pattern.

Thanks, Please Help!
12 years ago
from the same methind itself, I am calling setVisible(true);
12 years ago
This is what I have done:

int p=frame.getwidth();
buttonBox.add(Box.createHorizontalStrut((p/2)-40);
buttonBox.add(closeButton);
buttonPanel.add(buttonBox);
frame.getContentPane().add(buttonPanel,new GridBagConstraints());


I don't know where did I mess up, but the frame is not launching at all

Please Help!
12 years ago
Excellent!

works perfectly fine!

Thanks a ton!
12 years ago
Doesn't work that way,

I am confused, as how should I go about it,

it works fine when user clicks on max n min button but when resizes by dragging, it does not work

Can you please help!
12 years ago
Hi,

I am creating a JFileChooser on click of a button, which is resizable. I don't want the user to be able to resie it.

How can I do that?

Please Help!

12 years ago
Hi,

I have a JFrame which user can resize by clicking on the arrow on the corner. In that Frame I have added a button in the center using

buttonbox.add(Box.createHorizontalStrut((frame.getWidth()/2)-40));

when the user clicks on maximize or restore I am doing the same as above, but when the user resizes the frame by dragging the arrow, how do I make sure that the button is still in the center of the Frame?

Please Help!
12 years ago