version 1.33, 2004/03/23 11:57:06
|
version 1.34, 2004/04/05 10:14:01
|
Line 1083 public class FM2SQL extends JFrame imple
|
Line 1083 public class FM2SQL extends JFrame imple
|
} |
} |
public boolean showTable(int list) |
public boolean showTable(int list) |
{ |
{ |
ProgressDialog dialog = new ProgressDialog(fm); |
ProgressDialog dialog = new ProgressDialog(fm,bean); |
dialog.setTitle("Preparing tables to be displayed"); |
dialog.setTitle("Preparing tables to be displayed"); |
dialog.thread = Thread.currentThread(); |
dialog.thread = Thread.currentThread(); |
dialog.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
dialog.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); |
Line 1486 public class FM2SQL extends JFrame imple
|
Line 1486 public class FM2SQL extends JFrame imple
|
JProgressBar progress = new JProgressBar(); |
JProgressBar progress = new JProgressBar(); |
JButton cancel = new JButton("Cancel"); |
JButton cancel = new JButton("Cancel"); |
Thread thread; |
Thread thread; |
public ProgressDialog(JFrame frame) |
DBBean bean; |
|
public ProgressDialog(JFrame frame,DBBean bean) |
{ |
{ |
super(frame); |
super(frame); |
|
this.bean = bean; |
|
|
content = new JPanel(true); |
content = new JPanel(true); |
//content.setBorder(BorderFactory.createRaisedBevelBorder()); |
//content.setBorder(BorderFactory.createRaisedBevelBorder()); |
content.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS)); |
content.setLayout(new BoxLayout(content, BoxLayout.Y_AXIS)); |
Line 1523 public class FM2SQL extends JFrame imple
|
Line 1526 public class FM2SQL extends JFrame imple
|
fmInstance.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); |
fmInstance.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); |
fmInstance.setEnabled(true); |
fmInstance.setEnabled(true); |
setVisible(false); |
setVisible(false); |
|
try |
|
{ |
|
ProgressDialog.this.bean.getConnection().close(); |
|
} catch (SQLException e1) |
|
{ |
|
// TODO Auto-generated catch block |
|
e1.printStackTrace(); |
|
} catch (Exception e1) |
|
{ |
|
// TODO Auto-generated catch block |
|
e1.printStackTrace(); |
|
} |
thread.stop(); |
thread.stop(); |
} |
} |
}); |
}); |