165 byte By
LEM at 2007-9-27 20:57:19
Please help me with the recursive implementation of this game, thanks a lot. Here it is: http://forum.java.sun.com/thread.jsp?forum=31&thread=307023
hello i am familiar with the mvc structure in the web layer,but i wonder how can i implement the mvc struction in the ejb layer. i can use the stateless session bean as the controller,but in the web layer,i can use the url to identify the different request,and path information,but in the ejb ...
849 byte By
mgthura at 2007-9-27 20:57:48
hi everyone, I have one program, and that has to write with the OOP and also related with Maths's ideas. Would anyone help me to solve this? Here is the Program, and I gave the structure format below.Class VLDI(very large decimal integer)models positive infinite precision integer.VLDI i1 = new ...
in class Random ,the method nextInt:public int nextInt(int n) {if (n<=0) throw new IllegalArgumentException("n must be positive");if ((n & -n) == n) // i.e., n is a power of 2return (int)((n * (long)next(31)) >> 31);int bits, val;do {bits = next(31);val = bits % n;} while(bits - ...
I am investigating ways to perform the following (currently array based) problem efficiently.Here is the problem:1. There are two same-sized arrays (some other data structure may work as well) which store 0s and 1s at each index location.E.g.,int finalArray[ ] = new int[ 2601 ];int changeArray[ ...
<rant>I just tried Dantre's maze game under Opera 6.04 and I got no picture in the main run window. It was obviously working other than that 'cos I could still move around, but no view of where I was going. In the end I tried under IE6.0 and it worked perfectly.This is something that ...
2655 byte By
kotianvj at 2007-9-27 21:02:00
Here is the factory pattern I have implemented. I want to know, exactly which pattern this belongs to. I liked this. Comments and suggestions are welcome./////////////////////////////////////////////////////////////// ViewFactory.java// Implementation of the Class ViewFactory// Generated by ...
Any ideas on how to parse an HTML page? I'm trying to do it with a StreamTokenizer but with little success. I don't think this class was made to do this sort of thing, Oridnarilly anyway. Is there a better choice? StringTokenizer? Here's what I have so far: URLConnection uc = ...
1713 byte By
Frumple at 2007-9-27 21:03:24
Hi. I'm working on a 2D tank game that has a GameCanvas that shows the battle action, and a StatusPanel just below the canvas which shows the stats of the tanks. Both of these components are added to a single JPanel through a BorderLayout, which is then added whenever the player clicks the ...
136 byte By
davito13 at 2007-9-27 21:03:29
I磀 like to buy some books about java & UML..Can you recomend me any, please?thanks!DavidArgentina
577 byte By
MadGamer at 2007-9-27 21:03:38
Im new to java, although i have experience in c++ and vbBut im trying to build a simple gameBut i am not sure how the heck to include the keylistener classI already have all the code necessary i.e. addKeyListener(this) etc..but im supposed to add "implements keylistener" right?but how do i do ...
Hi,I need to do a bit of work with JAI, i.e. bitmap generation and processing of bitmap images. Can someone out there help me answer a few questions by email, give me a bit of guidance. You can reach me @ dvw6514@netscape.netThanks a million!
I have such a problem: there are text with JSP-like special tags in it:<%! <some declaration> %><some text goes here><%= <some expression> %><another text goes here><% <some code> %><%! <declaration again> %><all the remaining ...
Hi,i would like to develop a program to make a playbook for american football. I haven't run across a free application that does this so i want to try it myself.The view would be 2D and all players would have an x, y coordinate, velocity, acceleration and agility for starters.You would plot ...
Does anyone know of some decent freeware that can be used to genreate sound effects for game.Thank you!
280 byte By
javatypo at 2007-9-27 21:10:32
What do you think about a 512k game contest?The site will soon be a http://www.geocities.com/512kjgcI'll let you know if it changes. Also if you think that 512k games for a contest is a bit much, then I'll lower it to 256k, or 128k.What do you think?
Plz tell me what are main features and points of oop.
1186 byte By
ajwink at 2007-9-27 21:10:53
We are starting a new J2EE project for a personnel system in my office. Obviously certain users will have read and some read/write on our main personnel bean. Our problem occurs when we want to give a person write permission on a person in an office. In other words I can make write changes to ...
249 byte By
wealding at 2007-9-27 21:12:20
jmmm.com can be the short for (Java Movable MultiMedia)&others.now,it's for sale,Only little money needed,it is ture.if you are interesting in it contact me atding@devchina.comi promiss you will get a suprise!
850 byte By
Puce at 2007-9-27 21:14:09
Hi,how can I XMLEncode an element of a typesafe enum (see typesafe enum pattern).I've tried to implement Serializable and to specify following methods:private Object writeReplace() throws ObjectStreamException{return BAR_REPLACE } private Object readResolve() throws ...
Does anybody know of a tool that allows you to draw multiple packages on one diagram, draw the classes inside them and then show associations between the classes?I currently use Together but it doesn't visually display the classes it just list the class names.
Right now I am writing a maze program just for practice to take the Sun Programmer certification test. I am going to use DFS algorithm first, but I was wondering if there was a way to do DFS without using recursion. I am probably going to use recursion, because that seems more intuitive to me, ...
Hello,I am pondering the scenario of using object oriented programming and filling a report efficiently. I am hoping someone could provide insight or direct me to existing patterns.Let's say I want to create a report of all employees. Great, my first thought is have a Employee class and ...
172 byte By
kasayahk at 2007-9-27 21:21:04
How to configure J2EE to use MSSQL2000?Where i can find related tutorial or documents?I can not find any reference in J2EE Online TutorialThanks
This is a cross post from a thread in the Java Programming Forum. If you haven't read this there, read it here and please reply if you have a minute.> I'm conducting a personal study about some stuff, just> out of curiousity.> > Who writes code like this:> >public void ...
Can someone explain the different steps we follow while designing a project using OOAD and UML.Thanks to all of you.Satya
298 byte By
al0701 at 2007-9-27 21:23:53
I would like to know that if I have a constructor of class or some methods which declare new instance of the other class, the first class will be associated with the other class.For exampleclass A{A(int tmp){ B b = new B();}} class
hello!if you have an array that the first part contains negative numbers. what is the fastest way to count how many negative numbers in it?Meir!
i am trying to rotate a shape (which is at the origin) using the arrow keys for direction of rotation. But when it is run, my shape rotates incorrectly (as in it will make some major turns at certain angles) and i cant see how this is happening. Heres the sample code in my own Behaviour ...
220 byte By
EDNA at 2007-9-27 21:31:41
Hi guys/gals, here's a game I made (ver.1.3.1) The jar file is 56Kb.Here's a link to the game: http://spaceattack.cjb.netRead the instructions for key configuration!Have funEDNA
Ciao,I'm working in an analysis to investigate how much time it will take to develop e new J2EE project. With my colleagues we are analysing all the features this solution will have and then we try to imagine what kind of architecture will be suitable in order to better implement it; but when ...
can anyone tell me where to find caterpillar game source code?
Hi folks,I'm really, REALLY new to this game stuff, but thought I'd share this little 3D engine I found: http://www2.active.ch/~proxima/idx3d/idx3d.htmlIt seems really good, and I wondered if anyone else has developed with it at all and how it compares to Java3D....HTH ...
495 byte By
gulm.org at 2007-9-27 21:35:40
HeyI am programming a game that takes place in the Middle Age, and to protect the player's suspension of disbelief, I'd like the few Swing components I use to look like they are pieces of wood.I use a JScrollPane to scroll on the game's 2D viewport. I was thinking of getting the Graphics of ...
I have been using java for 4 years now. I am really getting sick and tired of its poor enviroment stablization.I think it is very close to one of the most powerfull tools available mainstream today. However, I think its deployment and evolution have been rushed without learning that a language ...
123 byte By
Juan27 at 2007-9-27 21:41:53
Hi, does any body knows in what .jar file is the com.sun.xml.tree package? I need the XMLDocument classThanks
80 byte By
katroxi at 2007-9-27 21:42:33
Can anyone help me on how to convert int to string?Thanks,Q
Hi,I'm writing a simple PacMan clone, in which the monsters form some kind of neural network. When a monster spots PacMan, it sends PacMan's coordinates to the other monsters, which then move to that location. When there is no target set, the monsters alway return to their home base, where ...
657 byte By
JTeen at 2007-9-27 21:45:20
In the game I'm doing, the character can move in six directions by pressing the individual individual arrow keys, or press two at a time for the intermidiate direction. When you're not pressing any keys, the character stays still, facing the direction that he was last traveling. At first I ...
286 byte By
javatypo at 2007-9-27 21:47:55
What are some good books to learn how to use Java 2d. And I am assuming that the Java 2d package is java.awt.geom?Also what are good for 3d?I just sort of found out how easy it was to make real good animation in Java so I want to find out more about 2d/3d graphics.
Almost every contemporary game using a 3D environment uses the mouse as a controller for the view direction. Now I finally have my 3D environment, but can't control the view properly, since MouseMotionEvents only give info about the absolute position of the mouse. As long as the mouse pointer ...
171 byte By
javatypo at 2007-9-27 21:48:34
Hi, Okay first, what is a BufferStrategy?And second how do you setup a bufferstrategy with a JFrame so that it's drawable?Thank you very much.
1116 byte By
javatypo at 2007-9-27 21:48:44
Hey,I was reading through the source code for your game Space Marauders (and playing too. really good game). Anyway I was looking for how to do fullscreen, drawing things, and stuff. I copied and wrote some code into a test file and executed it. I got a result which was good by it was real ...
366 byte By
mp_fx at 2007-9-27 21:49:37
I just started java at school and i've been dieing to make a game since before I ever started programming, i'm reading "The Black Art of Java Game Programming" and this dude goes against everything i've been learning, does anyone have any books in mind that I should read? Remember i'm a 3 ...
HiI am developing a book store app using J2EE.It works fine with single thread but when there are mutiple threads running concurrently, my stock table in cloudscape database is not getting updated properly.For an instance, if I run 2 threads, each purchasing a same book, the stock holding ...
221 byte By
sullis at 2007-9-27 21:51:59
Can anybody provide some real-world implementation examples of the DAO pattern?I already looked at Sun's Java Petstore. They use DAO only for read-only database queries.DAO: http://jinx.swiki.net/282
Ok I have this DFS algorithm that I wrote for a maze (a 2-D array of what Cells, Cells extend Point, and that is what they basically are).Here is my code. You won't be able to run it, because of all the other missing classes.package Grid;import java.util.*;import java.awt.*;import ...
Hi, I'm developing a Pacman clone (very original idea, I know) for mobile phone with J2ME.I've a question about canvas: can I use a background canvas with an image and a foreground canvas with Pacman and the bad ghosts(images too)? Can I move images on the foreground canvas and render only ...
Hi guys, I have some question about J2EE and EJB. Can you help to solve them, please?Question 1). IS EJB using the Remote Method Invocation technology?Then what are the advantages and disadvantages of it?Question 2). What are the advantages and disadvantages of EJB?Question 3). What is J2EE ...
Ok, if you've read my other posts, you know I am having some DFS alrogithm problems. I would like to go over my algorithm in pseudocode and see if I am screwing anything up. If you want to see the whole code, it is in my previous post. ...