Multiple Timers?

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 ...

create abbrivations for a set of strings

314 byte By radix_zeroa at 2007-11-26 19:51:20
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, ...

Separation of tiers

425 byte By pmohanana at 2007-11-26 19:52:44
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?- ...

Student Needs Help

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( ...

Walking around world problem

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 ...

Want To Do a Keyword Search ...Suggest Some DS and search algo's

755 byte By byteByBytea at 2007-11-26 19:54:08
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 ...

Reading RSS for google news

1109 byte By chahalkhushwindera at 2007-11-26 19:54:26
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 ...

Extending a statically hidden class

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{ ...

who wants to be a zillionaire

205 byte By yvonne_fasha at 2007-11-26 19:58:15
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

need to divide my frame into panels

265 byte By gargoorya at 2007-11-26 19:59:00
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

java and Systray

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!!!!

Simulating a network

297 byte By programming_javaa at 2007-11-26 20:00:46
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

So i have a simple little pong game

138 byte By Unfettereda at 2007-11-26 20:02:53
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

WebService Design pattern

221 byte By sdegardina at 2007-11-26 20:03:44
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

Best Practice: A J2EE Blue-Print for a Typical Web App

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 , ...

Coin Toss program

290 byte By iknowTOOlittleaboutprograminga at 2007-11-26 20:09:05
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

help needed

312 byte By jamesgoslina at 2007-11-26 20:09:12
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 ...

Design Pattern Advise

437 byte By java_swing_dudea at 2007-11-26 20:14:56
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 ...

Texture switching

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 ...

question about terminating my loop

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 ...

Exploring a map - dijkstra?

475 byte By PurpleSkiesa at 2007-11-26 20:20:33
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 ...

Weird permutation algorithm

1370 byte By cRaZyFaCKaa at 2007-11-26 20:39:52
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 ...

Repaint causing 100% CPU usage

308 byte By nealbo101a at 2007-11-26 20:40:40
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 ...

why the following makes ArrayIndexOutOfBoundsException [0]

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 ...

Business Object Model Design

1420 byte By sdegardina at 2007-11-26 20:45:41
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 ...

Compute 3D Skeleton

170 byte By FiReTiTia at 2007-11-26 20:46:32
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...

Calculating co-ordinates

1176 byte By nealbo101a at 2007-11-26 20:48:52
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 = ...

wav analyzer

452 byte By esfsfefesa at 2007-11-26 20:49:26
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 ...

java game engine

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?

RFE Standard Annotation @Override/@Implements

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, ...

Is java good to start learning gaming or how about my game?

444 byte By tvance929a at 2007-11-26 20:59:18
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 ...

Error compiling shader?

844 byte By Rocksbaseballa at 2007-11-26 21:06:56
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 ...

JAVA Vertical shoot 'em up completed

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 ...

putting items into hashmap and treemap

789 byte By BlazinSuna at 2007-11-26 21:10:18
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 ...

java game collision code

415 byte By k_matsuda_2007a at 2007-11-26 21:12:07
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 ...

steganography help required

101 byte By cesc.arsenala at 2007-11-26 21:18:18
i want 2 make a project on steganography usingh f5 algorithm plz can anyone help me its urgent

finding 3 rd point if 2 points and and 2 distances are given

488 byte By kirankumarvemulaa at 2007-11-26 21:24:00
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 ...

first the DB tables or domain model than DB tables?

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 ...

Paragraph fill

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 ...

Is there different ways of detecting collision in 2d games?

435 byte By Chris1234554a at 2007-11-26 21:38:34
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() ...

time table generation of computer science department

510 byte By santybanty20a at 2007-11-26 21:42:21
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 ...

Automated Generation of Adapters.

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 ...

Trie of Integer literals as a way to map an int to an Object

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 ...

top of JAIN SIP

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 ...

Reconstruction of a non-binary tree from preorder traversal

198 byte By javafora@gmail.coma at 2007-11-26 21:53:50
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?

Question on how to make something...

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 ...

haha, this would be the life...

363 byte By sumplesnooba at 2007-11-26 21:57:51
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 ...

No such algorithm: RSA

749 byte By Encryptiona at 2007-11-26 21:59:05
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[] = ...

Listening to Multiple Key Events simultaneously

488 byte By laginimaineba at 2007-11-26 21:59:58
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 ...

Pixelvalues in BMP

2523 byte By richa_sharmaa at 2007-11-26 22:00:29
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 ...