Hi,
I want to perform a jdbc select query and populate a JComboBox with the results returned. Is this possible?
User Profile
Collapse
-
If I read my configuration file into a Properties object, how would you then use this properties object to specify a driver and connection? Can this be written as a simple line like the other methods of "Connection connection - DriverManager.g etConnection(.. ." etc or would you need to write a small method? -
JDBC connection with configuration file
Hi.
Is it possible to connect to a database using JDBC with a configuration file? I understand and can implement the alternate methods such as "Class.forName( "...."); " and "Connection connection = DriverManager. getConnection(" .....");" etc, but I am struggling to come up with a solution for a configuration file (which I have, which specifies the driver and database url.
Any tips... -
-
times in Java
Just working over some past-exam paper questions in preparation for my upcoming programing exam and I'm a little confused by the following:
"Imagine that you have written a class o produce a four-digit clock display (showing times as a 24-hour clock, for example "14:30"). List four example of (legal) times that would be useful for testing that the display works correctly."
Now this question is from... -
StringTokenizer 'legacy class'
The API specification for the Java 2 Platform Standard Edition 5.0 states that the class StringTokenizer is 'a legacy class.' What does this mean?
a.m. -
Getting graphic objects to move
I have a set of graphic objects, (g.fillOval)'s, and I would like them to move from one set of x & y coordinates to another set elsewhere.
I'm still new to Java so can anybody suggest what I can do? Some of these ovals will cease moving when they reach the new coordinates while others will continue to move.
I am aware this may be alot to explain, if anybody knows a good java game programming website that can explain... -
Creating triangles in Java
I can't for the life of me work out just how to draw a triangle in java. Using the g.fillRect etc has been easy for rectangles but I have absolutely no idea where to start with triangles. Any suggestions?
No activity results to display
Show More
Leave a comment: