I have DB2 installed on NT, and a data source SAMPLE connecting to it. I also made a JFrame that displays a split pane. On the right is a button, and left of which, a tree. I made connection to database, and try to read the result set and use the result to populate the tree nodes.
(1) the JFrame comes up for only a few seconds and automatically exits;
(2) If I comment out the section that reads the result set ( rs.getString(..) ), the JFrame stays, but if disappears after one click on it;
(3) If I comment out all the operation that attempts to connect to the database, the JFrame stays as normal. Of course there is no data, and this is not very useful.
My friend run this on his computer and everything seems fine. Could anyone tell me what could went wrong? Is it due to any wrong settings on my computer, e.g. ODBC?