Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. Desiging GUI for Java Application

Desiging GUI for Java Application

Scheduled Pinned Locked Moved Article Writing
javadesigngame-devtutorialquestion
2 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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!

    L 1 Reply Last reply
    0
    • L Lost User

      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!

      L Offline
      L Offline
      lm
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups