Animation in applets

4071 byte By prhodes2a at 2007-9-28 15:13:47
This is a prototype of a game that I am trying to create. It is supposed to create a large rectangle then with the user pressing the space bar, shoot a little square across the screen. But it doesnt't paint the square as its going across the screen. Here is the source:import ...

Turning player around?

412 byte By sharkeyba at 2007-9-28 15:14:02
Hi,This is probably a dumb question but I have a character which is an image and have the animation of walking from left to right ok. How can I turn him around when the left arrow is pressed? The original image has him facing right but shouldn't I be able to flip the image around (facing the ...

Probability

597 byte By androgera at 2007-9-28 15:17:32
If I have a number of differents sets, how do i go about printing on the screen all the differents combinations that could be made with elements of each set.ex.set1 = {1, 2, 3}set2= {a, b}set3={x, y}all combination = {1,a, x}, {2, a, x}, {3, a, x}, {1, a, y}, ..., etc..in my case i have a ...

Tutorial Help

127 byte By davidrdostera at 2007-9-28 15:19:06
Can anyone please provide me a tutorial on game development, and/or provide me with a simple game code that I could try?

Flood Fill Problem

745 byte By ptom98a at 2007-9-28 15:19:21
Im trying to write a flood fill routine that will when given a certain x and y cordinate change the color of a specified pixel, problem is it cause a stackoverflow error when i try it in an image that is 400x400, heres the code im using already, can anyone see whats wrong....or know a better ...

Controlling FPS

370 byte By morefirea at 2007-9-28 15:19:27
Hi,Ive created a couple of java games but none of them seem to be very steady, speed wise. Im using a while(true) loop with a thread.sleep(n) to control speed, but this is slow, and unsteady. Im guessing that theres a better way to control the speed in a game, and also that holds the key to ...

JFrame

158 byte By IIIIIIlla at 2007-9-28 15:19:54
Ive got my applet opening up a JFrame that i want to close when the user clicks a button, is there some sort of method in JFrame i can use to close it?

i'm make game program on J2ME, finish program then have some problem

238 byte By bacsumua at 2007-9-28 15:21:10
hi.thank you for readingi make simple game program on J2MEso this game is run on Nokia 7201 Emulatorbut that is not run on Nokia 7650 Emulatorwhy is appear this problem?have you any no-how?

SW development method

420 byte By Roopea at 2007-9-28 15:21:24
Hi!I'm doing master thesis about defining software development methdod/process to my company. I'm very in the beginning in this but I have decided to concentrate on so called 'agile methods'.But now I'm asking does someone knows good source material where is described implementation of ...

ServiceLocator & EJB's on different machines

591 byte By mroosendaala at 2007-9-28 15:22:17
Hi,How can you adapt the servicelocator pattern so that it enables the lookup of EJB's on different servers? The problem is that the iiop adress (providerURL) of these beans can vary which means that the InitialContext needs to change. You somehow want to store this (iiop address) in a ...

J2ME Civilization...

146 byte By BluSeigera at 2007-9-28 15:23:34
Is there a version of this available at the moment I can use/contribute to or do I have to start my own project? Cheers,Chris

Threads

765 byte By prhodes2a at 2007-9-28 15:24:03
In the program I'm creating, I'm using a thread to shoot a bullet across the screen from the user. The problem is that while the bullet is moving across the screen the user cant move around until the loop is completed. Here's the code that animates the bullet:public void ...

Hangman for Nokia 3650

703 byte By nellis10a at 2007-9-28 15:24:23
Hi all experts,I'm wanting to create a simple hangman game for the Nokia 3650 for a Thesis due in September.Can you tell me what emulator and/or development kit I need to download from Nokia or Java in order to get started.My first task is to write HelloWorld! on a Nokia Emulator for the ...

Business rules inside the dabase - how to avoid

964 byte By maxsena at 2007-9-28 15:26:32
Dears,I have a friend who is working on our project and he is anOracle DBA. The problem is that he's been very stubborn when itcomes to the app's business rules. He insists that all of thebusiness rules should be inside the database, represented bytriggers, stored procedures and the ...

Discussion -- Call for answers : Class and Component

529 byte By kevnyanga at 2007-9-28 15:26:50
Dear all,1. Component has a clear seperation between the specification and implementation? I can't understand here.The interface define some operations,but eventually we need coding to realize it. Where is the speration? A class also has methods and coding to realize it. But why we never say a ...

Value objects

218 byte By tikrama at 2007-9-28 15:27:48
As i understand value objects can be simple java beans or any collection also.I am using java beans as value objects but some of my beans are really big (having large number of properties)....is that bad design.

how to draw line

318 byte By srini4u007a at 2007-9-28 15:29:45
hi guys.,..I am finding difficulty to figure out (x1 y1) and (x2 y2) from graph to draw line Y=mX+c . i have to find out these co -ordinates , since drawline accepts co ordinates only.I have eqn like: w1x+w2y+w3.any one has idea..how to find co ordinates...Thanks in advance. ...

how to draw line

