Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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
Quote
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 javax.media.j3d.MasterControl$22.run(MasterControl.java:889)
     at java.security.AccessController.doPrivileged(Native Method)
     at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:886)
     at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:229)
     at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:3533)
     at Hello3d.main(Hello3d.java:28)
Exception in thread "main"

this is the program I used
Quote
import javax.media.j3d.*;
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 );

           frame.show( );
     }

     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 );
           spinner.setSchedulingBounds(
                 new BoundingSphere( new Point3d( ), 1000.0 ) );
           trans.addChild( spinner );

           return branch;
     }
}
[/color]
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)

Quote
public void actionPerformed(ActionEvent input) {
           String evt = input.getActionCommand();
           String answer = evt;
           System.out.println(evt);
           if (evt == "good") {
                 question.setText("I'm glad to hear that.");
           } else if (evt == "great") {
                 question.setText("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");
           }
           
           
           
     }
[/color]
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() {
           super();
           setSize(350, 100);
           setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           response.addActionListener(this);
           send.addActionListener(this);
           Container pane = getContentPane();
           BorderLayout bord = new BorderLayout();
           pane.add(question, BorderLayout.NORTH);
           pane.add(response, BorderLayout.CENTER);
           setContentPane(pane);
           setVisible(true);
     }
     

     public void actionPerformed(ActionEvent input) {
           String evt = input.getActionCommand();
           String answer = evt;
           System.out.println(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. :-/
                                              ,Leppy
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 www.ugcentral.com


glad i could help
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (44 views)
2014-09-23 14:38:19

radar3301 (25 views)
2014-09-21 23:33:17

BurntPizza (62 views)
2014-09-21 02:42:18

BurntPizza (32 views)
2014-09-21 01:30:30

moogie (39 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!