File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Game Development and the fly likes Texas Hold'em Poker Game Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Game Development
Bookmark "Texas Hold Watch "Texas Hold New topic

Texas Hold'em Poker Game

Jeanlee Li

Joined: Nov 07, 2010
Posts: 1

I have implemented a Poker online game using JSP+JavaServlet+Java+MySql.

My client asked to add image fading in effect when loading the cards, so the cards are shown on the screen one by one.

My problem is the image fading-in effect is controlled using Javascript, the form is controlled uisng JSP+JavaServlet.

The Javascript and the JavaServlet can not communicate straightway. So, the form's buttons become available before the cards finish fading-in. The idea one should be after cards fade in, then the player is allowed to press a button.

Does any body have such experience? I would like to konw which the best way to do such interactive online game is.

I heard about Ajax. Do you think it is a good idea to rewrite the web application using JavaScript + Ajax + JavaServlet?

Any inputs are welcome.

Thanks in advance,

E. J. Fuhr

Joined: Aug 03, 2009
Posts: 5
grab Struts 2 NOT Struts 1. have a look at the struts2-showcase example.
it illustrates the integration of a good ajax package with the background servlet
Aba Dov

Joined: Jan 24, 2011
Posts: 6

Ajax can definitely help.
you can time the events by calling the java either after the "onComplete" event or you can use something like

your project seems fun I would thank you if you can post a link to it when it airs.

I agree. Here's the link:
subject: Texas Hold'em Poker Game
It's not a secret anymore!