Results 1 to 2 of 2
  1. #1
    Pino is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default Components sliding in view


    I am currently designing a game in java and while working on the GUI I got the idea of using some sort of sliding components. The idea is that there would be a few little arrows at the side of the screen, which, when clicked (or hovered over) would slide a little dialog in view at that location. These dialogs will probably have varying components, I'm thinking about a menu to equip your character, an options menu for different game settings, etc.

    The only thing I can think of is handling this entirely through an animated image, but I was guessing this would put quite some stress on the repaint loop of the game image itself..
    Would there be any other way of creating these sliding components?


  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

    Default Re: Components sliding in view

    Can't you just change their location in a Timer?

    The book Filthy Rich Clients talks about this, and I believe it even provides a framework for generating these types of animations. It might be worth checking out: Filthy Rich Clients
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. How customerize view of swing components
    By mDennis10 in forum New To Java
    Replies: 6
    Last Post: 08-13-2011, 10:29 PM
  2. Creating Sliding Panels
    By indra00 in forum AWT / Swing
    Replies: 8
    Last Post: 07-12-2010, 05:18 PM
  3. Creating a time sliding window..urgent
    By sm123 in forum New To Java
    Replies: 1
    Last Post: 03-12-2010, 04:12 AM
  4. How enter this mode-gui/design-view/code-view
    By lse123 in forum NetBeans
    Replies: 0
    Last Post: 02-28-2010, 10:09 PM
  5. Updating a view using actions in a seperate view
    By xcallmejudasx in forum Eclipse
    Replies: 0
    Last Post: 10-24-2008, 10:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts