235 byte By
kc0ncoa at 2007-9-28 1:46:17
Easy as 1, 2, 3.1-Write and compile a pong game (Multiplayer Pong, Pong3D, etc.)2-Post your game (either source code or a link to your game)3-I will reward 7 Duke Dollars to the author of the best Pong game.
I don't know really were to ask this, but I will do it here. Is there a certain algorithm or something to where I can distort graphics in a way that looks like a water ripple affect? I am trying to implement this so that I will have a background on a touch screen computer. And when I touch the ...
504 byte By
prunaa at 2007-9-28 1:46:33
Hi.First, sorry for my bad english :)When I design a catalog and item (of any type) ... should I use a Collection for the catalog. Usually, I need only a few data, and it could be a really large Collection (from a DB), and I want to list a couple of properties (and give some ...
Hi i just wanted to see if anyone knew where to find some good terrain tiles.Its the usual stuff, dirt, grass, rocks,etc.I'll do any thing to avoid art myself!Thanks.
668 byte By
tmeyersa at 2007-9-28 1:48:41
I'm writting a game that pans and zooms in/out. Anyway, when I call fillOval and send it pixel values that are mostly outside the clipping region, sometimes nothing is drawn when it seems like something should.Example:public void drawCircle( Graphics g ) {g.fillOval( 0, 300, 900, 900 );// ...
89 byte By
kodeza at 2007-9-28 1:48:43
Can anyone tell me how to make an Image show on any of the shapes in java.awt.geom
Hello everybody-This should be a simple thing but I just can't get it to work. I'm making a tile-based top-down online rpg (application, not applet), and I pretty much have most of it done except I can't get the map to display and scroll right. i will admit that java graphics isn't really ...
3826 byte By
pars40a at 2007-9-28 1:51:36
I am writing pacman in Java,but the controls don't work. I have added all the keyListeners (I think), and the program compiles without problem, but the controls don't respond at all. Could you please let me know what Im doing wrong.THANXHere is the codeimport javax.swing.*;import ...
my game is coming along fine. only prob is, it freezes sometimes between levels. i'm not sure why. i'm don't really know how to handle levels anyway. what i've done is, when a certain condition is met, i call a method reset() which tweaks some values, making tha game harder and then calls ...
I'm working on a J2ME game that requires the use of a countdown timer. I've put in a Timer.scheduleAtFixedRate call inside my run() method, but apparently it's taking up a lot of resources and it's proceeding too fast (a 3-minute countdown will finish in about 30 seconds or less).I have a ...
97 byte By
ckminga at 2007-9-28 1:54:11
What is the code to made our application(windows) to be in full screen mode? Thanks
a code segment:********************************.....class Point{public int x; public int y;public Point(int x,int y){this.x=x;this.y=y;}.....Vector points=new Vector();points.addElement(new Point(1,1));.....******************************How to determine that vector points contains ...
I am developing a game where by an object can move around the screen by either using the keyboard or the mouse. I have figured out how to control the object using the keyboard. But the mouse control is proving difficult. Can anyone give me some suggestions on how to tackle this?
ok, here's the point.We work with the problem domain and develop the analysis model. The analyst at this stage doesn't concern himself with the implementation details, some low-level code patterns and the programming language (well, let's forget for now about C's multiple inheritance and ...
Hi,What's the closest thing to a release date for jdk 1.5?Thanks,Philippe Laporte
595 byte By
davekmva at 2007-9-28 1:58:28
I'm something less than a newbie so I may not be asking this correctly... I am NOT a Java programmer.This may be slightly off-topic for this forum, but I think this is the best group for this question.I am looking for best practices and tools recommendations for skinning a Java app or game. I ...
706 byte By
bx573a at 2007-9-28 1:59:22
Hi my web component need to read some values from a property file.It works with Tomcat.However when I run it on J2EE I get following error.Any help is appreciatedRegardsjava.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)at ...
365 byte By
brylexa at 2007-9-28 1:59:23
I'm thinking of using DOM as my value objects. There are however serious serialization problems with this approach. This can be coped with by using JDOM, but I'm not that willing to step away from JAXP, and polluting my code with org.jdom.Document instead of org.w3c.dom.Document.Any thoughts ...
427 byte By
edchinga at 2007-9-28 2:01:41
i'm having a problem here. I am using the nokia's api for additional features. For those who'd use nokia's series 60's emulator, u should know there's additional arrow keys constant to the FullCanvas class. The problem is everytime i press on a arrow key(not the numkey), it calss the ...
119 byte By
cgpenga at 2007-9-28 2:02:16
i face a problem to writing the java code regarding data mining...association technique...any recommendation?thx
I would like to know how to connect web container(Tomcat 4.1) to JBoss application server 3.0.4?
148 byte By
StuBluea at 2007-9-28 2:09:31
I have an assignment due soon in Java. My problem is i can read the code, but unfortunately cannot problem solve. If interested get in touch.
here's the (formatted) code:import java.awt.*;import java.awt.Component.*;import java.awt.image.*;import java.util.Random;import java.awt.geom.AffineTransform;/**** @author gisbya* @version */public class Warp extends java.awt.Component {/** PROPERTIES ETC*/private BufferedImage logical; // ...
Hi,How do you deal with the Local and RemoteHome (EJB) Object within a BusinessDelegate and consequently in the ServiceLocatorPattern? I have 2 different methods (getLocalHome / getRemoteHome) for retrieving the EJBLocalHome and EJBHome in the ServiceLocatorPattern but i'm not sure how to ...
379 byte By
millensa at 2007-9-28 2:13:52
Is it possible to connect to EJB container running on JBOSS from simple java application (without the web server). Similar like we could use for example BAS 4.5.1 application server. For that server only thing that has to be configured is osagent port: -Dvbroker.agent.port=XXXXX (port on which ...
894 byte By
balteoa at 2007-9-28 2:15:23
Hello,I have two classes: A and B. I am trying to establish the difference between:1. UML composition (an arrow pointing from Class A to Class B with a small open diamond at the opposite end from the arrow head) 2. and another relation which name I don't know that is represented by the very ...
Hey people! I'd really appreciate any help you may be able to give me on this problem, I'm not too far off tearing my hair out :)Basically what i need to do is find the longest possible path through a Graph data structure (edge list implimented), I've looked all over the web for information, ...
144 byte By
raspeda at 2007-9-28 2:16:20
Hi,Does anyone have a suggestion for a free tool that allows for the creation of UML diagrams and then converting it to Java code?
1530 byte By
Tykena at 2007-9-28 2:16:42
Hi!This is a long one, but please bare with me. :)I'm currently written an application that does the roundpairing of a chess tournament. I have a class Managerthat handles the pairing. I also have a class, Analysis, that issuppose to analyse the possible place a player can get.This option gets ...
896 byte By
chj1a at 2007-9-28 2:17:24
Hi,i want to implement a method for arithmetical addition or substraction of integers stored in a byte array.The integer data will be received ascii coded, byte per byte and theoperation must be done also byte per byte (but short values are also possible)!Sample interface:public byte[] ...
234 byte By
Trinaja at 2007-9-28 2:18:52
Hi,I am a new java programmer and I need some help on how to create a list of questions with answers so that users can choose the correct answer.the question could be display in a dialog box or panel.thanks
310 byte By
Abusea at 2007-9-28 2:19:45
...the changes I just made to my code dont make full screen exclusive mode lockup windows :P (otherwise, i'll have to reconnect to the net >:( )I thought Java was sposed to stop you from being able to crash the host pc :P(I was 'System.exit'*** without gd.setFullScreenWindow(null) ...
1298 byte By
Abusea at 2007-9-28 2:20:14
As every1 knows, under Windows, Java uses getTickCount for retrieving the system time. Every1 also knows that under win9x the resolution of this timer is 50[ish]ms, and under WinNT its around 10ms.For most simple Java games, 10ms would be fine, however, after W2K died on me last week, im back ...
44 byte By
fredlima at 2007-9-28 2:20:25
http://java3dgamesdk.sourceforge.net/
364 byte By
D-Gena at 2007-9-28 2:24:34
hey, i am writing a plagiarism detection application within Java, for my Honours Degree, and was looking for help on which algorithm a can use for comparing two text documents, for textual similarities.i dont really know much about this field of computing (text compaarison), so any relevant ...
Hello.I've used the MVC Pattern through all my project. But now, I'm developing dozens of GUI responsibles for show reports to the user. So, where to put the SQL querys (some complex ones)? Should I put everything into controller?Is there another pattern that makes it ...
715 byte By
holtscha at 2007-9-28 2:26:30
Hi there,I'm pretty new to J2EE, so please excuse my inexperience.I was wondering what is the best way of repeating a certain task (e.g. calling a session bean that does something for you) *within* the J2EE environment. I know that J2EE doesn't really support multithreading - but what about a ...
Hi,My XML file needs to access the following DTD file.<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' ' http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>It has problems going through my Internet proxy, which requires username and password. Does ...
568 byte By
balteoa at 2007-9-28 2:27:30
Hello,I came across two UML notations. I would like to know the difference between them.I have one class A and an interface B-1st notation (dotted line: Name of relation?)|A| - - - - - -> |B|-2nd notation (full line: Association)|A| --> |B|I know the second relation is an association that ...
I want to use a data buffer in a Browser(for example:Internet Explorer),when a http connection is disconnected I can operate on the data buffered(Perhaps in XML format),for example,I can query,sort or modify the data buffered,afterthat I can update the data source truly,just like in a C/S model ...
Hi guys, I exploring on double buffering and sprites... anyone have any idea of any cool website that can help to enlighten me on.. what is sprite? why we use sprites? and double buffering?I'm looking into creating some kind of animation together with Swing Buttons to create an applet.. need ...
346 byte By
balteoa at 2007-9-28 2:31:55
Hello,Suppose I have two classes A and B with the following class diagram:|A|- - - - - ->|B|According to what I understand, it means that B is either a local variable of A or a parameter of one of A's methods. Can B be an instance variable of A or would it change the relation to ...
I need to access data from a 3rd party source but the numeric fields are stored in Microsoft Binary Format. Does anybody has a java source code of procedure that does conversion between MSBinary float to IEEE float (Java float)?
I run a windows box, and I downloaded argouml and poseidon and I was very annoyed that the save feature failed a good portion of the time (one of those required features) but otherwise I liked it. Are there any other good free progs that are like argouml but get basic save features right?
Hello,I am designing an application where there are Employee objects and there are WorkBlock objects. A WorkBlock object is simply a block of time that the Employee is scheduled to work.Each Employee can be scheduled to work one or more WorkBlocks. Each WorkBlock, of course, has one Employee ...
238 byte By
asjfa at 2007-9-28 2:34:45
hi, I need to check whether a pixel at a particular point is black or not, on an Image. I can't find any methods for doing this in Image, Graphics or Graphics2D.. is there any way to do this?thanks,asjf
671 byte By
thhala at 2007-9-28 2:38:31
Let's assume that we have a huge project developing a J2EE app. We make lots of use of EJBLocalObjects well aware that the servlets and EJB's will execute in the same JVM. At some point in time, we decide to deploy our app in a cluster that supports HTTP session failover.The fact that ...
439 byte By
Plowa at 2007-9-28 2:42:43
Hi everyone, Im new to JAVA and seek some help. Here is what I am trying to do:display a timer starting at :30 (seconds) and show the timer counting down to 0. Once the timer hits 0 the applet moves to the next question. Right now I am trying to display this in a JTextArea but having no luck ...
2222 byte By
synluba at 2007-9-28 2:43:49
Hello,I wrote below code to catch key event. Does anyone can write / suggest better code ? I am desperate on Capturing key event : ((import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Anim extends JPanel implements Runnable, KeyListener { private int ...
408 byte By
rapsysa at 2007-9-28 2:44:04
I'm just curious how the JDK reads the contents of the JCreator Editor Environment...Meaning..int length=0;..is read by the compiler as a integer variable length with 0..Ifever, is there a way for a programmer to throw a string equation to the compiler.... string sample = "int length=0";and ...