Keys down at any given moment

292 byte By TimRyanNZa at 2007-9-28 2:44:33
Hi there,I've written a game that currently uses KeyEvent to pick up keys being pressed and released, but what I'd much prefer to do is test at any given movement whether any given key is down. Is there a way to do this independently of event handling?Thanks,Tim

problem in keyboard reading....

263 byte By ckminga at 2007-9-28 2:44:55
i was creating a program which using the keyboard to control the movement of a character,(picture). but when i run the program in jvm 1.4.1 , the program doesn't read anything from the keyboard. previously i was running it in jvm 1.3.1 ..... any solution?

problem in network , (sending game data)

498 byte By ckminga at 2007-9-28 2:45:00
i was developing a network game which allowed multiple player. so... at first in my testing stage, i test the program in one computer( 2 program connect in 1 computer) and it doesn't have any problems. when i test the program in network enviroment, the movement of the character are not same in ...

Multiple Inheritance

577 byte By SQBa at 2007-9-28 2:46:06
This is a very general question about mulitple inheritance.I now how it's done (or perhaps not done) in Java, but I'd like to know how it's done in general.I can understand an amphibious vehicle inheriting the ability to drive from Car and the ability to navigate from Boat, but how does one ...

Image Comparison

295 byte By miciulia at 2007-9-28 2:48:54
I need some motion detection functionality.As far as I can see, this will mean comparing successive frame-grabs (i.e. still images) obtained with JMF.Wondering if anyone can direct me to any published algorithms or useful literature regarding image comparison.Thanks.

BufferStrategy - Draw and show in same thread?

530 byte By Elfirea at 2007-9-28 2:49:31
I've been playing around a bit with Full Screen Exclusive Mode and BufferStrategy. Right now I am a png image with transparency and moving it across the screen. The image is drawn on the back buffer and then the backbuffer is shown. Thread.Sleep(15) is called and then the repeat. The issue is ...

my work (not a videogame but...)

256 byte By cirota at 2007-9-28 2:52:41
hi, my work is this: www.synchropolis.com. This is not a videogame but some Java graphics that you can use (for example) in a videogame.I am not sure if my work is good, I'm sure I spent a lot of time to build it. What do you think about it?

Java on Its Way

534 byte By andriyanaa at 2007-9-28 2:55:23
I've been learning Java for 3 months and I want it to be my whole new world. I'm trying to get a job in Indonesia EuronetWorld. They need Java Wireless programmer. I want to learn about it but where to start?I only got right now is JAVA 2 Weekend Crash Course by Julio Sanchez and Maria ...

do u understand this?

394 byte By mr_dronskia at 2007-9-28 2:59:45
plz, check the diagram at http://www.mycgiserver.com/~dronskithis is considered to be more a high-level diagram, than a design one. does such model communicate the idea? i'd like to here from you concerning exactly how clear the model is. after your reply i'll describe what i really wanted to ...

sounds

123 byte By mslva at 2007-9-28 3:00:28
How do I play sounds on my soundboard?How can I access it?Is there a function "play"?Thank you.

tool to describe my database in UML

186 byte By sthevoza at 2007-9-28 3:07:02
Hello,I'm looking for a tool (open source if possible) which describe an existing relationnal database automatically in UML.Any ideas?Thank youSylvain

looking for a algorithm called push down atonima?

165 byte By johnstonska at 2007-9-28 3:08:58
I am trying to get an example of a search algorithm called a push down atomina I think that is the name but not sure.thanks,steve

Compression Algorithm

347 byte By fooFiga at 2007-9-28 3:09:25
I'm writing a compression utility for university but I don't have lotsa ideas.Does anyone have good ideas for a easy-and-a-bit-smart compression? (not just CSSD - I mean the one that squeezes just files that are like AAAAAAAAABBBBBBBBCCCCCC etc...) I read Houffman, Saucerman and the Sandwich ...

question about graphics

349 byte By prologcodera at 2007-9-28 3:11:13
Hi forum,I've had a number of game ideas kicking around my head for years. I'm looking at doing a bit of a prototype of one idea over the next month or so. I've been using Java on and off for years, but I've never really gotten into the graphics side of things. Does anyone know of some good ...

Why EJB?

284 byte By biku123a at 2007-9-28 3:11:40
Hi all friends,I am a beginner of J2ee technology.But I could not find the exact answer of "Why Ejb?"(what are the advantages of using EJB). Can any one plz tell me the answer of that or give me some links, so that I can find the exact answer.RegardsBikash

client/server communication with XML

181 byte By andrzejra at 2007-9-28 3:14:07
Hello!I would like to create interface to my J2EE application for XML. Application client could be wroten in any language so I should use XML. Any good point to start?

Mapping Business Objects to SQL Tables

716 byte By simonecha at 2007-9-28 3:14:33
Hello all,I'm in first OO complex project and I've a few question regarding how to map SQL tables into Business Objects (and viceversa).The project is a complex web site so I access Business Object from JSP.The difference I noticed with JSP vs other apps is that all thing is stateless, ie., ...

Design for mirroring keytyped events for a shared editor

