Jody Vandy

Greenhorn
+ Follow
since Nov 13, 2003
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 Jody Vandy

Hi-
Thanks for the reply. I'm fairly new to swing so there are a couple things about your code that I need clarification on. I get the general idea of what your trying to do but I'm confused about the code in keyPressedActions. ValueLabel? getPreviousTarget? getNextTarget? IPropertyEditor?
Can you please elaborate?
Thanks!
15 years ago
I have two forms in my frame, each with their own submit button. When a user presses the return key on their keyboard, I would like to doCick() on the button which the user last made changes to the form fields for that respective button. Any ideas?
I think I need to do something like this but I'm not sure how: if a text field is modified, that form's button comes to focus. Then, when enter is pressed, the button which is in focus is clicked.
Thanks!
15 years ago
I am trying to print out a message while my page is doing a lengthy process. I've tries many method, all of which will not work because I can't flush the buffer.
Ex:
<html><head>
<title>Please Wait...</title>
</head><body>
<br><br><br>
<center>Loading data.<br>
Please wait.</center>
<%
response.flushBuffer();
int x = 100000;
while(x>0){
x--;
}
%>
Finished with page.
</BODY>
</HTML>
If I understand flushBuffer() correctly, then the "please wait" message should print immediately but it doesn't. The entire page gets loaded after the while loop terminates.

BTW- I'm running it on a tomcat4 server.
15 years ago
JSP