Drag and Drop !!! Help

730 byte By silla_34a at 2007-9-28 3:56:50
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 ...

Saving Highscores

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

Timming

221 byte By Dudsmacka at 2007-9-28 3:59:45
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?

Randon Numbers

373 byte By sbsquarepantsa at 2007-9-28 4:00:59
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 ...

Progress bar, or something similar.

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

MMBase: Is this right?

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

407 byte By erikpricea at 2007-9-28 4:04:52
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 ...

style question on mediator pattern

717 byte By ioannisca at 2007-9-28 4:05:14
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 ...

packing int into a byte array

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

Design Question (send emails using threads)

821 byte By kathyhoustona at 2007-9-28 4:06:06
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 ...

is ai you know but how?Problems!!

422 byte By zainuluka at 2007-9-28 4:09:13
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 ...

getPixel/putPixel in fullscreen mode...

497 byte By asmodean_999a at 2007-9-28 4:15:58
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 ...

Freecell player

1893 byte By dominic1976a at 2007-9-28 4:16:19
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 ...

Game HardWare Acceleration

502 byte By pommyJavaa at 2007-9-28 4:19:05
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, ...

Fireball?

134 byte By Alderiana at 2007-9-28 4:19:29
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?

'New Game'

310 byte By samboguea at 2007-9-28 4:19:37
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 ...

PixelGrabber problem

2105 byte By zainuluka at 2007-9-28 4:20:06
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; ...

Cross Grained And Fine Grained Object

1807 byte By arghyabanerjeea at 2007-9-28 4:20:41
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. ...

Strange results with fullscreen mode

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?

Java Collections

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!

My First game

201 byte By Jeffrey_Cheea at 2007-9-28 4:25:08
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

Object by path

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

New to UML-need an example

421 byte By venkatap1a at 2007-9-28 4:32:51
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 ...

rotate bitmap..

115 byte By qduong00c1a at 2007-9-28 4:32:57
please help me to rotate a image about specific point (e.g center of image,not Point(0,0).Thanks you!

Track public classes, interfaces and methods by ID

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

CAR GAME in java 3D

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

SubHunt Game

5412 byte By repairman2003a at 2007-9-28 4:39:13
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 ...

Unable to start J2EE 1.3.1 SERVER

2168 byte By terry_513a at 2007-9-28 4:43:23
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 ...

Genetic Algorithm

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?

an Exception of JasperException

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

Needs Expertise...

661 byte By ignatius_anga at 2007-9-28 4:50:15
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 ...

algo

75 byte By piyushagrawala at 2007-9-28 4:52:12
is there any algo built in java to scale up or down a 2D matrix.....

Miss Pacman

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

images don't show

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

matrices and linear algebra

123 byte By shlumperona at 2007-9-28 4:57:04
is there a class that provides algorithms for handling matrices ( such as SVD, eignvalue decomposition and more... )

Rendering Images Quickly

1229 byte By Naerbnica at 2007-9-28 4:57:36
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 ...

Storing Error codes and its messages

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

Java 3D car GAME !!

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

Global Variables interface

259 byte By osipchbaa at 2007-9-28 5:00:06
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.

getHandle() and getEJBObject() problems

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

Optimisations of game code

883 byte By Jeffrey_Cheea at 2007-9-28 5:03:48
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 ...

350's topic in Java Game Dev. :)

29 byte By Abusea at 2007-9-28 5:04:35
and the 2946th post :P

A-Star

37 byte By goetzmatthias11a at 2007-9-28 5:04:50
What is the A-Star algorithme?

Converting Applet Code to Gui Code.

336 byte By jamesloughneya at 2007-9-28 5:05:05
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 ...

Canvas or Panel?

277 byte By ignatius_anga at 2007-9-28 5:05:59
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?

What I need for java game development?

250 byte By niksa_osa at 2007-9-28 5:06:19
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?

64 byte By niksa_osa at 2007-9-28 5:06:20
How can I recieve all topics from this forum on my email?

quick question

143 byte By javatypoa at 2007-9-28 5:07:31
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?

Java in-game components

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

Inputting accented charcters

456 byte By CarstenHansena at 2007-9-28 5:08:14
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 ...