(LIST1) void button1_actionPerformed(ActionEvent e) { borland.jdbc.Driver drv = new borland.jdbc.Broker.RemoteDriver(); String[] alias_List; alias_List = null; try { alias_List = drv.getDataSourcesList("FSVR"); } catch (java.sql.SQLException ex){} for (int i = 0; i < alias_List.length; i++) listControl1.addItem(alias_List[i]); } (LIST2) //Timerイベントハンドラ(1秒毎にこのイベントが発生します) int tim = 0; void timerComp1_onTimer(TimerProviderEvent e) { tim++; //変数値のインクリメント label1.setText(Integer.toString(tim)); // 変数timの値をlabelコンポーネント // にセット } //buttonのClick void button1_actionPerformed(ActionEvent e) { timerComp1.setEnabled(true); //TimerOn try { queryDataSet1.executeQuery(); //問い合わせの実行 } catch(Exception ex){} timerComp1.setEnabled(false); //TimerOff }