318 byte By srini4u007a at 2007-9-28 15:29:46
hi guys.,..I am finding difficulty to figure out (x1 y1) and (x2 y2) from graph to draw line Y=mX+c . i have to find out these co -ordinates , since drawline accepts co ordinates only.I have eqn like: w1x+w2y+w3.any one has idea..how to find co ordinates...Thanks in advance. ...

regarding to JButton

260 byte By hiran_ca at 2007-9-28 15:29:58
Hello,I have 50 JButtons whose have numbers on them in my applet for my game program.If I click any button,the number on that button should be erased and image should be displayed.pls give any idea for this.thanks,hiransatya

Right way to build / use quad tree?

975 byte By harleyranaa at 2007-9-28 15:30:00
Hi, the quadtree data stucture seems so simple, and fits alot of problems, but coding it properly is a problem.The purpose of the tree is to find which objects are with in a visible area.So each node has dimensions x,y,width, height. And child a,b,c,d. Plus a object list.The main method to ...

translate an entitiy relationship model to oo

875 byte By Soopa at 2007-9-28 15:30:56
hello,i have a question concerning the translation of an entity relationship model to an object orientated model:when i have two tables, e.g. "customer" and "contract", where the contract table has a foreign key "customerid" to take the 1:n relationship into account - how do i have to design my ...

Scene Scrolling

332 byte By JavaChipa at 2007-9-28 15:35:07
I would like to scroll an image from left to right. Does anyone know how to do this? If possible I would like to avoid using Swing.I was thinking about using an image strip and then maybe using the ImageProducer class. But I am not sure where to go from there.If someone could help me out I ...

Loading ...

453 byte By ranabpa at 2007-9-28 15:35:38
Hi,I was thinking on how i can load sound files into memory, before using them ? Actually my sound files are read using buffered reader, so basically the sound starts a lil later than it should. Moreover continous calls to a single sound file slows down the game very much, as i am using a ...

Questions being asked here?

929 byte By javatypoa at 2007-9-28 15:38:50
What has happened to all the pro programmers?And what is with these brain dead questions being asked here? Like someone asked about loading sound files into memory.. that can be easily done with Clip and DataLine classes, and that answer could have been easily found by looking at the api ...

Repaint Problem

944 byte By syednasra at 2007-9-28 15:39:24
Dear all,I am developing a 2D Graph generation application. I am using my own developed architecture for it.Problem is, i want to know about an effecient algo that would help me repaint the object once its properties are changed e.g: if i change the color of the curve or change the line width ...

KNAPSACK ALGORITHM

195 byte By theroyalviceroya at 2007-9-28 15:40:16
Any body have the source code for the file encryption and decryption using Knapsak algorithm. please help me. if you have this one pls mail me at theroyalviceroy@yahoo.com thank in advance

help plz regarding array and DB

801 byte By srmunnangi16a at 2007-9-28 15:40:45
hi ,i have a problem regarding sorting.I have 1 million records in my DB table.When i open my swing application i sort the records in table [ORDER BY col1,col3,col4] like that and want that order record ids .upto here no problem.i am getting the ids in array and in my swing application when i ...

Database Access Rights Pattern

386 byte By brucedba at 2007-9-28 15:45:18
Does anyone know of a pattern that is or can be used for managing the rights to data in a database?What I am looking for is to use a pattern that would allow me to easily match up a user with specific data and have some means of checking to see that this user has query rights to that data or ...

Measuring the length of a string

151 byte By ptom98a at 2007-9-28 15:46:58
Here's an odd one.Does anyone know if theres a way of finding out the length of a string, in pixels and not by the amount of characters?

Mobile Phone Games

101 byte By grimlock81a at 2007-9-28 15:48:07
Anyone point me to site(s) where I can look at some source code? I am keen to learn. Thanks =)

How can I know my UML design?

355 byte By icyrocka at 2007-9-28 15:48:46
I'm just new learners of the UML design .In my design ,my business logic is very few ,so I'm suspect that my design is right or not? Another is in my design should include one to one ,one to many relationship is mostly included .many to many relationship is not included.Please help me,how can ...

Framerate ! Howto

149 byte By ranabpa at 2007-9-28 15:48:58
Two things in my mind ! Help !1 - How do i implement circular motion ?2 - How do i measure / know my framerate in my java game ?

ImageProducer for per-pixel rendering

5127 byte By Abusea at 2007-9-28 15:49:05
I was experimenting with this last night, and after a few mistakes got it working.Although I understand this method of rendering will never be hardware accelerated, is it the optimum way of performing per-pixel rendering?my ImageProducer looks like this... (its a very minimalist class :D)import ...

write to bufferedimage and compatibleimages

369 byte By zuloa at 2007-9-28 15:49:30
heyyou maybe remember that I made a breakout game, i use compatibleimages in fullscreen and draw them alot of times..300+someone told me to use a bufferedImage and draw the image to this bufferedImage first then just blit the bufferedImage.is this correct?will that result in 1 blit instead of ...

How to insert data into database ?

