Tim Glass

Greenhorn
+ Follow
since Oct 29, 2000
Merit badge: grant badges
For More
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 Tim Glass

Thanks, Arun. At least now I know it's not my code. However the knowledgebase article references SQL 7 and Access 97. I'm trying to connect to an Access 2000 database so I'm not sure it applies. As of this writing I'm downloading the Jet4.0 Service pack for Windows 2000 to see if that rectifies the situation.
Thanks again for the lead.
Tim
I tried a similar piece of code I found on Javaranch for a DNS-less connection to an access data base:
conn = DriverManager.getConnection("jdbc dbc RIVER=Microsoft Access Driver (*.mdb);DBQ=c:/java/companytime/CTData.mdb");
The code compiles fine, and when I run the program no exceptions are thrown. But I do get this message via command line:
"[Microsoft][ODBC SQL Server Driver]Optional feature not implemented"
I tried registering the database with my DNS in Windows and tried the generice connection, but got the same message. Any ideas?
Thanks,
Tim
You can view the site here : http://www.web-twg.com/rnu/rnu.html
I have an applet with a fairly complex layout and many components that are custom to allow drawing borders (using an old jdk). The applet looks fine in IE and Netscape on a pc - but many of the components are poorly "drawn" when view in IE from a Mac.
Does this have to do with L&F and each JVM / OS rendering components differently? How can I ensure that my components will look the same in ALL OS's? (So much for write once run anywhere, eh?)
Thanks for your help.
Tim Glass
TWGlass5@cs.com
TimGlass@web-twg.com
22 years ago
Is it possible to show a dialog from an applet without showing the annoying frame?
Thanks
Tim
22 years ago
Thanks, Sean. It's not driving me nuts so much as a client I'm developing for.
Thanks again.
Tim
22 years ago
Is it possible to rotate text using JDK 1.1.8 and AWT? I know JDK 1.2 has the AffineTransform which allows you to rotate text, but what about older versions?
Thanks,
Tim
22 years ago
In an applet I have created, when a user clicks on a radio button that has no associated label, a small "tick" mark shows up to the right of the radio button - but only when viewed in IE - in Netscape this does not happen. Any ideas why?
The offending applet is at: http://www.web-twg.com/rnu/rnu.html
thanks
Tim
22 years ago
Actually, I finally figured it out...
I called paintAll() after adding the component and now it works just fine. I knew to focus on repainting the components because hitting reload in Netscape would show the component's correctly.
New question:
I have a chart, I want to draw to the chart after it's created...how do I do this?
22 years ago
If I have define the layout as a BorderLayout, and have a component at the NORTH, CENTER and SOUTH positions; then later I set those component's visibility to "false" and remove them via remove() - then add new components in their place...why does the new component in the SOUTH position not show up until I push reload on the browser?
22 years ago
Uh Oh, I thought I was headed in the right direction. Isn't a double big enough to handle 2^63? The print out on the screen matches what I get from a calculator.
23 years ago
If you use "or" boolean logic when you define an "if" statement, instead of using "else" statements, does it speed up run-time performance?
Like:
if( 2 < 4 | 2 = 5 | 2 > 0 )
{
do something
}
As opposed to:
if (2 < 4 )<br /> {<br /> do something <br /> }<br /> else if ( 2 = 5 )<br /> {<br /> do something<br /> }<br /> else if ( 2 > 0 )
{
do something
}
23 years ago
Siobhan,
Yes, before reading your posting, a possible solution hit me at about 3:30am. Luckily, today is my day off, so staying up insanely late like that wasn't a problem.
I used a for loop to iterated an index array, and then used the += to add it to the last array.
for ( i = 0 ; i < 64 ; i++ )
{
total += Double.parseDouble ( value[i] );
}
Help me out here, if you can. An integer won't hold the value of 2^63, will it? You have to do some casting in this problem, don't you. My solution works, but I'm not sure it's correct.
23 years ago
Thanks, Nick, now I don't feel like a total idiot. So, if I use an exponential method (which I found) is there a method to add all those numbers? If I understand the assignment, we have to know the total number of grains on the board. Or, because I have to know the total, should I stay away from the exponential method?
23 years ago
Yep. Boy, don't I feel stupid. For some reason I thought it was increasing exponentially, and was patting myself on the back for finding an exponential method.
Oh well, back to the drawing board.
Thanks for shedding light!
23 years ago