Painting is confusing...

575 byte By ryuujina at 2007-9-28 5:08:29
hey guys,I'm doing an applet, but need to get some drawing of strings and rectangles into the applet.My question is 1) How do I call the same Paint method to draw only certain things but not everything? Do I use IF Loop and CASE to do the checking? Isn't it looks messy and complicate to the ...

Compare Objects

993 byte By gino02a at 2007-9-28 5:10:47
Hi,Following Situation:I want to read data from a file, and then pass it ti my own data structure:class Player{String name;Vector attributes;}class Attribute{String attr_name;int attr_value;}A Player has one name, but several attributes. When finish reading from the file, I put all the players ...

Clipping!

835 byte By Flowyesa at 2007-9-28 5:13:17
The requirement is as follows :We have a window with the height=d and width=c. In a coordinate system this window has the coordinates (0,0) (0,d) (c,0) (c,d).we also have a triangle with arbitrarily given coordinates.If it's the case that the triangle is partially inside and partially outside ...

Suggestions for my first Java Game

202 byte By GemmaPa at 2007-9-28 5:14:21
I am new to Java and I'd like to make a game in it,but i don't know what to start with. I'd like a game that is fairly simple to make and not too heavy on the graphics. any suggestions?

Collision detection between images

5447 byte By jamesloughneya at 2007-9-28 5:15:24
Hi everyone. I have been creating a game for my Computer science coursework. So far i have the animation and the mouse movement working without any problem, but i can't get the collision detection to work. Can anyone have a look at the code and see what is wrong.import java.awt.*;import ...

Object to Object Mapping

137 byte By airwolfa at 2007-9-28 5:16:43
There are a need of mapping an object from the client to another object on the server. Is there a design pattern for this problem?

ValueListHandler

370 byte By rjhurst0361a at 2007-9-28 5:17:46
This may sound a very stupid query but nonetheless The ValueListHandler pattern is suggested as a solution in J2EE to the problem of retrieving large amounts of data from a database by constantly querying the database.Is there any reason why this pattern should not be adopted as a design ...

Demo Effects

452 byte By Kayamana at 2007-9-28 5:18:09
Let's see your effects people, you can't ALL be making just games.Besides effects are very important in a game.Maybe this effect won't blend in any game (at least easily) http://personal.inet.fi/business/digitalpuppetsbut still.It seems to be a bit slow as an applet version, it's nicer to ...

Pattern for Database Class?

942 byte By MartinHilperta at 2007-9-28 5:18:47
hello,i'm using one instance (singleton) of a class that does all database access via JDBC. the class offers methods to query/update the database, it hides all the sql statements from the business classes. the business classes use the methods from my databaseclass and on instantiation of a ...

Inheritance design problem

1176 byte By fun_rajesha at 2007-9-28 5:20:16
Hi,The objective is : There are 2 users of a system, one normal and other privileged. Normal users can use some parts of the system(say,can invoke methods 1-4) and privileged users can use all of the normal users methods(can invoke methods 1-4) and also some other important methods( say,can ...

Buffered or Volatile Image out of memory

483 byte By LAOndaa at 2007-9-28 5:21:14
Hi all, :-)I have the following problem. I have a program who uses 15 threads. Every single thread must draw about 100 objects. I have tried to use buffered or volatile images for every single tread. But by the fourth thread it shows out of memory. Is there a solution for this problem to speed ...

Game Collison

241 byte By pommyJavaa at 2007-9-28 5:21:49
Does anyone know a good way to detech game characters?Im using, rectangar images and Im having a hard time tring to come upwith a way to check if a character hits a wall or not.Can anyone help me out?Thanks

UI-Delegate Model Design

362 byte By JebeDiAHa at 2007-9-28 5:22:05
Hi there folks, can anyone explain to me how a Container is split up in components according to the UI-Delegate Model?What classes are there describing a Container?What do you have to add if you want to write your own JPanel Class?Could you point me in the right direction with some ideas ...

Factory pattern returning shared mutable objects

1703 byte By aldus99a at 2007-9-28 5:23:37
We have a non-EJB load-balanced environment of JSP/Business Objects with JMS synchronized caches. Here's an overview.Business objects stored in a custom in-process cache (one instance per JVM) and the caches are synchronized using JMS. The business objects are maintained through utility ...

What do you think?

342 byte By ryuujina at 2007-9-28 5:24:31
Hey guys,Can you sugguest? If I want to draw 2 seperate graphics, where only if the graphics on the left is complete before i draw the graphics on the left. Do you think its better for me to create 2 different panels? or what?And How do i control or check if the left graphics is completed ...

Any good tools?

67 byte By MayZenga at 2007-9-28 5:24:47
Any body can recommend some good tools on design,oo,uml etc.

how should I use .getClass() ?

668 byte By cactusssa at 2007-9-28 5:26:33
adding objects to a Vector, I'd like to retreive them with the correct original class type :Vector v = new Vector();User visitor = new User(1,"joe");History hist = new History(1);v.addElement(visitor);v.addElement(hist);Object oVisitor = v.elementAt(0);Object oHist = v.elementAt(1);// of ...

Graph

