dcsimg
JDBList refreshing??
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Jeff_Cham
Posted On:   Monday, August 11, 2003 08:20 AM

Hi,I have written a short application to retrieve data and display them to a jdblist. my problem is, when the application starts up initially, my data looks fine and jdbstatuslabel indicated correctly. But when i try to click on anything on the list, it gets mess up and jdbstatus doesnt show anything. my code is as follow database1.setConnection(new ConnectionDescriptor("jdbc:mysql://localhost/isp", "icetech", "isp392", false, "com.mysql.jdbc.Driver")); dBDisposeMonitor1.setDataAwareComponentContainer(this); jdbStatusLabel1.setBounds(new Rectangle(179, 320, 87, 25)); jdbList1.setModel(dBListModel1); jdbList1.setColumnNa   More>>

Hi,I have written a short application to retrieve data and display them to a jdblist. my problem is, when the application starts up initially, my data looks fine and jdbstatuslabel indicated correctly. But when i try to click on anything on the list, it gets mess up and jdbstatus doesnt show anything. my code is as follow






database1.setConnection(new ConnectionDescriptor("jdbc:mysql://localhost/isp", "icetech", "isp392", false, "com.mysql.jdbc.Driver"));

dBDisposeMonitor1.setDataAwareComponentContainer(this);


jdbStatusLabel1.setBounds(new Rectangle(179, 320, 87, 25));


jdbList1.setModel(dBListModel1);

jdbList1.setColumnName("name");

jdbList1.setDataSet(queryDataSet1);

jdbList1.setBounds(new Rectangle(27, 69, 119, 214));


queryDataSet1.setQuery(new QueryDescriptor(database1, "SELECT name from Scheduler;", null, true, Load.ALL));

dBListModel1.setColumnName("name");

dBListModel1.setDataSet(queryDataSet1);

contentPane.setBackground(SystemColor.control);

contentPane.add(jdbStatusLabel1, null);

contentPane.add(jdbList1, null);



I have only started using JBuilder recently so any help will be much appreciated. is there any websites with JBuilder examples/tutorials on data access/dbswing? I am using JBuilder 9 Personal. Thank You    <<Less
About | Sitemap | Contact