1116 byte By
Nethera at 2007-11-26 19:44:28
For a real-time strategy game, when you construct a building or unit, it's supposed to take a certain amount of time to build.If Unit A takes 3 seconds to build, how do I ensure that it takes 3 seconds on any computer no matter it's graphical power.See, if I ...
Does anyone know of an algorithm which produces a "meaningful" abbreviations for a word or phrase.I am working with a state machine and would like a way to reduce names of states and transitions to a simpler set of codes.ie. Acknowlege would become ACK, Not Acknowleged would become NACK, ...
Hi...,In one of our application, we are thinking to separate the Web Layer(Jsp/JSF) & deploy it on the Web Server , EJB's on the App Server. My question is ,-what benefits does it provide having such separation?-When should we decide to separate the web tier from the application server?- ...
2068 byte By
shahboya at 2007-11-26 19:53:21
i have tried to do it several times and im having a problem with this code....import javax.swing.*;import java.util.Scanner;public class Exercise6_19 { public static void main (String[] args) { // Entering the number of studentString number ofStudentsString = JOptionPane.showInputDialog( ...
4984 byte By
davegelha at 2007-11-26 19:54:03
Alright I'm trying to make a simple game, as it's my first game that not a simple puzzle game. Right now I'm attempting to make the player just walk around on screen. However for some reason it keeps allowing the player to move off screen. I can't figure out why. Any help would be ...
Hi All,I have a problem in my project that we had to implement a search engien , which will perform a runtime search over a enormously huge db(which will be now in memory).So My problem is how to organize that data with a search algo which will return all the results in minimum time.for eg u ...
Hello EverybodyI am trying to get RSS feeder from google news. [br] But i am getting err that m not authorized to do so (server err 404)Please help me . I have done enough search on net from last 2 weeks.[ /u]Here is my code [br]<%@page contentType="text/html"%><%@ page ...
3590 byte By
ntalamaia at 2007-11-26 19:56:03
I am using a library and I would like to extend one of its classes. My class "is of type A" and instances of A_Extension should be used whenever an object of type A is expected. Therefore the proper solution is inheritance.More specifically:import library.A;public class A_Extension extends A{ ...
am trying to programme a game" who wants to be a zillionaire", i have thot about my classes and what am to do but am struggling to begin, i would be gratefull if anyone can help me out.thanks
hey all,I want to create two panels in the main frame i tried to do but, the two panels created with the same size, however i want one of them is norrow in in the buttom of the frame, how can i make the panels with different sizes? thanx
128 byte By
DaleGroa at 2007-11-26 19:59:30
Hi peoplesome one know how can I put a simple java application in the systray of windows?thanks folksss!!!!
Hi, Can we simulate a network (with some nodes and connections between nodes)? I think for simulating a network we construct a graph with nodes and vertices. If we can do the above, can we simulate the action of sending packets between the nodes?Can we do this in
I'm trying to display the current score in the upper corner of each players side, how do i go about printing out text in my applet
Hello everyone,I'm working with a WEbService using Axis1 generated client code.Can anybody give me a good linkg to a Design pattern to use such generated code.Regards,Sebastien Degardin
813 byte By
kmkiania at 2007-11-26 20:08:16
Consider a typical synchronous Struts-based Web application which does a simple DB search and post. What are some of the main patterns and components that should be used if following the 搃ndustry best practices?br>Does the following flow seem accurate?Strust Action creates a TransferObject , ...
ok so im tryingto do this cointoss program cause i have the java an intro to problem soloving and programming 4th editioni have no idea how to do this would someone be able to help me with this it would be a big helpfor anyone that has the book its on page 126 number 6
hi all,i am developing a game project whoes user interface is flash client so i am going to use wowza media server written in java my problem is that my game logic is already written in python i needs to call that game logic in my java classes is it possible or i have to use Jython plz sujjest ...
Hi,I want to create an API for the GUI piece of my application to hook up to. The GUI will basically query a database and display the results, it will also be used to edit database rows. Are there any patterns that I can use for this activity so that either the front or back end technologies ...
963 byte By
doktata at 2007-11-26 20:20:24
I'm working with variations of the JOGL version of the NeHe tutorial 10. I have incorporated Andrew Davison's obj loader and am rendering an object from a Display List. I am drawing the object's shape but am not getting the object's texture and materials properties. The NeHe tutorial uses ...
1294 byte By
maririna at 2007-11-26 20:20:30
Hello All! I was hoping someone could tell me how to terminate my loop. The purpose of my program is to find the last position of "100" in the array that I am to create, and terminate the loop afterwards. My current output is 4 1. (I would like just 4)When I add "break ;" before ...
hi, im a newbie in game programming (just taking it at uni this year) so please bear with me...im working on a game where the player initially has no idea about the map. so the player has to explore the map and find stuff (Player has limited vision). There are several types of obstacles that he ...
Greetings!Since this is my first post, i want first to thank to all of you that made this forum grow, since it helped me a lot in previous times.Now, my problem =)I've made several searches across these threads and found none of use. Well, I found some, but they just don't do the job =\I ...
I'ts been suggested that I link to my topic in new to java about a problem I'm having with 100% cpu usage, that I think is due to calling repaint.Can someone help me out here - this ahs been driving me crazy for ...
851 byte By
Isaaka at 2007-11-26 20:43:03
Hi,I think you are better than me in oop so you could easily show my error in a oop. My Code makes an error ArrayIndexOutOfBoundsException [0].Where is my fault? class C{A a;C(){a = new A();} }class A{ B []b; A(){b = new B[0];b[0] = new B(); }}class ...
Hello Evryone,I'm designing a new application for Incident Management.There is an existing Incident System But, our application is targeted to end user facility.So, we have to use the existing Incident Management system to store and get data, so that Incident can be loaded on booth side.We ...
Hello,I search some algorithm and source code in Java for compute 3D Skeleton ok discrete shape.Someone know where I cna find it ?Thank you...
I have an image moving from point a to point b - both points are known.At the moment I'm updating the co-ordinates by doing the following:double speed = 1;double angle = Math.atan((double)yDistance / (double)xDistance);if(entryX > destinationX && entryY > destinationY){travelX = ...
I am trying to make a program that finds similarities within a wav file. I want to break the wav file into pieces that are about a second long. Then, I want to convert each piece into a number that represents that second's wave. Last, I want to find the seconds that are similar, by finding the ...
103 byte By
at 2007-11-26 20:52:13
Is there a java game engine api or class?If not, is it spread among multiple api's and classes?
1780 byte By
jdupreza at 2007-11-26 20:52:50
Hello,using JDK 5/6 for a few months, I've just started playing with standard annotations (which by the way are not extremely well documented in the JDK docs, I had to go look at the javadoc for package java.lang.annotations to find them out).I'm finding the @Override annotation quite useful, ...
Right now I just want to be able to create like an old school ascii rpg or some sort of simple tile rpg game. The main purpose is to flush out an RPG system that I have created and to see it within a computer game.Is Java the best thing for me on this or is there something better? I have had ...
I downloaded this game online a couple of days ago after downloading it I'm naturally eager to play. When the game's window opens it's titled "Win32Window" and it freezes for a second, only displaying the edge of the window. The rest of my desktop is visible, but not accessible, through the ...
536 byte By
Sloespa at 2007-11-26 21:09:58
We have created an old school vertical shoot 'em up with JAVA. It was a lot of work but result is very nice. We also did the sound effects, music and artwork.Collect money to buy upgrades for your ship and eventually save the universe! :-DPlease let us know what you think,Regards ChrisA ...
Hi all, this is my first time posting here, I tried doing a search but i didn't find what i was looking for so i hope someone out there and help me out~Anyways, my question is that howcome when I am putting entries into either of these maps, the times for entry acutally gets faster as more ...
hello , i'm a computer science student and we have a machine project on making a java game. Well , our game is mostly a mixed bomberman-finalfantasy tactics type of 2d game. However , i couldnt seem to figure out the algorithm behind the object collision/interaction (for example , how will the ...
i want 2 make a project on steganography usingh f5 algorithm plz can anyone help me its urgent
hi guys, i got a problem while solving a geometry problem. problem description is as follows.i have 2 points p1(x1, y1), p2(x2, y2), and i have to find the a point p3 which is d1 distance from p1, and d2 distance form p2. here i have to get 2 points for point p3(x3, y3) because i dont know ...
1384 byte By
Anteksia at 2007-11-26 21:24:04
Hello,We are about to develop a new business application with about 1000 clients. Our IT staff consists of two groups, Java programmers and system analysts. A fight has just been started about one question between the two groups. The question is: "Who should design the database, and how?"Our ...
967 byte By
mitekea at 2007-11-26 21:38:07
I hate to reinvent the wheel so I figured if anyone had a decent algorithm for doing a reformat on a string to fill a certain width. By this I mean if given a string and a width of 80, I want to get back a list of lines back <= 80 characters in width, breaking at whitespaces in the original ...
Currently I use x,y type of colision detection eg if(x_pos > otherxpos){// do this}etc...is there any other ways of detecting collision like intersecting or something. Help would be appreciated as my current collision detection contains a lot of if() ...
hi,i santanu need help of the people of this forum on developing the project on generation of computer science department .input- the number of teacher,no of class rooms,no of classes rae specified output-- the time table is generated witha the help of programi got a largr project which is ...
514 byte By
kanaiyaa at 2007-11-26 21:42:48
we have a Business tier. There are different types of the client c,c++,corba, java client , soap based etc. How can i provide a generic interface so that it works well for all types of the client. i..e. all the client use the same api model communicate to the business tier(ejb-tier).Pls suggest ...
335 byte By
Mordana at 2007-11-26 21:45:30
I'm trying to create a bit-level trie using integers for a memory constrained applicationFor some reason I think that using such a Trie will be better (faster and less memory) than a HashTable with Integer objects mapping Objects.Is this intuition right or should I just use a ...
712 byte By
boci13a at 2007-11-26 21:53:11
Hi!I try to write an application based on JAIN SIP (It's call 2 voipbuster account). But it's too complicated, anybody know a top level API based on JAIN SIP? I want only set the server host and port, the caller user name and password and the called user data (and maybe the Session ...
I have a non-binary tree and I have its pre-order traversal. I can distinguish between leaf and non-leaf nodes. How can I reconstruct the tree only from the pre-order traversal?
328 byte By
JackBoba at 2007-11-26 21:55:39
.....shiney!So like turning something like a tiny little bullet that gets shot from a gun into a tiny bullet that gets shot out from a gun which has the bright effect like its accually being shot.. hopefully thats a good explanation.... so if any one can help me or point me to some tutorials ...
My goal is to create a game similar to runescape (www.runescape.com) and become a millionare, nay billionare. I calculated the average number of paying members on runescape and multiplied by 5 (5 dollars a month) and figured out that runescape got a whopping 34 million dollars a month. But ...
hi i tried this encryptionI am geting no such algorithmCipher cipher = Cipher.getInstance("RSA","SunJCE");cipher.init(Cipher.ENCRYPT_MODE, getPublicKey());//byte encrypted[] = cipher.doFinal(getBytes(abc));byte encrypted[] = cipher.doFinal(abc.getBytes());byte output[] = ...
Hello, I am currently developing a game. I have finished nearly all the programming involved, however, I still have a problem concerning Dual-Player - I would like to be able to listen to several keystrokes simultaneously so that each player would be able to move whilst the other player is ...
I am Developing a project on Steganography using 24bit BMP images as cover objects.I am using a 24bit BMPimage .I have written the following code to grab pixels from the image.But it is returning an array of -1's ,where as i should get the pixel values.please help me in solving the ...