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!

Updating JFrame content

843805Jan 21 2007 — edited Jan 23 2007
I'm developing a Poker game.
I have done the GUI for the table, card, etc...
But now I don't really know how/where to put things like
- Request the system to deal cards
- Update the table GUI after each time a turn is dealt (hole cards, flop, turn, river, showdown)

My table GUI is in this form, I don't put my TableGUI code up here as it is too long.
TableGUI {
//Set up the table, display the table and actions panel (check, fold, bet, etc..)
}
actionPerformed{
}
   private static void createAndShowGUI() {
        //Make sure we have nice window decorations.
        JFrame.setDefaultLookAndFeelDecorated(true);
         TableGUI frame = new TableGUI();
   }

   public static void main(String[] args) {
         //Schedule a job for the event-dispatching thread:
        //creating and showing this application's GUI.
      javax.swing.SwingUtilities.invokeLater(new Runnable() {
          public void run() {
             createAndShowGUI();
          }
      });
}
Could some one tell me how/where to put those above?
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2007
Added on Jan 21 2007
9 comments
58 views