I was wondering if there is a website out there that has, not tutorials because those are too vague, but free classes with java that will take you through the components of using jpanel and jframe and how all of those interact, along with how abstract classes worka nd what implement means and stuff like that, cause i dont understand most of that stuff, i just see it and go, okay dontk now how this does this but it does… lol.
you want to look at code and simply learn just from that? No explanation or anything? :
:-\ You won’t learn anything like that… use tutorials and books.
[quote=“Sequalit,post:1,topic:26927”]
huh? ;D
[quote=“Kova,post:2,topic:26927”]
I guess he’s saying he doesn’t care HOW it works as long as it DOES work. Would’ve been a good cast in ‘The Matrix’ … 
Hehe you work like me… don’t waste my time, show me something I can poke at.
http://www.gamelizard.com/JavaGameProgrammingPresentation.htm
There’s something I made a while back. The top of the page has a link to source for an abstract Applet game and JFrame game, and 2 games written using those classes. I hope that helps you!
that last one was some help, i found out what i was wanting to know
Interfaces are classes that if another class implements it it has to use all of the interfaces methods
and an Abstract class is a class that doesnt have to be instansiated to use, or same with the methods in a class…
What i ment by tutorials, is that i dont quite understand JFrame and JPanel that well, i mean i know how to instantiate them and create a game using them, but i dont relaly understand how they relaly work with each other, and thats what i was wondering.
everyone learns differendly, sure this poking and trial/error might have it’s pitfalls but as with any practice. who are me or you to claim methode x is the best?
Interfaces are abstract classes of which all methodes are abstract. because it of it’s additional constrains over abstract classes interfaces support can support multiply inheritance.
An abstract class is a class which is demoted /decorated with the abstract keyword. Abstract classes can not be instanciated and can declare 1 or more abstract methodes.
classes that derive from abstract classes must implent all abstract methodes of the parent classes(unless already implentented in an other parent class) or the derived class itself must be declared as abstract/ become an abstract class.
the reason you probebly wont find tourials about it is because its considered trival/ common knowlage. however if you would want to look up information try going trought a few wiki’s.
as for JFrame JWindow JDialog and JPanel. JPanel’s are JComponents and can be add to a container. JFrame JDialog and JWindow use peers (http://www.jguru.com/faq/view.jsp?EID=11353) and are thus heavywaight in the respct that they use peers
JComponents are lightweight. they don’t use peers and depend on there plaf to give them a native look… or not.
laying out JComponents is done by a layout manager etc and more can be found in the java tourial.
anyways I supect this has to do with a game since your postign on java-gaming.org and not forum x, what is the question with respect to gaming?
No. Interfaces are Interfaces. Classes are Classes. Try to declare a Class that ‘extends’ an Interface or one that ‘implements’ a class and you will see the difference.
Wrong again. An abstract class is a partial class that CANNOT be instanced. It can only be extended.
I thin kyou need to slow down and get a decent beginner’s book on Java. I would suggest “Head First Java” as a decent one.
Attempting to guess at the meanign of things based on a small number of individual data points, as any scientist can tell you, will bite you in the arse.
I know you didn’t say tutorial, but did you go to:
http://java.sun.com/docs/books/tutorial/
Go down the list. Start with “Getting Started”.
thanks for your help everyone… i was just wondering because i went through a space invaders tut by kev and didnt quite understand all the concepts… ive only had a year and a half of shcooling, and the teachers never tought us any graphic stuff… and the rest is poorly self taught lol…
thanks for the help guys =D