724 byte By ADBROWNa at 2007-9-28 3:14:51
Hi there,Can anyone suggest a layout for an algorithm which will allow a shared editor to handle keytyped events and have that mirrored in the listening client?So far the received packets get added to a JEditorPane by a setText() call, but this is useless as it overwrites anything in the ...

Version Number

608 byte By bharavi2000a at 2007-9-28 3:15:21
Hi , I read the Version Number Pattern in EJB Design Patterns. What happens in a System where large no.of clients are interacting and doing millions of transactions where in they will be updating data .since in between the updates the version number will change and they will get the message ...

A way of sorting

568 byte By ellogia at 2007-9-28 3:15:44
Hi!I'm trying to develope a point sorting algorithm, but I need to do it lexicographically, and I don't know how. I have a set of segments, and I need to sort its points according to the next rule:(x,e,y) , where x and y are the usual coordinates and e=0 for a left endpoint of the segment and ...

Open Source Java 3D Game SDK

355 byte By Noppera at 2007-9-28 3:17:17
On http://sourceforge.net/projects/java3dgamesdk/ you can findan Open Source Java 3D Game SDk. It usese no native classes.Features:- Starting in full/window screen- Invisible Mouse Cursor- Game Mouse (Cursor stays centered on the screen) and Keys- Loading of 3D Milkshape3D Models- Animating of ...

any 1!!! Help for a generic ecommerce engine

180 byte By pervaizgula at 2007-9-28 3:19:46
Hii am trying to develop an ecommerce engine. was just wondering if its possible to make it server independent i-e can also plug into ASP/IIS Server, Cold fusion etc.

Please help with KeyListeners!!!!!

