Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-12-2007, 02:57 PM
Member
 
Join Date: Nov 2007
Posts: 2
tojas is on a distinguished road
GridLayout with animation?
Hello!

I am writing a game, that GUI has GridLayout structure. My problem is when my charachter moves from square to square it is jumping and I want to animate it. What do you think, is this possible?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-12-2007, 09:06 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,141
hardwired is on a distinguished road
Set your layout to null and use setLocation to move components. With null layout, in addition to adding a component to its container, you must also specify both a size and location for it to appear. You can use setBounds for this.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-12-2007, 09:26 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
If you are serious in game programming. I recommend you to find a game library in Java and develop your game in lower levels. Check JMonkey Engine. They draw graphics with OpenGL and also have classes to integrate Swing/SWT components with your game...
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-12-2007, 11:16 PM
Member
 
Join Date: Nov 2007
Posts: 2
tojas is on a distinguished road
Thank you guys
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Animation rossomandop@acm.org AWT / Swing 4 05-30-2008 04:34 AM
Animation Delay - Thread problem wererabit Advanced Java 1 04-17-2008 09:41 AM
SWT GridLayout Java Tip Java Tips 0 01-08-2008 10:04 AM
Animation with Animated GIF JavaBean Java 2D 1 06-07-2007 06:11 PM
Gridlayout Marty AWT / Swing 2 05-31-2007 12:48 PM


All times are GMT +3. The time now is 01:52 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org