Goodeve guys... please help me on how to start a java game.. we have a proposed game and mine is a song lyrics game.. this is our project for the finals and honestly, i'm not that good in java.. :C

what should be the first step? what is the best type layout? how to insert background picture on the said layout? what will i do if i want windowB to be opened after clicking a button on windowA and closing the Window A? please reply ASAP :C

I guess you would start by studying the Java Swing tutorial to see how to create GUI.
Look at the different components and the layout managers.
Then design the GUI and game interactions and start writing code.
Post the code and your questions when you have problems.
Be sure to use code tags(icon upper right) when posting your code.

>> what should be the first step?

The first step is to figure out exactly what you want. If you don't know exactly what you want because you don't know what's available, then the step before this step is as the last poster mentioned. Study Java Swing, particulary the Layout Managers. But actually, pencil and paper is the first step. Think about what you would LIKE to have the opening screen look like, think about what buttons, pull-down menus, etc. are needed. What shoud happen when each is clicked/changed/whatever. Note that doing takes little to no Java ability. Turning your ideas into a reality will take some Java ability.

>> what is the best type layout?

Depends. What's better? A hammer or a screwdriver? Start with what you need, then pick a tool. Don't pick the tool first. Different layouts have different pros and cons to them.

>> how to insert background picture on the said layout?

Each layout has a different way of adding components to it.

>> what will i do if i want windowB to be opened after clicking a button on windowA and closing the Window A?

Java has "Listeners" and "Events". Figure out what what "Events" you need to "Listen" for and what should happen in response to these events. If clicking a button should instigate the closing of Window A, followed by the opening of Window B, then you need to add an ActionListener to the button. When the button is clicked, you'll have code execute which closes Window A and opens Window B.

So on the list of things to study:

  1. Java Swing
  2. Events
  3. Event Listeners
  4. Layout Managers

http://download.oracle.com/javase/tutorial/uiswing/
http://download.oracle.com/javase/tutorial/uiswing/layout/index.html
http://download.oracle.com/javase/tutorial/uiswing/events/index.html

commented: Nice job +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.