wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Fundamentals stuff Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Fundamentals stuff" Watch "Fundamentals stuff" New topic
Author

Fundamentals stuff

Juhan Voolaid
Ranch Hand

Joined: Nov 18, 2003
Posts: 179
Hi
I am still having lack of fundamental knowladge about java (general), classes and swing. So prepare yourself for stupid questions.
Firstly i just say what i want to do. I want to make a graphical 2D game where are a main character (player), opponent characters (AI) and a map.
I am planning to design this so:

don't really know should i use extends gamepanel or implements gamePanel --what is the difference?
Does only the parent class (gamePanel) have a paintComponent() method? For example with what method in map class can i draw something (e.g. bacground color) to the gamePanel?
OK .. don't know what more to ask now. I have so much things that i want asers to.
So pleas give me some advice to my problems ... don't know where to start.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
There are a lot of ways of putting things together to make what you want. The fun comes with practice in making things. Here's something to help you get started.

[ March 12, 2004: Message edited by: Craig Wood ]
Juhan Voolaid
Ranch Hand

Joined: Nov 18, 2003
Posts: 179
Thank you. That example is perfect to give me answers i am looking for.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fundamentals stuff