821 byte By srj6a at 2007-9-28 3:19:52
Hi...I am trying to make the Snake game. I am working with keyListeners...I have never worked with keylisteners. So this is what I have to activate my left arrow key....public void keyPressed(KeyEvent e) {int key = e.getKeyCode();snakeLeft = ...

please help me to sort my else if problem

685 byte By leenash76a at 2007-9-28 3:22:01
please help me to sort out my if statement. Because, my if statement never ends. It goes on to the next else statement after completing the task of the if statement.Below is the coding:if ( Age<25){price = inputBox.getDouble("Enter Destination Price");subtotal = (tickets * price);Total= ...

MediaTracker does not wait... why?

2214 byte By Cradle22a at 2007-9-28 3:29:59
Hi!I've been fiddling around with this for quite some time now, and I can't get it to work correctly...I have to load 36 images for my applet (the actual number doesn't matter, it won't work with a single one, either). I do this in the init method of my applet.After the load command I add ...

OlliPekka

86 byte By javatypoa at 2007-9-28 3:30:56
I found this topic whle searching the forums.Can you send me that class?

string pack and unpack

652 byte By EMdYa at 2007-9-28 3:32:06
Hi, i齧 having trouble trying to write a methode to unpack a string packed with the following methode.can some one tell me how to write the unpack methode ?thanks.public String pack(String s) { byte[] a = new byte[16]; //If the string is an odd length then pack with an F if ( s.length() % 2 == 1 ...

Read morePage by Page iterator does not solve DB bottlenecks?

1165 byte By simonseea at 2007-9-28 3:32:26
Hellou people,I've come across several implementation of Page-by-Page Iterators. OK, the one mentioned in J2EE Core patterns does solve some problems, but I think the best implementation not only iterate in memory but on the DB access level.Most real project implementation that I see retrieves ...

Algorithm Resources?

242 byte By RudolfHa at 2007-9-28 3:34:34
Hello To all in the forum,Will anyone please send me any web urls' or book isbn numbers you might have on algorithm design, explanation or just plain existing algorithms.It would be much appreciated, thanks.Cheers

What is diff bet. facade and adapter pattern?

52 byte By planswermea at 2007-9-28 3:36:26
What is diff bet. facade and adapter pattern?

why ejbPostCreate()

87 byte By planswermea at 2007-9-28 3:36:27
Why ejbPostCreate() is used in entity bean? why it is not there in session bean?

How LDAP stores data?

86 byte By planswermea at 2007-9-28 3:36:29
What is the diff bet. LDAP & Data base?How LDAP stores data?

Problems with keyListener in game

4216 byte By aslanEa at 2007-9-28 3:38:58
Am creating a very simpel raptor game and having problems with my keylisteners. The problem is that when am moving the spaceship to the right, with the right key button and push the space button(shoot button) in the same time, the spaceship stops. How can I solve this problem? I want the ...

Front Controller Pattern and issues

827 byte By jdubchaka at 2007-9-28 3:39:33
Hi,I've implemented the front controller pattern using a Servlet and some JSP pages. The issue I have is that if the JSP page button is clicked, the controller handles the request and performs the proper forwarding.But for instance, if I type in the URL for the page directly without going ...

Testing a 2D array for four elements at once- Game (Connect Four)

10848 byte By u_topiana at 2007-9-28 3:39:56
Hey,This is my first forum at this specific location, so if my jargon or anything else is screwed, just ignore it....Ok i've coded this game "Connect Four" where you drop a chip into a column until you/opponent wins. you can win by connecting 4 chips diagonally, horz, vert. etc...Do you get ...

its a car game

684 byte By zainuluka at 2007-9-28 3:40:07
Hi, I am building a car game and need some help. first for the code.[code]//CarControlclass CarControl{protected final double TWO_PI = 2*Math.PI;double ux, uy, time_scale, angle, velocity, turn_rate;boolean on=false, left=false, right=false;public CarControl(){}public void leftTurn(boolean ...

Collision detection

239 byte By thecodewarriora at 2007-9-28 3:40:24
Im writing a game and I need to know how detect a collision between a moving sphere and a cylinder. If any of you could direct me to an efficient algorithm to solve for the point of intersection I would really appreciate it. Thanks.

Iteration in sequence diagram

391 byte By spielera at 2007-9-28 3:43:31
Hi,from the UML Spec about Sequence diagrams:Variation: IterationA connected set of arrows may be enclosed and marked as an iteration.But it does not specify [em]what[/em] is meant by a 'connected set' and[em]how[/em] to mark it as an iteration.At least I can't find it.Does anybody know how ...

Need help immediately on WindowEvent!!!

224 byte By srj6a at 2007-9-28 3:43:37
Does anybody know how would I add windowListener to a JSwing object..The compiler will not let me do this:contentPane.addWindowListener(new SnakeUI.CloseWindow());because contentPane is a JPanel..

Game is getting slower and slower?

5282 byte By aslanEa at 2007-9-28 3:44:28
Am creating a spaceship game, but my problem is that the movement of the spaceship is getting slower and slower. I the end it completly stops moving! What am I doing wrong?import java.awt.*;import java.awt.event.*;import javax.swing.*; class Raptor extends JFrame implements ...

Java Applet Grey Box

600 byte By ptom98a at 2007-9-28 3:46:38
Hi,ive been doing some java game applets, and posting them up on my web site ( http://www.ptom.co.uk) but one thing ive noticed on some sites (ie. http://www.popcap.com) is that they dont display the nasty grey box that always appears when your classes are beeing loaded, how do they do ...

association/dependency

499 byte By mohdja at 2007-9-28 3:48:07
Hi,I have few clarifications.Say if we have a object of class2 instance that is created in method1 of class1 then should we represent the class diagram with class1 and class2 as two classes with a relation from class1 to class2 with direction pointing to class2 or since the instance of class2 ...

String comparing

453 byte By nille40a at 2007-9-28 3:50:24
Is there any good algorithm for comparing two strings? For instance, - 'hello' compared to 'hello' would return 1. - 'hello' compared to 'hallo' would return something like 0.95. - 'hello' compared to 'It seems like the wind's kicking up' (Jay Leno's on - I quoted him) would ...

Database Design

529 byte By amgandhia at 2007-9-28 3:50:48
Hi Ppl,What is the best way to insert this chart(it's data) in database.NAPIER 8TE AUTE 105NORSEWOOD15105DANNEVIRKE1815105WOODVILLE201815105PALMERSTON NORTH This chart represents a fare from one city to another. I need to store these fares in a database. What I have done now is created 3 ...

Software Development Process Questions?

1812 byte By letayloma at 2007-9-28 3:53:58
Hi guys,I am in a very interesting situation at work. I am in a short break between projects and am attempting to put together a company "software development process" that we can adhere to in future.However, I am struggling in getting this thing started and need some help.I'll give you some ...

null metadata keyword -> JCP idea if enough support ?

3018 byte By trix1234a at 2007-9-28 3:54:22
Null Metadata Keywords,In an ideal development world we apply proof of correctness algorithms to our source code to prove that we've handled all possibilities and there are no bugs. We need to ensure that all functional possibilities are handled. Ideally we need to tie all the various ...

Car game views points

870 byte By zainuluka at 2007-9-28 3:54:35
(1)Hi, in my car game(top view racing). It drives about on the screen but when you ask for its current position, it gives the current position with respect to the viewport rather than the actual position it is on the map(note that the map is bigger than the view point and so scrolling of the ...

Disposing a Fullscreen Frame with BackBuffers throws Exception

2022 byte By MGodehardta at 2007-9-28 3:55:31
I am using the new JDK1.4.1_01, when i create a Frame and switch the Frame to Fullscreen and call this function to destroy the frame a Exception is thrownjava.lang.NullPointerException: component argument pDataat sun.awt.windows.Win32BackBufferSurfaceData.initSurface(Native Method)at ...

simple: is jsp considered a "component"?

221 byte By dblazqueza at 2007-9-28 3:56:23
Hi!My question is so simple as: is a jsp page, that generates dinamically wml content, considered as a "component"?, must be represented as box with two little boxes in its left side?thanks in advance

Java 3d multiplayer space game Elite/Privateer/Jumpgate style.

1299 byte By trihaa at 2007-9-28 3:56:40
Hi guys.I dont know if what Im thinking is possible in Java today but let me elaborate on what Im thinking and what I see is needed as of skills.Anyone that has played Elite, Privateer or Jumpgate knows what Im thinking. A 3d space sim game with a very good flight physics model, a very good ...