在 Netbeans 调试器中,当我在前几行代码上放置一个断点时,它工作正常。但是,“尝试”下方的任何内容应用程序都会挂起,突出显示不会变为绿色并且要进入的选项等会变灰。 (布尔'BigList'也是真的,所以这不是问题)。
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
//process declines
setCursor(new Cursor(Cursor.WAIT_CURSOR));
JFrame f;
f = new JFrame("Frame");
final JDialog dialog = new JDialog(f, true); // modal
dialog.setUndecorated(true);
JProgressBar bar = new JProgressBar();
bar.setIndeterminate(true);
bar.setStringPainted(true);
bar.setString("Please wait");
dialog.setLocation(100, 100);
dialog.add(bar);
dialog.pack();
dialog.setVisible(true);
try {
String jdbcURL = "jdbc:mysql://1.1.1.1:3306/common";
String username = "root";
String password = "pass";
Class.forName("com.mysql.jdbc.Driver");
Connection connection = null;
connection = DriverManager.getConnection(jdbcURL, username, password);
if (bigList) {