Priya Sri

Ranch Hand
+ Follow
since Mar 30, 2004
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 Priya Sri

Both RAD and Tomcat on same machine.

ping testpvault.abc.om - Result is ==> Request Timed out.
telnet testpvault.abc.om 80 - Result is ==> Could not open connection to the host, on port 80: Connect failed

With RAD, it works. Tomcat - Does not work !!


10 years ago
Tried with ping testpvault.abc.om - Result is ==> Request Timed out.

With telnet testpvault.abc.om 80 - Result is ==> Could not open connection to the host, on port 80: Connect failed

The same code works through RAD - using main() method.
If Firewall exists for that server testpvault.abc.om, it should not be working through RAD also right ??

10 years ago
Can you explain in detail what are the settings that i missed ?
10 years ago
Hi all,

i have deployed a war file in tomcat. The war file is supposed to contact a password vault server and give the password for my application.
But it is hanging at the place of connecting to the server ip address.
When we run the same with Run as Java application using main() from RAD/WSAD, it works perfectly and giving the password to us.
we used ipaddress 10.x.x.x in the place of testpvault.abc.com. No Working anyways.
Just hangs at the line in RED below. Not coming exception block also.



We are running tomcat on 8080 port. Do I need to do any configuration/setting in tomcat server.xml for connecting to another IP address or server ?? Please guide me.
10 years ago
Very sorry...the code there is actually like this:
excelFile = File.createTempFile("MyExcel1", ".xls",new File("C:\"));
Hi all,

I am trying to write some data to an excel using the below code. The data in MyExcel1 can be found in the variable "copy". But is not getting written to MyExcel2.xls
Please help !!



Regards,
Priya Sri
I tried with BufferedWriter as well to write newline. But that is not working with .rtf files.

Can any one help me on this.
11 years ago
I'm putting different lines in the screen and trying to convert "\n" to new line in the RTF document but i'm getting as one line .rtf document not recognizing the new line char.
I'm converting each char to byte and putting in the byte array


and using the File Output Stream i'm printing on the document.

11 years ago
Rob,

Tried this. but no change...

If you have an examples of editable Jcombobox in JTable working without hitting enter key... I searched in this site as well.. but not found useful links. please post that if you have any.

Example : Jcombobox has 3 choices. On selecting 3 rd choice, it should become editable and user should key the value. Now at this point, user move the tab or click on the mouse, the entered value should be selected in the jcombo box.

But jcombobox is taking the value only on click of enter key.

Thanks.
11 years ago
I have added this line. But it is not working.
Can you describe in detail.
11 years ago
Hi,

i have a problem using an editable JComboBox as cell editor in a JTable.

When i edit the combo and then I press the TAB or ENTER key then all works fine and the value in the TableModel is updated with the edited one,
but
if i leave the cell with the mouse
or
traverse to another cell through arrow keys
or
click on any other cell, the typed value is going off

and the value is not passed to the TableModel. Why ? Is there a way to solve this problem ?

Regards
Priya Sri
11 years ago
Hi All,

I modified the code. Its working perfectly using SwingUtilities.invokeLater as suggested by you.


Thanks you All !!!

11 years ago
I tried as you said, but syntax errors at the mentioned lines

11 years ago

Maneesh Godbole wrote:You need to wrap it like this:



Where to put this code in the code i sent ?? Need more explanation please...
11 years ago
Hi all,

I have Jcombobox in JTable. In the dropdown, on choosing "Enter Value" option, combobox is editable.

Able to enter the value on Choosing 'Enter Value' but the cursor stays after Enter Value| like this.

So, I need to press backspace and deleting that Enter Value and then only able to type the value in that.

I want to highlight 'Enter Value' So that on any key press, Enter Value will get deleted.

Below is the code. Please check it and tell me where i am going wrong. I tried with FocusListener also.. But no use.

11 years ago