287 byte By
Aslow1a at 2007-9-27 23:11:57
Is there any way of sending unsolicited messages from the server side in a J2EE application.I am writing an application that needs to be able to send a message to one or more client programs, at some point not controlled by any one client. please help.thanks.
i like to know is there any games contest.. if yest pls let me know
Hi,I am making a birds view racing game and want to move the car about the screen by using the arrow keysbut I have two problems1. how do I rotate the car...ie along the rear axiswhat set of methods would I use...I don't want to use the AffineTransform object because that it java2d2. how would ...
hi, I have a small image on an applet screenis there a method like getX() and getY() which will return the coordinates of the image...note that the image can be any where on the screenie.Image pic;.......... pic = getImage(getDocumentBase(),"apic.gif");........int x = pic.getX() //something ...
284 byte By
kinnua at 2007-9-27 23:18:54
Hi All,I am going to develop an web-application. I am looking for appropriate technologies for my project. Can anyone suggest me the advantages and disadvantages of MVC architecture. Please help...I am using jsp,beans and oracle8i for my project with iplanet web server.
598 byte By
venu01a at 2007-9-27 23:20:34
Hi Gurus,I have to display some thousands of records to the user, which obviously comes from the database. I don't want to load the session with huge Vector or ArrayList.Now i want to know the following things:1. Is there any pattern to cache/retrive the objects in fast and efficient manner?2. ...
i'm a student in a hong kong institution. And i'm using java to write a mutiple player card game as my final year project.My supervisor suggest me to think about using a object base or a database to store the game rules: i.e. the algorithm to store the rules.However it is really odd to me, ...
Hi chaps/chapesses,Lowly Master's Degree student seeking expert opinion.Creating a simple game for a mobile phone as my thesis. I've started looking at the whole topic and getting a feel for what is out there etc.I'm not looking to create a game that is going to make me a million, just to ...
Hello all, first time posting. I'm working on my senior project and my partner and I are creating a sales and information system for one of our college departments. However we are aproaching this from an OO design standpoint. Part of the functionality of this program is to be able to quickly ...
665 byte By
duplcata at 2007-9-27 23:26:37
I'm new to Java, but have read many books on it. None of the books explains much about graphics, except for Paint(), Repaint() and Update(). I would like to start with a simple applet (non-swing) game in which created objects have the ability to draw themselves onscreen. Is there a simple way ...
Can someone explain the difference between Unidirection association and Bidirectional association.An example will be a great help....Thanx to all of you.Satya
465 byte By
superJa at 2007-9-27 23:27:10
i'm writting a game that consists of some threadsfor handling graphical animations.it causes the sounds of the game played with thenoticable delay.(i use AudioClip mehtods).someone said me use Clip interface that is quiker than AudioClip method beacause of pre-loadingsound data.can u send me a ...
586 byte By
Abusea at 2007-9-27 23:30:54
this is related to the 4k competition,public void paint(Graphics g){System.out.println(g.getColor());}Is it ok to assume the initial color on a Graphics object is black, as it seems fine on all the Windows machines i've tried.a second thought..... in the specification for the paint method of a ...
I'm trying to design an applet which simulates a radar screen. Although I'm a novice, I have managed to create the radar itself OK.However, I would like the radar screen to "sit" on a "console", and I'm trying to use an image file as this background console. Although the image loads and ...
767 byte By
miztasa at 2007-9-27 23:35:51
I need to write a class called Scrabble which has a constructor:public Scrabble(String s1)and contains a method: public boolean scrabble(String s2)and any other methods and variables I need. Assume that s1 and s2 are made of the 26 lower case ascii characters a....z. If the following code is ...
as MIDP1.0 support only PNG format and treat all pixels as opaque, what can I make my images look transparent?
1994 byte By
geokria at 2007-9-27 23:37:59
I hava an applet that has a timer. I would like to pause the timer when the browser is minimized and restart it when the browser is opened again. To do this I have a javascript that notices when the browser is minimized/opened and then calls minimized()/opened() in my applet. The problem that ...
1017 byte By
malrawia at 2007-9-27 23:38:09
hi everyone .. i have this class which is singleton public class single{private static single onlyOne;private single(int arg1){....}public static synchronized single getInstance(int arg2){if (onlyOne == null)onlyOne = new single(arg2);return;}}this class compiles without any problem .. my ...
4092 byte By
bregotya at 2007-9-27 23:38:12
Question : Hi,I have a doubt in GridLayout and Threads. I齧 doing one small application which is accepting images and Alphabets.Actually, What I齧 doing running images and alphabets(combinedly) in frequent intervals. For this I used GridLayout and Thread concept. But I have a problem in paint ...
The program will consist of three classes: Student, ArrayListWrapper, and Demo. Demo will have the main method. These classes will not be related by inheritance. All classes will be in onepackage, with a name of your choice.Class Student will have the following object fields:Name, ...
In my "radar screen" project, I have now created a background console image, and radar screen background image, and saved these to one buffered image.However, the radar screen, being round, should have transparent pixels in the area between the circle of the radar screen, and the square ...
Hi All I am making a chat server using socket connection.I need to save a chat (in textArea ) on the server end.Can any one suggest me with some good and innovative way to do so?Thanks in advance Vipin
357 byte By
ibosana at 2007-9-27 23:41:42
I am using jdk1.1 and it seems it only likes .au format for sound files. I couldn't use Sound Forge; saving was disabled. And I got some others in shareware.com. But they were hopeless as well. Most just didn't work. Is there any reliable shareware app out there I can use to convert from .wav ...
I am developing some game using java swing. With the games Ineed to ship JRE because each user does not have JRE..So is there any other other solution.
I am developing some game using java swing. With the games Ineed to ship JRE because each user does not have JRE..So is there any other solution.
hello ...HELP !!!Having a slight problem implementing the A*Search in Java. We have it calculating the straight line distance from nodes to goal using .cost, however we need to get individual path distances between the nodes, preferably without hardcoding. We were thinking of using the addEdge ...
I've been writing java stuff for a while, but I've only just started looking at gaming.Basically, the game is a tile based map with a little guy that runs around it. The way I draw the map is as follows:1) On start of game, generate image of the whole map.2) When the map needs to scroll, ...
We need an Design For teh Following Application in Java.The Current Application Where a File of Size 0.5 MB Will be Tranfering across the net work.Source --Central Server -Local Server End Clients- is Bidirectional Link(here Local server acts as both as Server and as client)1.Source initiates a ...
A typical Enterprise Java Bean consists of a -EJB Home, -EJB Interface-EJB bean classIn a client-server environment that's NOT an Enterprise Java Bean or running on an Application Server but instead just a java application that runs on the server, why would someone follow a similiar structure ...
Hi i made an applet where i have 2 circles drawn in by paint and 1 cirlce runs from top of the applet to the bottom and the other circle runs from the left side to the right side of the applet and when it hears a mouse event the 2 circles go back in the dirction they were going and vice versa. ...
Hello,Until recently I was the only developer for the company. With new developers working here, how can I implement some kind of team enviroment for updateing the code. Trying to avoid a complete mess with someone changing code and not everyone else getting it, or losing code.Looking for some ...
Hi,In my program I modify a data structure (a two dimensionaly array) several times based on a single MouseEvent and an "observer" of this array animates the modificantions applied to this array one after the other. So my code looks like:firstModify(); // Modifies the arraynotifyFirstModify(); ...
I'm wondering about the best way to pad a block cypher at the end of data.The problem is I'm reading from a buffer into a block cipher that takes 8 byte chunks. I won't know how much data there is until I get to the end, and I'm writing to a buffer so I cand prepend a count when I get ...
889 byte By
spalmaa at 2007-9-28 0:00:30
i've a problem with httpconnection when i use this on my nokia 7650.my code is this...HttpConnection c = null;InputStream is = null;Codice codice=new Codice();try{c = ...
375 byte By
gmundea at 2007-9-28 0:01:08
I have just embarked on the facinating world of J2EE. My questions are very simple: Why would I use a BusinessDelegate pattern? What is it and why have this extra tier?Finally, why would I use a Value Object? What are they? How would I use them in practice?As you can see I am a total novice and ...
I am using a buffer stategy and everything works fine. However once in a while when I run my game I get an error stating "Buffers Have Not Been Created". Is there a way to check the status of the buffer after you create it to see if it's ready before you start using it?
199 byte By
ever79a at 2007-9-28 0:06:44
HiNow I've some problem in mapping my class hierarchy in relational database table.How to express inheritance relationship in database?Any advice appreciatedvictor
Hi,Where can i get information about hosting a site for playing games online. What all features this site can have and what needs to be done to manage the site.Deeps
hi,i want to create a method to print to the screen an array of any dimension.i think it must be recursive, so this is the code i have at the moment:import java.lang.reflect.Array;public class Tst2 { //This is the recursive method public static void print_array(int[][][] array, int[] coord){if ...
Okay when someone goes about making a fullscreen game, it usually happens like this: wmake full screen mode, decide the display mode, then make a buffer strategy or something. But if you make the fullscreen mode then decide the display mode but then not add not buffer strategy and start threads ...
1175 byte By
Seekelya at 2007-9-28 0:12:17
If you remember me, I am the programmer that made the attempt (half decent if you ask me) at recreating Scorched Earth. Well, time has passed and my next project lies at hand. This time a team and I are moving into the exciting world of a 2D RPG. I read this forum daily and have learned a lot ...
Hi,I've an assignment at hand which I would like you to have a look at to see.Basically it's using Dijkstra's Algorithm and futher information could be obtain here... http://www.cse.unsw.edu.au/~cs2011/lect/ShortestPath.pdfAs for information of the assignment, pls refer ...
I don't understand what this question is asking.A) Develop a java program to output html text of home page of any URL, to console and also to an ASCII text file named urlhtmlinfo.txtUse URL class of java.net.* class library and any other standard java libraries.The url input as a command line ...
hi,i have made a simple java game name paranoid(/breakout/dxball/blokok)the problem i have faced is that in slower pc it cannot work properly.In slower pc the ball sometimes crosses through the boundary line(probably at that time thread cannot work).But in faster pc it works almost properly.can ...
355 byte By
bago75a at 2007-9-28 0:17:43
Hi all,I'm trying to create a card game framework in java. The project started at sourceforge ( http://ataraxia.sourceforge.net) a week ago and we are at a very initial stage.I would like to know if someone would like to join our project or if someone know about similar existing projects.Thank ...
Anyone one please have a knowledge about design and develop client-server code in jave,which would model a typical ordering system of books as seen in large book stores.could you even aim me to any topics u can find it's useful to read.your co-operation is appriciated.thanks ...
409 byte By
MoSta at 2007-9-28 0:23:51
hi i am new in Java ...i am developing a clint-server program with javathe clint and the server will run on the same PC (it's a student project)i need to know about the available methods to store data in the server's database ..i've got an idea about using arrays, but if there is any other ...
1008 byte By
malrawia at 2007-9-28 0:24:02
hi ..i am working on a project that i am trying my best to design it as OO as possible ..i have the core of the system as a class called Gipsy, it instansiates a factory which instanciate an interface which is being implemented by a text interface(TInter) and GUI interface(GInter).now my ...
867 byte By
Urmecha at 2007-9-28 0:26:49
Hi, normally I use the code below. But I experiencedthat if I call getRefernce more than once from a staticcontext the constructor is called more than once, but that isn't the intend way it should work.The lines I added reduces the problem, but I don't think that's the wa it should work. I ...
Hi I'm making a 2d shooter that is not really working. What i've got is a ship, which is just three lines assembled in a triangular form. Then I'm trying just to make a single 'laser' shoot from the ship up to the top of the screen. There is no trigger button it just does it automatically. ...