Click to See Complete Forum and Search --> : Urgent: Displaying the result from a database query.


On Edge
July 28th, 1999, 06:27 AM
Hello. I'm using Visual J++ from Microsoft and I'm trying to do a very trivial thing. However, the fact that I can't do it is starting to annoy me very much!
The thing is that I'd like to display the result from a simple SQL query on screen using something like the ListBox. The problem with the list box is that I'm having a hard time defining columns in it like you can in C++. There you can define how wide each column is and you can insert a string with the "\t" sign in between fields.
I'd rather not use ActiveX components but if I must then I must. The UI is already Windows dependent so what I'm looking for is a control in WFC prefferably which allows me to display something like this.
I'm using a type 4 JDBC driver and the whole thing is pure Java except from the UI. This is the reason I cannot use the DataGrid control, I don't have an ADO object to go with it.
Here is an example of what I'd like to do:

ID Name Type
-----------------------------------------
AC2 Jeff Cannibal
AE2 John Vegetarian
CW3 Jennifer Meat-eater



and then I'd like to select one row and, for example, double click it to get more information. Is there any way to do this???

Help!

An elephant is a mouse with an operating system