can you help make this faster?

913 byte By veryverytireda at 2007-9-28 0:33:32
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 ...

pseudocode help

830 byte By BlackadderIIa at 2007-9-28 0:35:46
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 ...

how to test applet test with older JRE?

604 byte By bluedragonza at 2007-9-28 0:36:25
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 ...

Game animation...

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

John Conway's Game of Life

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

map image processing.. need an idea..

360 byte By adputra2a at 2007-9-28 0:46:21
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 ...

ascending order values?

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

Memory allocation for array of objects

615 byte By Schmike07a at 2007-9-28 0:49:31
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 ...

Scaling .PNG's in MIDP 1.0

1005 byte By ericprata at 2007-9-28 0:50:37
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 ...

Need for speed

2346 byte By patrikolssona at 2007-9-28 0:52:36
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(); ...

Beginner to game programming

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

javatypo, reply here :)

24 byte By Abusea at 2007-9-28 0:55:52
I have a gift 4 u

How to obtain date of creation if image is obtained using getImage()

166 byte By sharmilaspxa at 2007-9-28 0:56:51
When Image is obtained using getImage() method , how toobtain date of creation or another header value if image isobtained using getImage method.

San Francisco Java MEETUP!

920 byte By latchkeya at 2007-9-28 0:58:54
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 ...

What do people use to make game nowadays?

166 byte By NewbieKida at 2007-9-28 0:59:22
Just looking for some info on technologies use for game development...Maya, 3d Studio Max, lightwave, openGL?java, c++?what do people use?

OS game, everyone welcome!

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

problem with ImageIcon....

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

2d character adventure game..

1065 byte By javatypoa at 2007-9-28 1:01:36
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, ...

HEy everyone

105 byte By javatypoa at 2007-9-28 1:02:51
At the time of this post, the Game Development forum was forth on the list. That must be record...

Good example games for a very new game programmer

212 byte By drtbker2001a at 2007-9-28 1:03:05
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.

MVC pattern

171 byte By dhirajasrania at 2007-9-28 1:03:18
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 ?

Can anyone tell me the class diagrams of a simple java notepad

154 byte By moazzamfna at 2007-9-28 1:03:44
hi,Can anyone tell me the class diagrams of a simple java notepad.i'm a very beginner in UML.thanks in advance.Moazzam

wanted: rogue-like skeleton

81 byte By elvis_untota at 2007-9-28 1:04:27
i am searching for a rl-skeleton for games like nethack, angband, adom,...

MVC and OOD

1069 byte By OhMyGodIsJavaa at 2007-9-28 1:09:33
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 - ...

Help PLZ Parrell Prefix Sum Problem

170 byte By DeacoWarriora at 2007-9-28 1:10:36
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

Fullscreen mode and JFileChooser

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

How to describe templates in java?

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

Re-Writting C++ Tool Access and change database

638 byte By caryclada at 2007-9-28 1:16:31
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 ...

Help!!!!!!!!!!!!

77 byte By SunnyNalaa at 2007-9-28 1:18:26
if you have an array of buttons how can you tell which one is clicked.

Inheritance with DAO

197 byte By klause81a at 2007-9-28 1:19:06
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?

Inheritance with DAO

197 byte By klause81a at 2007-9-28 1:19:07
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?

background scrolling with % problem

2585 byte By markuskidda at 2007-9-28 1:21:40
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 ...

Multiplying and adding binarynumbers?

105 byte By andrea_tylena at 2007-9-28 1:24:42
Is there a easy way of multiplying and adding binary numbers i JAVA? Especially big binarynumbers.

Where to lookup implementation of java methods?

159 byte By i_am_lankya at 2007-9-28 1:28:11
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

Float type at MicroEdition

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

snag in my first game.

4798 byte By outawatera at 2007-9-28 1:29:48
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 ...

Having problems with this code.

4105 byte By drtbker2001a at 2007-9-28 1:31:02
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 ...

How to enforce factory instantiation?

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

Help!! How inserting new value in sorted array!?

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

SOS to a simple game....

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

Will someone check a game ?

343 byte By Storgaarda at 2007-9-28 1:34:07
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 ...

Will my game be quicker pre-compiled than running from an external file?

1193 byte By DrQuincya at 2007-9-28 1:35:02
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, ...

Packaging and Distrubuting a Java App

836 byte By jmichael73a at 2007-9-28 1:36:08
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 ...

Autoinc function

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

The Virtuebios and Mortality Resolution International

990 byte By the-singularitya at 2007-9-28 1:38:21
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 ...

MultiLayer OO Design(applied in web and desktop UI on same solution)

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

Entity beans and Database tables relationship

456 byte By JagBainsa at 2007-9-28 1:42:34
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 ...

returning an instance of a subclass

1192 byte By dlgrassea at 2007-9-28 1:44:51
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 ...

Architecture problem to handles messages

758 byte By gaetan06a at 2007-9-28 1:45:40
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 ...

starting j2ee server

1745 byte By bthirnrayana at 2007-9-28 1:46:02
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 ...