1805 byte By ma001sba at 2007-9-28 5:27:50
hi everyone i'm currently working on graph program,i dont want todraw a graph. but i want to use vectors to display the edgesthat are connected to each other in a URL.so basically the nodes will be the links and i have to display what links are connected to each other.I have created the ...

Whats the difference

101 byte By oo0speed0ooa at 2007-9-28 5:29:52
Whats the difference between J2EE and J2SE and J2ME? Does any of them matter for making games?

www.josrts.org, the Dawn of a new Era!

832 byte By markuskidda at 2007-9-28 5:36:58
... erm... or something like that...Well, I intended for a nice, transparent switchover with lots of warning for all of the forum members, but fate conspired to produce pandemonium and confusion, so here we are.I was planning to switch web hosts around the end of the month, but my current (or ...

Does UML help, when the software paradigm is Procedural

321 byte By dhirajasrania at 2007-9-28 5:38:35
Hi, to all the People there.Is it a good practice to model using UML when the software architecturefollows a procedural method.We are using a procedural way of programming using Java.It's like saying C' style of coding using Java.Does UML qualify as the best modelling choice ...

GENERIC NAME OF PARAMETER

522 byte By javasmifa at 2007-9-28 5:40:42
Hello,I would like to declare a variable number of parameters and the solution I've found is to make the name of my parameters generic For exemple when I want n parameters I would like to do this:int i=0;String var+i="value1"; (> var+i in this step would be : var0i++;String var+i="value2"; ...

Java to UML tool - need some advice

881 byte By Scarface2002a at 2007-9-28 5:40:58
Hi there,I'm developing a UML case tool as part of my final year project for my BSc degree in Computer Science, the aim of this tool is to covert Java source code into a UML Class diagram.When given a directory containing the current project files (*.java files), the system is then intended to ...

encrypt password

472 byte By jhonzhanga at 2007-9-28 5:41:52
I'm not sure if this is forum for my topic,but since my web app is construct base on j2EE,so I just put it here.I have a login page in my web app.user have to put his password and my app compare the password with the encrypted password in database.my question is:1. pls. recommand good encrypt ...

Partly complete game

498 byte By Jeffrey_Cheea at 2007-9-28 5:42:05
Hi all, I've developed a Beatmania style of game (incomplete and still developing). Currently there's only 1 song, and the refresh/sound sampling rate is very bad.Used Active rendering instead of passive rendering (with Abuse's advices)Please take a lookps: on my athlon 600Mhz it lags like ...

Rotating a 2D vector around an arbitrary point.

459 byte By mkel25a at 2007-9-28 5:42:24
Hope this is the best place for this question, sorry if its not. I'm having trouble figuring out how to rotate a vector around an arbitrary point. The below snippet rotates the 2dvector whos points are ax and ay around the origin(0x,0y), but say I wanted this vector to rotate around a new ...

CCG Game using RMI or JXTA...

1599 byte By LordWilsona at 2007-9-28 5:43:54
Hi, fellas...I'm wanting to build a game to simulate a CCG (Collectible Card Game). I want to be able to play it online with another buddy, who is also helping me code the game. Basically, we want it to be a card table (which we can both see) and we each have our own hands of cars. When I put ...

style on calling child method

1066 byte By ioannisca at 2007-9-28 5:44:46
i'm making a 'paint' application. and i want be able to draw many different shapes (rects, ovals, stars, etc)i have a base class called ShapeTool which contains a lot of functionality for handling mouse events, calculating x, y, width, height etc.all the instanciated tools (RectTool, ...

Circling imigis

351 byte By ranabpa at 2007-9-28 5:46:36
Hi, I am making a sprite animation, i wish to make my Image @ x1,y1 to move in a circle with a defined radius.I was thinking of using x*x+y*y =r*r, using the x1 in place of x and getting a new y and then using the new y to get the next x and so on. But it doesnt seem to be working. I think my ...

Multithreading

626 byte By ryuujina at 2007-9-28 5:47:05
1)I have seen examples on the web on multithreading. But unfortunately, most of the time these websites only show one thread. Anyone have any examples of a real MULTI THREAD applet? A simple one will do. 2) Another question, when I'm using paint() I have included a while loop. Inside the while ...

Difference between the SessionFascade and Value Object Assembler Pattern

118 byte By nort_dea at 2007-9-28 5:47:30
Hi,what ist the difference? Any suggestions? These patterns are very similar in my opinion. Juraj

Good Animation

359 byte By pommyJavaa at 2007-9-28 5:47:51
Does anyone know a REAL good way to program animation?maybe something like:g.drawImage(image, X, Y, this);SomeThread.sleep(sometime);g.drawImage(image2, X, Y , this)SomeThread.sleep(Sometime);...Or is there another way to do animation. All I got in my games are one image just sliding across the ...

bitmask transparency in a VolatileImage

