I'm having issues with ActionPerformed() functionality in a JFrame. Eclipse thinks everything looks fine, and the GUI loads fine, but I'm getting the following error if I press ANY button. I've removed code for all but basic function to ensure the problem isn't in my other code.
For the...
Hi there--
I've created a bar graph, and the customer wants the series to be colored using a gradient. This is all fine and well, except that when I use gradients, my data labels show up with white boxes around them, which makes it look very tacky.
Strangely enough, if I change one of the...
Okay, we've got a winner!
By casting totalVotes (or whatever the divisor will be) as double, and/or adding '*1.0' in the divisor, it fixed the problem:
percent[j] = (votes[j] / (double) totalVotes);
percent[j] = (votes[j] / (totalVotes*1.0));
However, for others reading this, please note that...
I've scratched my head too long: anyone?
The snippet below is part of a larger program that accepts user names and scores as user input, then calculates a percentage. I've only included the relevant pieces here.
My trouble is at (line 32):
percent[j] = (votes[j] / totalVotes);
As is, the...
I've got a form which requires date entry by a user. The value entered is checked on the 'post' page to ensure its a valid date. The format entered is always MM/DD/YYYY, including a leading 0 when the month is <10 (IE 06/01/2007). This works great...
...then I also have a form for the user to...
Folks--
I have a date column and a Time column, which I would like to become a single DateTime column. Concatenating the two converts the date to a number, which doesn't really help...ideas?
Folks--
I've seen this in action a million times, but haven't figure out how to do it:
I have a form with, say, 15 fields in it. They're all text entry fields, and have the traditional HTML structure where "Submit" posts the entries to the referenced page.
For Field #7, the data entered is...
Folks--
Background: I have an Access source table that's an archive of projects. Since each project may last more than 1 month, I have a field concatonated at archive time that specifies the date for that record.
In my Crystal 9 report, I have a need to compare hours completed from one month...
This solution DID work; I made another mistake: I was calling the input as if it were a variable, while it was a querystring; plugging the code below in fixed the whole deal:
If Not CheckDate(Request.Form("datein")) Then Response.Redirect ReDir4 End If
Thanks guys!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.