Hi, Ill explain what im stuck on,
I have a class that extends JFrame, within that, i have set up JPanel where within that i have four JComboBoxes, I am to enable this JPanel and its JComboBoxes at the end of a method
the code for that method is:
private void tableNumberJComboBoxItemStateChanged() { // load data for table try { // get data for table myResultSet = myStatement.executeQuery("SELECT * FROM" + "restauranttables WHERE tableNumber = " + Integer.parseInt( selectedTableNumber)); //If myResultSet is not empty if(myResultSet.next() == true) { waiterNameJTextField.setText(myResultSet.getString("Waiter Name")); subtotal = myResultSet.getDouble("Subtotal"); displayTotal(subtotal); } // close myResultSet myResultSet.close(); } //SQLException catched catch (SQLException exception) { exception.printStackTrace(); } // end catch SQLException } // end of method tableNumberJComboBoxItemStateChanged
I am not sure how to enable this JPanel? I have another Jpanel to Disable but one question at a time i suppose.