331 byte By Abusea at 2007-9-28 5:53:15
I've read on javagaming.org, that through some cunning trickery, it is possible to get a hardware accelerated Volatile image, that has bitmask transparency.So, thats my Question - how d'ya do it?(I would have posted this question on javagaming.org, but it seems to be down atm (23rd Dec 22:15 ...

Need help with my Poker game...

867 byte By veroslava at 2007-9-28 5:55:22
Hi everybody!I would like to get some advices from you, because I am having some difficulties with my game that I am currently developing.The problem is that while the cards are drawn on the screen (after the game is being played for a couple of times), the whole screen freezes. This also ...

Games in a real time.

872 byte By JavaReda at 2007-9-28 5:55:49
Hello people!!. I'd like to development games based in sockets, with the feature of to be games really on-line.I don齮 speak of a conventional applet as chess,tetris...etc. For example, I have deveploment a simple game with 2 planes. There is code for the player (client code) and there is code ...

Controller Servlet help

594 byte By rnatsa at 2007-9-28 5:56:46
I have an application which has a navigation page with 3 links and 3 DAOs and their corresponding JSP presentation pages.My problem is how to make the controller instantiate the right DAO object and execute the right DAO method and send back the result in a VO. Can any one help me how I can do ...

Controller servlet help

594 byte By rnatsa at 2007-9-28 5:56:48
I have an application which has a navigation page with 3 links and 3 DAOs and their corresponding JSP presentation pages.My problem is how to make the controller instantiate the right DAO object and execute the right DAO method and send back the result in a VO. Can any one help me how I can do ...

The Merry Christmas Thread

156 byte By Abusea at 2007-9-28 5:57:31
Merry Christmas 2u all,from that little island just off the coast of America,otherwise known as the United Kingdom :)abu,

Java Can't Handle Many Pictures

426 byte By MJSWa at 2007-9-28 5:58:02
When I try to load in over around 30 pictures, I get this:Exception:java.io.FileNotFoundException: /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/hwaccelexclude.properties (Too many open files) while loading default hwaccelexclude.properties file ...

simple UML question

452 byte By ioannisca at 2007-9-28 5:58:48
I have a LayerManager which can have from 1 to many Layer objects. Each Layer object has a GraphicsBuffer object which is a subclass of the java.awt.image.BufferedImage object.I've made two diagrams and I would like you to tell me which one do you think is correct.the link is : ...

PLEASE help me with my Pacman game

183 byte By pars40a at 2007-9-28 5:58:57
I have two files, one contains a class that creates pacman animation. The other file contains the maze. The problem is how can I add Pacman to the maze?Thanks in advance

testing use case

200 byte By yanis97a at 2007-9-28 6:01:43
Hello;I would like to define my test cases (functionnel test) under a use case model. So if we have any idea or information for that, please contact me.Best regards;Djamel;

try my musical game

313 byte By Jeffrey_Cheea at 2007-9-28 6:01:44
Hi, I've completed writting this game of beatmaniaDo take a look.(compiled using jdk 1.3) http://www.comp.nus.edu.sg/~cheefoos/JJR.jarPS: some of the songs tempo's are off by a bit. so dun mind some of them being off tune. My personal favourite is Under The ...

Java Source Code to UML Class Diagram

1374 byte By Scarface2002a at 2007-9-28 6:01:53
Can anyone tell me exactly which kinds of relationships may be identified for a UML CLass diagram, directly from 'static' source code..Note that I am developing my own case tool which will convert from java to uml..At the moment, I have only managed to get Inheritance and Association ...

Help me please :)

308 byte By stridmanna at 2007-9-28 6:01:58
Tell me please, what is easiest way to convert such string (for example):"\\u00DE\\u00F3rr"to this:"\u00DE\u00F3rr", i.e. "THo'rr" (I use TH for 'thorn' and o' for o-acute).I.E. I need to convert the strings from text file to real Unicode strings. :)Thank s ...

Java3d

343 byte By binaryslavea at 2007-9-28 6:02:17
A while ago there was a website that came along that was geared towards java gaming development. I believe that it was linked to from sun.com but I am not sure. It had some examples on using new features of 1.4 for games. It also had some screenshots of the Fullsail F1 Gran Prix demo. Does ...

Tool For converting java code to UML

110 byte By j4javamana at 2007-9-28 6:03:06
Hi,Does anyone know any FREE tool to convert Java application to corresponding UML ..--jj

PLEASE help me! I desperate!

501 byte By will_druma at 2007-9-28 6:03:30
Well I've had this problem for like a year at least now. Does anyone know what I need to do for this problem? My problem is that I can't play some games like yahoo pool and stuff and like I cant work on my website on yahoo geocities anymore. I dont know what happened it just got messed up ...

Threads In Applets..

1157 byte By ryuujina at 2007-9-28 6:04:45
Hi guys, I need help.. desperately..I'm still stucked with my Threads in Applets..I'm currently trying to do create a thread in my applet. i noticed that all the thread are in the INIT() of the applet. The problem is... I have created some buttons and a drawing panel.. So i want the buttons ...

How to get nanosecond precision in java?

641 byte By Jeffrey_Cheea at 2007-9-28 6:06:31
After searching through the forums, I realised the inaccuracy of the Thread.sleep(long millis, int nanos) method, which I used in my musical game.( Some other thread titled "try my musical game")This could be the main reason I'm getting of tempo midi music....Is there a workaround to it? or ...