Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jeopardy Java Frames

843806Mar 7 2008 — edited Mar 13 2008
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2008
Added on Mar 7 2008
9 comments
1,487 views