Hi I have the drag and drop working within my programme successfully. Thank god !! I am able to drag buttons and labels from a source to a target. But what i am looking to do now is to take an action event on these button and labels when i drop them in the target area. Can this be done ? So ...
318 byte By
ahar010a at 2007-9-28 3:59:42
Hi, i've written a tetris game in an applet.But i want some way of saving the high scores of everyone on the server.Is they anyway to communicate the final score back to the server from the applet?I tried saving the scores to a text file but apparently the file would appear on the ...
I'm working on a basic wireframe engine (I'm new on the game scheme of things)...I'd like to be able recieve input as well as be able to have a delay between my animations...does anyone have any pointers for me?
I was curious as to how you can get good random numbers out of Java? I've tried random.nextInt() % 100 to give me 0 to 100 for instance, but not only does it give negative numbers, which is undesirable, but it also seems to repeat a lot, without all that much randomness, like perhaps having ...
719 byte By
Plowa at 2007-9-28 4:02:01
Im in the progress of making a small game for the first time. Here is my problem. When a user makes a selection on what mode they would like to play, the action listener for that button calls a function that does quite a few things, in particular, instantiates an array and fills it with 33 ...
1076 byte By
hdevaana at 2007-9-28 4:04:22
Hi,Recently I've been asked to write an add-on for a content management system called MMBase ( http://www.mmbase.org). After I read through their API documentation ( http://www.mmbase.org/api/1.4/) to try and understand the product I was left with a strange feeling. Either I need to learn more ...
Why is singleton pattern such a big deal? I have to admit it's kind of a big deal to me because it's just about the only design pattern whose implementation I understand... however, it's one of the design pattern whose purpose I don't understand. Why is it so important to have only one ...
hellothis is a question regarding development of big swing applications with a lot of panels with buttons, displays etc.I have a class called Controller which acts as mediator between all those classes in order to supply references between them. I have a GraphicsPanel which wants to get the ...
323 byte By
prshyama at 2007-9-28 4:05:30
I have a byte array of size 4. Say for example byte[] arr = new byte[4].How can i assign an int which is > than 127 to the array.say arr[0] = 200 cannot be done as it is > 127.In this case how do I split the int so that i can fit it in the array. Is there any general methodology for ...
Our app retrieves emails from database and sends those emails using qmail.To speed up we are using threads.case 1: The first design is that a SenderManager gets the email from db and distributes them to the threads.case 2: The other design is that each thead connects to db and gets the email ...
hi, i have a problem with my ai.ok i have a top view of a man with a gun....he has to find a person(the human player) in a room which is a square.I can make the man rotate on the fixed point i.hunter.setDirection(Math.atan((pl_x-compx)/(pl_y-compy)));basically this code just rotates.but how do ...
Hi, I've been doing some epperimentation with fullscreen exclusive mode recently and I need a way to put pixels directly to the screen (sorta, like myGraphics.putPixel(x,y,Color.white)). I've tried do emulate such functionality with a myGraphics.drawLine(x,y,x,y), but it doesn't work ...
have made a nice freecell player using only the java package downloaded from sun and windows notepad ;)I started writing it to see if it was possible to win any freecell game or if not all what percentage can be won. At first I wanted it to try all possible combinations of moves in a brute ...
Yo, does anyone know how to accelerate graphics?I made an aniamted gif file in adobe image ready,and try to add it to my game. The animation in my gameis crappy! It doesn't run smoothly. Its much easier todo animations in other programs such as adobeso i rather not do the animation in java, ...
I would like to know if there is any way of making a fireball, with images or other methods. Where can i find images like this?
This should be simple for all you experts:What is used to initiate the program from scratch again (i.e.new game), once completed?I have put a 'New' button in my 'File' dropdown, but don't know what code I should put in the actionPerformed method.Any help ...
ok i have a tilestrip which i use to tile the background(it is a top view of a racing track). I draw the tiles on to the graphics.screenImage = createImage(bgmapTileWidth*tileWidth,bgmapTileHeight*tileHeight);screenGC = screenImage.getGraphics();tiled belowfor(int i = 0; i <= numYtiles; ...
HelloI am preparing for a certification exam. I have come across few question. I am not sure about the answer. Please help me1. When designing a distributed system, remote access to fine-grained objects should be avoided. Why? A. Thinner clients are possible with coarse-grained objects. B. ...
140 byte By
JTeena at 2007-9-28 4:21:46
My game sometimes looks like this http://www.geocities.com/fgdfg_dfgdfgd/on windows 2000 and xp, has anybody else gotten this?
164 byte By
vladisfa at 2007-9-28 4:24:43
Hi All ,Please send a good stuff references about Java Collections performance.( Elapsed time for access , update , etc...)THANKS A LOT!
Hi everyone, I'm quite new to the java scene, and had just made a simple game of Tetris. Hope to hear opinions (good or bad) http://www.comp.nus.edu.sg/~cheefoos/Tetris.jar~Jeffrey
558 byte By
ngw522a at 2007-9-28 4:32:47
My goal is to be able to move objects (let's just say a circle to simplify things) in paths. I can move them in lines, triangles and basic shapes. Easy enough. I haven't tried circles, but I am sure I can do that also. The difficulty is moving them in complex paths, for example an 8-shape, ...
Hi, I am new to UML designing.I down loaded some material on UML but for full understading i need an example design of a complete system(small).Are there any examples available?if so please post the url(I searched the net, couldn't find any). or if you guys have developed some examples for a ...
please help me to rotate a image about specific point (e.g center of image,not Point(0,0).Thanks you!
688 byte By
juchlia at 2007-9-28 4:34:17
Hi All,I'm wondering whether there is a tool to assign a unique ID to classes, interfaces and methods (eg. within Javadoc) and track these IDs.The reason I'd need such a feature is that I'd like to do requirements tracking in an easy but complete way. I have a document containing functional ...
425 byte By
salutia at 2007-9-28 4:37:33
I just made a trial version of a car game in java3D.To see it in your browser you have to download the JAVA3d extension (the URL is given on the main page of my site)Then you have 3 keysleftrightSpace bar to slide.(technical slide) http://membres.lycos.fr/kazkamikazcontact me at ...
I'm having trouble getting multiple threads to work.Here is the source I've got so farimport java.applet.*;import java.awt.*;import java.awt.event.*;import java.net.*;public class SubHunt extends Applet implements Runnable{private Image dbImage;private Graphics dbg;int appletSize_x = 340;int ...
Hi, I AM WORKING ON Win 2000 Professional OS. I have jdk1.3.0_02. When I TRY TO start the j2ee server, it throws the following exception :-Logging for J2EE Server Version: 1.3.1-b17 started at: Mon Dec 11 15:46:06 GMT+05:30 2000..Using the Java HotSpot(TM) Client VM and the version number ...
151 byte By
Lucyj23a at 2007-9-28 4:43:59
Hello everyone, am a little stuck, heck alot stuck. Need to create a genetic algorithm in Java and need help fast! Where do i even start?
3985 byte By
najuraa at 2007-9-28 4:50:07
Hi,who can help me to solve the following trouble:when I viewed a webpage of JSP,I received an Exception:"org.apache.jasper.JasperException: Can't find method for cardid".A JavaBean Class and Some JSP pages were built by J2EE-EJB.Following contents are JSP page and JavaBean Class:========== ...
Hi Guys,I'm creating an applet and i need to have some buttons on at the top of the applet and the bottom of the panel i need to use it to draw using drawString drawREct and stuff... Anyone can advise me or have any example to show me? 1) it will take in the input keyed in on top.. and draw ...
is there any algo built in java to scale up or down a 2D matrix.....
323 byte By
ibosana at 2007-9-28 4:56:16
I don't think I ever mentioned emulation of Miss Pacman I did few months ago. Check it out. http://www.ibosan.com/pacwoman/index.htmlI tested on 2 machines only win 98 & 2000. Let me know if you detect any bugs. I am sure there will be some. Especially if you start the game while it is in ...
564 byte By
Zyphrusa at 2007-9-28 4:56:51
Hi everyone,I'm trying to display sprites, and when their origin leaves the screen, they simply don't get drawn. They "vanish" as soon as they overlap with the top or the left border. How do I display an image there. Example code demonstrating the problem :// none of these images will be ...
is there a class that provides algorithms for handling matrices ( such as SVD, eignvalue decomposition and more... )
This is probably yet another newbie question, but I have to ask anyway.I'm playing around with my first steps in the Fullscreen API, and Java2D, and I've been having some performance problems. I created a simple textured circle in Photoshop, saved it as a PNG with transparency, and loaded it ...
522 byte By
ash_ka at 2007-9-28 4:57:54
I have a small application in which I need to show error messages based on the error codes. There are three choices that comes to my mind for storing these error codes and its error message.1. Use simple java interface which defined keys and its values(errormessages)2. Use Resource Bundles (I ...
425 byte By
salutia at 2007-9-28 4:58:55
I just made a trial version of a car game in java3D.To see it in your browser you have to download the JAVA3d extension (the URL is given on the main page of my site)Then you have 3 keysleftrightSpace bar to slide.(technical slide) http://membres.lycos.fr/kazkamikazcontact me at ...
Is it a good OOP practice to have interface with a sole purpose of holding global variables in there. If not, then what design or pattern is good if I want certain objects to be available throughout the application using MVC architecture.Thanks.
1075 byte By
kikiia at 2007-9-28 5:00:37
I've a problem with getHandle() and getEJBObject methods.I create a new instance : statelessFundManager = statelessFundManagerHome.create();after i get the ejb's handler : Handle hdl=statelessFundManager.getHandle();I mark the reference as null: statelessFundManager=null;It works but when i ...
Hi everybody, I'm quite new to the java scene and recently have read up about the 4k game contest, I realised that there are so many kinds of code optimisation that can reduce memory/code/increase speed. Now I have a question regarding code optimisation.1> In most java tutorials that I have ...
29 byte By
Abusea at 2007-9-28 5:04:35
and the 2946th post :P
What is the A-Star algorithme?
Hello all, I am fairly new to java and have recently been given an assignment to design a game, using a GUI. But all the books i have on java explain how to produce the game as an applet. Can anyone tell me any information on how to change the applet examples into GUI's. Any help would be ...
Hi guys, What's the difference between Canvas and Panel? Since I'm able to draw on both of them? For example, I have got users input from text field and would like to draw something with the given values, do i use canvas or panel to do the drawing in an applet?
Hi.I have experience with OpenGL and Linux game development.But I don't understand what I need to make java games!What API? Any books or tutorials? Anything?What I need to know to make 2/3D java games?Thanks
How can I recieve all topics from this forum on my email?
Is it possible to right java video games for this, http://www.palm.com/products/palmm105/, kind of palm pilot. And using what API is so?
869 byte By
ngw522a at 2007-9-28 5:07:41
I have always wanted to create a game in java but I will not use Swing components for obvious reasons. Thus I have decided to create my own in-game components. Many will be simple like buttons, checkboxes and so on. I have some questions before starting that hopefully somebody can help me with. ...
Hi everybodyDoes anyone know how to get Java 1.4.1 to accept accents such as ?, ` , ^ and ? I can't make (Component).processEvent or (KeyAdapter).keyPressed react to these neither directly nor via the following character (e.g. ?. I'm running Windows XP with a Danish keyboard, but I would ...