888 byte By pk2068a at 2007-9-28 15:49:54
I know how to use querries, but i don't know how to form an INSERT sql String, so please help me!for example:Connection con = null; try{Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");con = DriverManager.getConnection("jdbc:odbc:V_PB2");con.setAutoCommit(false);Statement s = ...

Help on this program!!!

3858 byte By owsa at 2007-9-28 15:51:36
I have a problem with these programs.When complied, error message is that cannot resolve symbolsymbol:method linearEquations()location :class MatrixOp p.linearEquations ^Question:how do i link the 3 files together? :how to solve the error msg? :anything wrong in the programs?--class Input ...

My Client and Server hate me...

856 byte By IIIIIIlla at 2007-9-28 15:53:51
I dont get it, what is supposed to happen is as follows:The client sends a message to the server, "Make" in this case and the server responds with an integer which i am using for the x of a point to be used in the client...so far this works fine. however, the client is then supposed to send ...

Entity Bean / DAO

655 byte By sane_techiea at 2007-9-28 15:55:31
I have a design decision to make whether to go for DAO / entity bean?I have identified the domain class which in turn has led me to identify the persisitent objects and ofcourse do the mapping n design the database..Now my question is in my domain class - i have identified 10 tables,so do all ...

Convert client app to J2EE

1606 byte By robcherryjavaa at 2007-9-28 15:56:26
Hi all,The question I have here is a very high level one and I'm hoping someone can provide me with some good advice and pointers. I currently have a client desktop application that can access either a local or a remote database. The client app is used to keep track of business clients, ...

Loading standard 3D model file formats

818 byte By YATArchivista at 2007-9-28 15:57:52
There are a few threads about loading .OBJ files, for instance, for use in Java3D, but there appears to be little if anything here, and on the Internet in general, about loading standard 3D model formats (.OBJ, .3DS, .LWO, .DXF) for use with GL4Java. It looks (although I haven't downloaded the ...

Permutation Algorithm

807 byte By DLida at 2007-9-28 16:02:48
Hi, could someone help me in producing an algorithm involving k-subsets.For example if there are n numbers 1,2,...n a user can then select how many numbers they want to see...for example we have 5 numbers {1,2,3,4,5} and a user wants to display 3 numbers the values are(1,2,3) (1,2,4) (1,2,5) ...

Code To stop Trial Version Software after 30 days

203 byte By jony4_ua at 2007-9-28 16:05:39
Sir,I am making a 30 days evaluation software, please send me code on how to compare date with system date so that when a user installs the software it stops after 30 days.Thank you.

extracting images from other games

257 byte By luisofta at 2007-9-28 16:07:36
Hi there!As I am not a pixel artist I want to "borrow" some graphics from other games. Does anybody knows a tool for extracting backgrounds, sprites, graphics from other games? I dont want to capture screen...Thanks,Luiz Fernando

png image creation in J2ME

1490 byte By zarikoglua at 2007-9-28 16:08:40
When I developed a graphical application using j2ME[tm] and attempted to display an image file using the Image.createImage(String) method, I received an IOException.The image is a .png image, which I created by converting a .bmp image using Microsoft Photo Editor. I also downloaded some ...

Help Needed For Algorithm Assignment?

427 byte By Maudehsera at 2007-9-28 16:10:43
Hi there! Well I'm quite new to this, therfore I would greatly appreciated if some1 could help me with my assignment.Assignment:Make an applet that makes an object(red oval) move around the applet window by using only four buttons(Up, Right, Down, Left).I managed to do the button and the oval ...

sorting by alphabeticial order

909 byte By bigexplorera at 2007-9-28 16:13:38
Ok...I have a Vector of Person objects which contans a first, last, adress, and phone number. I need to be able to sort this Vector three ways by first, last, and the address. I don't care about the phone number.My Person class extends Comparable and has a compareTo method. Problem is, I am ...

Is there any substitution for VIRTUAL FUNCTIONS (C++) in Java

139 byte By vasilyicha at 2007-9-28 16:15:19
Is there any substitution for VIRTUAL FUNCTIONS (C++) in Java ?May be some trick I don't know about?Thanks in advice.

How do you make a Color of an Image transparent?

494 byte By rufy_dudea at 2007-9-28 16:17:31
I know it sounds like a Newbie question... because it is...But the newbie section was hopeless so I came here,I am making a game where I have 2D overlayed graphics, but I don't know how to make the background colour of the Image transparent so that you can see the background scene.By the way, ...

Help needed for assignment?

1941 byte By Maudehsera at 2007-9-28 16:17:45
Hi there everbody! Well I'm quite new to this, therfore I would greatly appreciated if some1 could help me with my assignment.Assignment:Make a Game applet that makes an object(red oval) move around the applet window by using only four buttons(Up, Right, Down, Left).I managed to do the button ...

Behaviours make objects move in jumps when they are put far from origin.

530 byte By keltika at 2007-9-28 16:18:05
Hi, i am trying to represent the solar system in java3d, but i have a problem that when you put an object at a point eg.(10000000,10000000,10000000) using a transform3d then attach a behaviour like keyboardbehavior to it, it moves in big jumps instead of smoothly. It will mroe smoothly the ...