Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: The main idea I didn't get from the Sun tutorial. on: 2008-07-09 20:20:28
If you're just starting out in java, it's generally not a good idea to start with a big IDE like Netbeans or Eclipse. Start with notepad and the command line first, then progress to the bigger IDEs when you actually understand what's going on under the hood.

hm, I'll try that. I need more practice navigating with cmd anyway. I doubt I'll deal with Swing much right away if I'm doing that, but I can still import the swing libraries as usual if I wanted to, right?
2  Game Development / Newbie & Debugging Questions / Re: The main idea I didn't get from the Sun tutorial. on: 2008-07-09 20:03:02
That was actually the exact answer I was trying to get. Smiley Thanks! So upon compiling those two .java files, I'd tell Netbeans (for example) to compile as I would anything else since it puts them in the same package when I make them. right?

Oh also, assuming I make a class to handle the calculations, I can call methods from it in other objects, right? It doesn't have to be the one with the main?

i.e. in the event handling class, I can tell it to, instead of printing out a line, to look to say...calc.java to call calc.add? Or do I have to call new calc() first?

I would just fiddle and test all this myself, but I'm at work right now and I don't think these computers have the SDK.
3  Game Development / Newbie & Debugging Questions / The main idea I didn't get from the Sun tutorial. on: 2008-07-09 19:15:05
Okay, so I'm comfortable with Visual Basic's program setup. (A main form + a bunch of modules to hold your functions.) What I didn't understand in the tutorial on the Sun website was how the pieces fit together. Say I wanted to make a basic calculator program with a swing UI. Would I have a bunch of .java files for each object/class I make? Where would I call these methods, tell the program to run some on startup or event handling code? As of now I can write some decent object code but I have NO clue how to make them work together. Thanks for any help.
Pages: [1]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (81 views)
2013-05-17 21:29:12

alaslipknot (91 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (114 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (187 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.087 seconds with 21 queries.