Hi,I've just noticed a topic from someone else with the same problem.. and yes it was homework. But I've done it for myself and could just do with any suggestions on how to speed it up.The problem was to take 2 strings s1 and s2 and check whether s2 can be made by rearranging some of the ...
Im new to the world of programming and need help with pseudocode, if anyone could give me a little help id be really grateful.I need to write this in pseudocode but am stuck on how to explain it in pseudocode.Car exits car park but first puts ticket with date and time printed on into a ticket ...
Hi,I just did an applet game but I just found out that it won't work on other computers browser and I think it becaues they use older version of JRE (I have JRE 1.4 installed on mine). I would like to know if there are any way or any programs that I can use to check if it support older version ...
436 byte By
Boz_Leea at 2007-9-28 0:40:23
I'm kinda new to java, but not new to programming...I want to get a particular character to walk or do anything, meaning i want to use several images for a characters actions, im thinking of gif files, as they are the closest to small image files. And be able to control the flow of ...
462 byte By
force3ka at 2007-9-28 0:40:50
Hi can someone help me out, i need to create john conways game of life and using JFrame, and i am fairly new at java and was wondering if you guys could help us out. it you don't know what im talking about visit - http://students.seattleu.edu/maidungh/Programming/Java/gameoflife.htmlthat site ...
hi...I want to process road in one map. to be easy in that map there is only a road on it. let say i need to know/calculate a distance between to point on the road, how can i do this. The calculation between this to point must including not only one path, but also using any different path. I ...
398 byte By
bregotya at 2007-9-28 0:46:49
Hi, I need some small help regarding writing an algorithm. I want to find out maximum array values for given random array.sample data:Input :A[5] = { 3,2,7,4,1}//here i'm giving random values in an arrayoutput : 1,2,3,4,7// here i need output like ascending orderif anybody knows ,please help ...
Will memory be allocated when i do assignments of array of objects.For instance,class A { boolean [] bits;A (int num){bits = new boolean[num];}}class main{A [] obj;main (){obj = new A [4];for (int i=0; i<4; i++){obj = new A (10);}}breed (){A temp = obj[0];//** Is memory where obj[0] is ...
I'm currently developing a game for color-screen mobile phones that requires the use of PNG images for the characters. (It's a game based on characters created by the design department at my company).Now, of course, different phones has different screen sizes. This difference doesn't matter ...
I beleive this program implements the fastest drawing "algorithm" possible in Java. Is it possible to speed it up? Can volatile images be used. Anyone?import java.awt.*;import java.awt.image.*;public class Test3{public static void main(String [] args){try{ Frame frame = new Frame(); ...
479 byte By
we_area at 2007-9-28 0:55:41
hello everyoneI am trying to write a he-man fighting game. I have just started and am pretty new to game devlopment, but thanks to java.sun I found the animation to walk. I used that code and edited for jumping and throwing a basic punch. my problem is this. all the images I have are jpgs from ...
24 byte By
Abusea at 2007-9-28 0:55:52
I have a gift 4 u
When Image is obtained using getImage() method , how toobtain date of creation or another header value if image isobtained using getImage method.
MEETUP with other local Java developers to network with each other and talk about jobs, code, architecture and innovation in San Francisco on Monday, November 18 @ 7:00PM. This is a FREE event.Up until 3 days before the event, you can still vote on the location in San Francisco that the JAVA ...
Just looking for some info on technologies use for game development...Maya, 3d Studio Max, lightwave, openGL?java, c++?what do people use?
535 byte By
jGizmoa at 2007-9-28 0:59:33
Due to little bit boredom, hence I started this line today. Hope next time I check forum again will be more.//Spec===========================================Target: appletSDK: 1.3Limitation: no use of external source such as images and soundGame name: JAVA MONSTERGame type: maybe we can design ...
574 byte By
ckminga at 2007-9-28 0:59:53
i'm working on a game project where there are character which are controlled(the movement) by player(ourself). The graphic of the character is an animated GIF, and i display the GIF using ImageIcon. until now nothing is going wrong, the image can be display. but when i move the character, the ...
Hi, my next project (thanks to noah.w, and several others who have helped me develp my previous games), is going to be a 2d character adventure game. I want to do this to learn how to do tile like map games without all the complicated code. Its going to be like Mario games for the old nintendo, ...
At the time of this post, the Game Development forum was forth on the list. That must be record...
I would very much like it if some people would post some very very (i mean very) simple games with source code. I just started programming games about two days ago. Any post would be helpful.Thanks.
What do you mean when you say that in the MVC architecture multiple views are caterred to by the same model . Kindly explain this if you can achieve this with MVC ?
hi,Can anyone tell me the class diagrams of a simple java notepad.i'm a very beginner in UML.thanks in advance.Moazzam
i am searching for a rl-skeleton for games like nethack, angband, adom,...
hi there.I am currently working on a college project and it should be using OO Design, I got a problem to design a class diagram and not sure how to apply MVC on this API project.what i got so far is.Data classes - this is a set of data classes.1) DataSetGroup2) DataSet3) DataInAPI classes - ...
i'm really stuck i need to write a parrell soultion to the prefix sum problem. i'm new 2 java and v.confused any help anybody can give would be major major help
308 byte By
JTeena at 2007-9-28 1:11:18
I have an application that uses fullscreen mode and a JFileChooser. The problem is that whenever the JFileChooser closes it leaves an ugly grey rectangle. Is there any way to avoid this? Maybe if I make the JFileChooser render actively it might work, but I don't know how to do this. Anyone ...
1113 byte By
valjoka at 2007-9-28 1:15:34
For example, I need 2 classes having the same methods but working with different object types. Should I write the same code twice?interface I { getValue(); setValue(value);}class A implements I { Integer value; Integer getValue() { return value; } setValue(Integer value) { this.value = value; ...
I constantly hear about Java replacing C++. Simple as it sounds, I do not find it easy to use Java for simple/small tools like the one that I am looking at. Any suggestion to re-design this tool using Java/jdbc/jsp/... will be helpful.A Simple tool that takes input from a text file and changes ...
if you have an array of buttons how can you tell which one is clicked.
How do I map my business classes that implement inheritance to my DAO layer?Do I create a single DAO to my class hierarchy?Do I inherit one DAO from another one?Or what?
How do I map my business classes that implement inheritance to my DAO layer?Do I create a single DAO to my class hierarchy?Do I inherit one DAO from another one?Or what?
I'm trying to do some simple background scrolling for several layers of background images, where each layer scrolls more slowly than the one before. I'm working with the modulous operator and the player's location... What I've written seems correct in theory but I'm getting jerks and ...
Is there a easy way of multiplying and adding binary numbers i JAVA? Especially big binarynumbers.
HiI need to find out the actual code that makes some of the methods in the API work. Anyone know a site where i can find this?Chris
332 byte By
fdepinea at 2007-9-28 1:28:34
Hi.I have a big problema: float type is not supported by MicroEdition.Well, I need to do a multiplicate and a division, so I need to emulate by anyway...For example:(4,75 / 30) * 3600The result for this need to be = 570How can I do that?Please, help me if u ...
hello. i'm programming my first game. i'm stiil working on the skeleton, a friend of mine hopefully is drawing the gif images i will use.it's pretty simple. little gnomes run around on the screen. you click on them to send them to jail. if a loose man hits the jail, everyone is let out.all ...
Hi. I just started programming games a while ago and I'm having problems with this code. What I'm trying to do is move a ball across the screen. I got it so it does that. But, I wanted the ball to reset itself when it reaches the edge of the applet. The main problem is that when the ball ...
435 byte By
claesh1a at 2007-9-28 1:31:43
Lets say I want all subclasses of a certain class to be created through a factory. I want to disallow instantiation of subclasses through direct instantiation using "new" .How can I enforce that? I would like the baseclass to enforce this, so that it should not be possible to define subclasses ...
922 byte By
jenny_a at 2007-9-28 1:32:36
Hi everybody!I have a delicate sorting problem and may know how to solve it, but my brain gets stuck with the implementation! I have a sorted LinkedList. The listed objects are sorted after an attribute: MyObject.time and looks like: [lowest .... highest]. Dynamically I want to (during runtime) ...
346 byte By
djapsa at 2007-9-28 1:32:53
Help! I have just started using Java, and already I need to create a simple game, but I am having problems already. The game is designed for 2 player with the one human player and the computer. Players alternatively take sticks from a pile, the player taking the last stick loses. Any Ideas? ...
It seems to work fine on win2000 in IE6, Mozilla and Opera, but I've got some perfomance-problems in the keyboard-handling on a 300Mhz win98-machine.It's the game "Tetris" under "Mulitplayer". It needs Java ...
Hi all,I'm fairly new to Java so I don't know if this is a stupid question or not...I have written a 3d virtual environment creator where you can design a world, place objects and characters, set the textures and alter loads and loads of parameters (ranging from gravity, terminal velocity, ...
Hi,I developed a java app, which I want to distrubute. The app contains:1)*.class files2) a /sound directory with sounds files3) a /images directory with images.The things I am interested in are:1) If I use jar to package everything, should I modify my code, so that it will correctly locate the ...
1546 byte By
roibma at 2007-9-28 1:37:11
Hello there,I need to code a function that returns the value of the next id fieldin a table(something like sequence.nextVal does in Oracle).This might look pretty easy but there are many different ways to do it.I'll list bellow some I've thought of:1) I create for each table that has an ...
Technology can be seen as intention amplification rising at an exponential rate. Research and development opportunities exist in the developement of "right use of will" to help the dna achieve its implicit agenda at an accerated rate. Soon, in our world, we will experience an explosion of ...
561 byte By
felipena at 2007-9-28 1:38:41
I am starting a Java project that has web and desktop interfaces. I am designing a multi layer solution like:- persistence layer (PL)- business rules layer (BL)- UI layer (UI)I strongly want to reuse PL and BL, independent of wich UI I am.Should I use Java Beans as BL or PL? EJB?What about MVC ...
Hi,I'm new to j2EE as you may cater from the question.The question is, should Entity beans and Database tables be a 1 to 1 relationship i.e. for each database table there should be an entity bean?I don't think this should be the case, but if it is, then isn't there a case that we may end up ...
I like to think of myself as a purist when designing OO relationships. Specifically, I don't agree with having classes in one package (com.foo) reference classes in a 'sub' package (com.foo.bar). I also don't agree with a class instantiating subclasses of itself. The way I see it is that ...
Hi,I have a java application with a gui. My teachers learned that the logic classes shouldn't receive any gui classes in parameter..but i would like to write messages (informing on what's happens in my program)into a panel of my application. But i can't see how to do that without to give my ...
I am new to j2ee and as per the j2ee tutorials 1. I have installed j2ee sdk, 2. installed jdk 1.3.1 3. installed ant 4. set JAVA_HOME 5. set J2EE_HOME 6. set ANT_HOME, but when I try to start the j2ee server on my command prompt, I am geting follwoing error, what am I missing ? Please ...