Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2004

Tip: Looking for answers? Try searching our database.

Would like suggestions on implementing a GUI

Thread view: 
Frank - 20 Jan 2004 19:02 GMT
Hello,

Let me first say that I am proficient in object-oriented programming,
but I do not know much about the way Java implements UI's in Windows.

I am creating a game where letters will be displayed on a grid and
rearranged by the player.  I can't use a table for this because the
letters will be animated as they are moved.  Some letters will glow as
well.

My first question is, is this feasible as an applet?  I know Java
applets are not the fastest way of doing things, but I would like to
offer this game on the internet rather than as a download.  At times,
a line of, say, 40 characters, might need to be appended to the next
line, and if this can't be a smooth animation, I will have to think of
something else.  It is essential that the game be very responsive,
because it becomes very fast-paced.

Now, if this is a feasible idea, can someone give me some suggestions
on how to do this?  Obviously, the paragraph that the player is
playing with will be stored in a two-dimensional array.  What I don't
know how to do is make a bunch of letters move around on the board
nicely.  Can this be done with text objects or will I need a different
image file for each letter of the alphabet?

Thanks for any suggestions!
Adam - 21 Jan 2004 08:33 GMT
> Hello,
>
[quoted text clipped - 5 lines]
> letters will be animated as they are moved.  Some letters will glow as
> well.
[cut]
Seems to me that it would be easier to use Macromedia Flash here.

> Thanks for any suggestions!
You're welcome!

Adam
ak - 21 Jan 2004 10:17 GMT
> I am creating a game where letters will be displayed on a grid and
> rearranged by the player.  I can't use a table for this because the
> letters will be animated as they are moved.  Some letters will glow as
> well.
> ...
take a look at "Java 2D API Graphics" from Vincent J. Hardy

--

____________

http://reader.imagero.com the best java image reader.
Frank - 21 Jan 2004 19:37 GMT
> > I am creating a game where letters will be displayed on a grid and
> > rearranged by the player.  I can't use a table for this because the
> > letters will be animated as they are moved.  Some letters will glow as
> > well.
> > ...
> take a look at "Java 2D API Graphics" from Vincent J. Hardy

Thanks for your suggestions.  I may check that book out soon.

About using Flash...I had considered that as a possibility but I was
under the impression that Java would provide more robust and quicker
graphics.  Can someone verify this?  If not, I may look at the Flash
route also.

Thanks.
Adam - 22 Jan 2004 07:15 GMT
> > > I am creating a game where letters will be displayed on a grid and
> > > rearranged by the player.  I can't use a table for this because the
[quoted text clipped - 9 lines]
> graphics.  Can someone verify this?  If not, I may look at the Flash
> route also.

I am not a Flash Prof but as for my experience with simple
animations - Java was not any faster than Flash (at least
for those simple things I've been doing).
Flash advantage is quick, drag&drop developing method.
Java enables you to have as big complexity of anything
you create as you want.
So I would use Flash for simple things (as your
game seems to be) - if you are willing to pay
for legal copy of Flash designing tool
(javac is free).
On the other hand, it still would be not too
much work with your game in Java (I guess),
so if you already know java well
it may be faster to write it in java then
to learn Flash and ActionScript.

Adam


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.