Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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: Apache Ant Help on: 2004-05-25 17:53:46
I understand how to write build files and all of that stufff, I am just having trouble setting it up. I would prefer to be able to do it withing Eclipse. I do have ant downloaded, I need to know where to put the files and things like that.
2  Game Development / Newbie & Debugging Questions / Apache Ant Help on: 2004-05-24 19:04:50
Hi everyone, I am a new java programmer, and I need some help with Ant, I am using the java game book by David Brackeen, and I am supposed to use ant to compile all of m stuff. The thing is, I have no idea how to use it. I tried using the owner's manual on the website, but I thiought it was pretty confusing. I would also like to know how I can use it in Eclipse. Huh
3  Game Development / Newbie & Debugging Questions / Re: Eclipse and Downloaded Java APIs on: 2004-05-17 19:17:36
Thanks for the help, I got it working now. Grin
4  Game Development / Newbie & Debugging Questions / Re: Eclipse and Downloaded Java APIs on: 2004-05-17 09:23:21
I couldn't find the option to add external libraries, but I clisked "Add External JAR files" or something like that, and added all of he JARs from the folder that J3D was installed to. I didn't get any errors when I wrote the program, but when it ran I got these
java.lang.UnsatisfiedLinkError: no J3D in java.library.path
     at java.lang.ClassLoader.loadLibrary(Unknown Source)
     at java.lang.Runtime.loadLibrary0(Unknown Source)
     at java.lang.System.loadLibrary(Unknown Source)
     at Method)
     at Hello3d.main(
Exception in thread "main"

this is the program I used
import javax.vecmath.*;
import java.awt.*;
import com.sun.j3d.utils.geometry.*;
import com.sun.j3d.utils.universe.*;

public class Hello3d
     public static void main( String[] args ) {
           Frame frame = new Frame( );
           frame.setSize( 640, 480 );
           frame.setLayout( new BorderLayout( ) );

           Canvas3D canvas = new Canvas3D( null );
           frame.add( "Center", canvas );

           SimpleUniverse univ = new SimpleUniverse( canvas );
           univ.getViewingPlatform( ).setNominalViewingTransform( );

           BranchGroup scene = createSceneGraph( );
           scene.compile( );
           univ.addBranchGraph( scene );


     private static BranchGroup createSceneGraph( )
           // Make a scene graph branch
           BranchGroup branch = new BranchGroup( );

           // Make a changeable 3D transform
           TransformGroup trans = new TransformGroup( );
           trans.setCapability( TransformGroup.ALLOW_TRANSFORM_WRITE );
           branch.addChild( trans );

           // Make a shape
           ColorCube demo = new ColorCube( 0.4 );
           trans.addChild( demo );

           // Make a behavor to spin the shape
           Alpha spinAlpha = new Alpha( -1, 4000 );
           RotationInterpolator spinner =
                 new RotationInterpolator( spinAlpha, trans );
                 new BoundingSphere( new Point3d( ), 1000.0 ) );
           trans.addChild( spinner );

           return branch;
5  Game Development / Newbie & Debugging Questions / Eclipse and Downloaded Java APIs on: 2004-05-16 22:17:14
I am intersted in programming with java3d, and I use the Eclipse IDE. I can't figure out how to make the Java3D API available to Eclipse. Huh I checked the website, but it isn't a very good one. I would greatly appreciate help, and I'm sure that there is a simple answer.
6  Game Development / Newbie & Debugging Questions / Re: Event handling problem on: 2004-05-01 22:44:26
Cheesy that's a great summary! I will definiatly remember that. I am very grateful for you help!
7  Game Development / Newbie & Debugging Questions / Re: Event handling problem on: 2004-04-30 17:49:33
Thanks for the help! It works now. i had a lot of projects on hold because of this thank you. Grin
8  Game Development / Newbie & Debugging Questions / Re: Event handling problem on: 2004-04-30 01:57:14
hmmm, now it just goes to the doesn't understand line Huh

here's what I changed(it's setText() BTW)

public void actionPerformed(ActionEvent input) {
           String evt = input.getActionCommand();
           String answer = evt;
           if (evt == "good") {
                 question.setText("I'm glad to hear that.");
           } else if (evt == "great") {
           }else if (evt == "Terrible") {
                 question.setText("That's too bad");
           } else if (evt == "bad") {
                 question.setText("I hope you cheer up");
           } else {
                 question.setText("Could you repeat that? I couldn't understand");
9  Game Development / Newbie & Debugging Questions / Re: Event handling problem on: 2004-04-29 21:25:17
Huh? Huh

I'll post the code as soon as I can. Thank you for answering!

*edit: here's the code(It's in the noob section for a reason Wink)

import javax.swing.*;
import java.awt.event.*;
import java.awt.*;

public class Chat extends JFrame implements ActionListener {
     String questiont = "How are you doing today?";
     JTextField response = new JTextField(40);
     JLabel question = new JLabel(questiont);
     JButton send = new JButton ("Send!");

     public Chat() {
           setSize(350, 100);
           Container pane = getContentPane();
           BorderLayout bord = new BorderLayout();
           pane.add(question, BorderLayout.NORTH);
           pane.add(response, BorderLayout.CENTER);

     public void actionPerformed(ActionEvent input) {
           String evt = input.getActionCommand();
           String answer = evt;
           if (evt == "good") {
                 String questiont = "Not great?";
           } else if (evt == "great") {
                 String questiont = "Great!";
           }else if (evt == "Terrible") {
                 String questiont = "That's too bad";
           } else if (evt == "bad") {
                 String questiont = "I hope you cheer up";
           } else {
                 String questiont = "Could you repeat that? I couldn't understand";

     public static void main(String[] arguments) {
           Chat chat1 = new Chat();
10  Game Development / Newbie & Debugging Questions / Event handling problem on: 2004-04-28 23:40:42
Hi, I'm relatively new to java, and brand new to these forums. In a simple program i'm writing just to test out my skills(what little I have). It's a simple chat program in which the program asks how you are doing, the user types something in the field, and depending on the answer(good great etc.) it will have a reply. The problem i'm having is that I can't get the program to respond to the input. I know that the listeners and stuff are correct because I used System.out.println() where the argument is the text in the field, and that works fine. If you want, I can post the source code. This probably has a very simple answer, but for now I'm stumped. :-/
11  Java Game APIs & Engines / Java 3D / Re: Java 3D Games Programming Chapters online on: 2004-04-28 09:03:04
Great! Grin
12  Java Game APIs & Engines / Java 3D / Re: Java 3D Games Programming Chapters online on: 2004-04-27 23:23:40
hmmm, seems to be down right now, I was looking at it earlier though, it looks great! Now sure if it's just me, but I want to keep reading!
13  Discussions / General Discussions / Re: Come join us on the unofficial Javagaming IRC on: 2004-04-25 21:37:24
I think i can help you guys. The people on the ugcentral have made an applet where you can go into the channels on their network. I think that you can talk to them about making it available for a channel about java. That would be great. Here is the link

glad i could help
Pages: [1]
bilznatch (18 views)
2015-08-04 11:03:17

SHC (38 views)
2015-08-01 03:58:20

Jesse (24 views)
2015-07-29 04:35:27

Riven (44 views)
2015-07-27 16:38:00

Riven (25 views)
2015-07-27 15:35:20

Riven (27 views)
2015-07-27 12:26:13

Riven (18 views)
2015-07-27 12:23:39

BurntPizza (40 views)
2015-07-25 00:14:37

BurntPizza (48 views)
2015-07-24 22:06:39

BurntPizza (33 views)
2015-07-24 06:06:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
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!