Desiging GUI for Java Application
-
I am trying to design a GUI for a java application for a project I am working on. Most of the available examples and refernces are for Applets,so I am looking for some reference material for designing GUI's in Java Applications! How do I go about displaying a gif in a Java Application.. using an applet - drawImage() is used, but is not effective it would appear with an Application. The gif I am displaying is that of a blank Backgammon board. I am also trying to find out how to represent the board, or divide it up so that when the user gives their choice of where to move their chips on the board, the game will know where on the board the player is refering to. If anyone can assist me with this i would be very grateful!
-
I am trying to design a GUI for a java application for a project I am working on. Most of the available examples and refernces are for Applets,so I am looking for some reference material for designing GUI's in Java Applications! How do I go about displaying a gif in a Java Application.. using an applet - drawImage() is used, but is not effective it would appear with an Application. The gif I am displaying is that of a blank Backgammon board. I am also trying to find out how to represent the board, or divide it up so that when the user gives their choice of where to move their chips on the board, the game will know where on the board the player is refering to. If anyone can assist me with this i would be very grateful!
Developing Professional Java Applets, by K.C. Hopson and Stephen E. Ingram, ISBN 1-57521-083-5 had examples of how to display graphics with various file formats. There shouldn't be too much difference in doing this for an applet or an application. I even saw code at one time that would let you use the same source code as both an application and an applet. There should also be several examples on the web. I know I've run across quite a few discussion on graphics topics like double buffering. It shouldn't matter too much if the examples you run across are for applets either. The graphics techniques will most likely be the same.