I am trying to make a Jeopardy Game using Netbeans. I am a student in a school without a true programming teacher and the one I have doesn't know the latest java.
Here is the code I currently have
/** Creates new form JeopardyBoard */
public JeopardyBoard() {
initComponents();
}
/** Generated code omitted*/
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
jButton1.setText("");
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new JeopardyBoard().setVisible(true);
}
});
}
The board is set up with a 5 by 6 of buttons in the Gridbag layout with labels above each column. I want to be able to have a main board (above) and a question board that are each their own frame. I want to switch between them when the board buttons are pushed. I am going to set up an array to hold the questions and answers and may set up a way to have teams and keep track of scores. Right now the only thing I need help with is switching between boards and setting up the difference between static and non-static. Any help is appreciated.