Implementation of Java Swing game

  Foreword 

  Java cafe has opened a lot of time, if you are already fond of the Java cup of coffee flavor, often to remember oh.    This time, we all prepared for a large cup aromatic coffee - will be the development of a "Lianliankan" modelled on the game, and we learn together in Java Swing usage, when you taste carefully cup of coffee, you will found that not only Java cup of coffee also have some other flavor, but also learned the professional game development, is the best of both worlds! 

  In order to let everyone see in advance the facilities, the chart is the title game.    Members can download the game demo (download games; download source files), then use the command line mode java-jar kyodai.jar to run.    In addition, I can go to the Home http://www.ismyway.com download stand-alone version of the game as well as a demo version of mobile phones (see Figure 1). 


  Java cafe previously introduced AWT knowledge, Swing and AWT then what is the difference?    Learning Java people may have heard or seen a heavyweight controls and controls lightweight word AWT is that we usually referred to the heavyweight controls, it is lightweight Swing controls.    We all know that Java is the slogan of "one preparation, running everywhere," which will require our procedures, to make the best use of pure Java code.    Unfortunately, AWT rely on the local interface platform, therefore, in different operating systems, making use of AWT interface may seem there are some subtle differences.    Swing is completely different, using pure Java Swing is prepared, therefore, prepared by the use of Swing interface can be guaranteed in all platforms have the same appearance.    There is also a Tips: JDK, in order to facilitate the distinction between all Swing controls all capital letters J to the beginning, for instance, JButton (AWT in the corresponding Button is), so you can easily distinguish between AWT Swing controls and controls the. 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • DotNetKicks
  • DZone
  • Netvouz
  • Propeller

Tags: ,

Releated Java Articles

Comments

Leave a Reply