[Bluej-discuss] (no subject)

andrea Valente andrea270872 at gmail.com
Fri Oct 5 16:50:06 BST 2007


Hi,
   if you make a subclass of JPanel, let's call it MyPanel, and
override the "paint" method
you will be able to draw freely as many gifs as you like ;)
And it will manage transparencies automatically, so you can do quite
nice things with it.

Cheers
   Andrea

Btw... I'm not sure if this mailing list is the right place to ask for
this kind of help... ;)


On 10/5/07, Lee Samuela <javaling007 at hotmail.com> wrote:
>
> Good day to you;
>
>  Im new to this site, but have often seen how helpful it is to other budding
> programmers, I have been given the task by my tutor to re-vamp the World of
> zuul game in the book "Objects first with Java" By D.J.Barnes and Michael
> Kolling, We have free range in design and implementation, i have decided to
> discard the text based style of the game, incorporate a GUI, making it a
> visually attractive game to play, i have created a graphical representation
> of all the rooms in the game, my problem is deciding which type of panel to
> use in blueJ, Does a JPanel allow for multiple layers of graphical content
> to be displayed? These graphics are saved in the format .gif, will blueJ
> allow me to layer these on top of each other, For example
>
>  The bottom layer shall be the floor, on top of that will be all other
> graphics to be present in the room, such as in the library, tables will be
> present, book cases ( including the character which will be moved around
> these rooms via the arrow buttons ), these rooms will be viewed from a birds
> eye view, similar to the old classic Zelda Legend of link game. as much as
> I've tried to research on which panel to use, googled many sites!!! None
> have told me that i am able to layer graphics on top of each other. your
> input will be very well received even if it is to tell me I'm writing too
> much or not enough etc.
>
>  Sincerely yours
>  Leon.
>
> ________________________________
> Get news, entertainment and everything you care about at Live.com. Check it
> out!
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>
>


-- 
'An age of superstitions is a time
when people imagine they know
more than they do' [Hayek]
===================================
Andrea Valente
www.aaue.dk/~av


More information about the bluej-discuss mailing list