if i have helper classes, do i have to somehow declare them in the applet tag?
1187 byte By
zuloa at 2007-9-28 12:15:43
My game is fullscreen bufferstrategy(3),its a breakout game, it runs at 70fps with 64 objects in the game area(bricks) + the ball.Theres only one type of brick object now represented with a png image, and its static so that means all objects share that image(am I right?).This fps is only with ...
Ok ive been messing with memory image source for a while here.at least 6 hour's and i cant seem to get it to work in fullscreen.i have tryed it a few different ways and im getting errors no matter what i do.i figured id search the web for a example of memoryimagesorce in fullscreen but i ...
1001 byte By
jms2003a at 2007-9-28 12:16:26
i've just done my first year at uni in computer science and i'm trying out the audioclip interface/applet class. I've stored a .wav audio file in my working directory and created a URL to the file, but when my applet loads (basic snake game) the audio doesn't play (or is taking sooooo long ...
from the "java core pattern" book,i have learned that the service locator is a singleton,but when i downloaded the petstore1.3.1_01 and opened the source code,i find the web tier locator is a singleton,but the ejb tier locator is not a singleton,why?the ejb tier locator as:package ...
656 byte By
tingdoga at 2007-9-28 12:18:35
Categorise the following relationship into generalization, compositionaggregation or association.Beware,there may be ternary or n-ary association in the list,so do not assume every relationship involving threee or more objects is a generlisation . a. A country has a capital.b. A dining ...
274 byte By
Jshrubba at 2007-9-28 12:18:44
Hi,I have put up the foundation of a game on the internet. The game is in applet form and consists of all of the basic parts a game needs. If you want to challange yourself, go to the link and edit the game. http://www.codedemons.net/index.php?action=osg
Hi All,I'm doing debugging and found the following error: A simple math calculation for 400 - 381.28 - 18 - 0.72 should return 0 as a result, however in Java code:System.out.println("400 + (-381.28) + (-18.0) + (-0.72) = " + (400 + (-381.28) + (-18.0) + (-0.72)));System.out.println("400 - ...
I'm currently writing a small game where in an applet there are three different races that move around randomly on an applet and certain events happen when one race meets another. Two of the three extend from a superclass. I'm writing the superclass right now and I'm supposed to have it ...
Hi,Anybody can help meHow should call JSP instead of invoking client class on EJB?.(i.e. we deployed at J2EE server our EJB Application as a jar,after that we call business methods by using that like thisjava -classpath %CLASSPATH%;CITYClient.jar project.bmpaccount.ClientInstead of that JSP ...
I've downloaded and installed the Forte/Studio One Community Edition (version 4 update 1) successfully on my W2000 system but when I install it on my XP-Home system, exiting Studio One causes my PC to reboot.What can I do to run this IDE on my system?
683 byte By
Jen_Ya at 2007-9-28 12:28:30
I'm making a Battle City - like game and I've already finished the map for the game. I'd like to ask for suggestions regarding how I could easily determine whether my tank is going to hit a brick or not.I have an array of integers corresponding to the blocks (0 for spaces, 1 for bricks, ...
735 byte By
sunseara at 2007-9-28 12:29:57
Hey guys,A question. In designing our application we needed a place to store a few arrays that never change, some setting that never change and some other stuff. I'd initially thought of using a singleton for this purpose. This however messes up my plan of using one jar-file for several ...
871 byte By
tingdoga at 2007-9-28 12:31:28
Hello,everybody,i am a beginner of UML, Would anyone like to help me draw a sequence diagram and a collaboration diagram representing thefollowing scenario ? i have drawn two diagrams but my knowledge is limited so it is hard to draw good diagrams.You may use Poisedon 5.1 UML to draw the ...
997 byte By
mahi18a at 2007-9-28 12:35:37
Hi there!I am bit confused with the division or categories of Patterns.Does GRASP Patterns (General Responsibility Assignment Software Patterns - catalogued by Craig Larman) come under the group of Design Patterns?I got confused when I read somewhere that - Design patterns are the patterns ...
2274 byte By
cyboca at 2007-9-28 12:37:13
Let's say I have these entities in my database:PersonpersonId (PK)firstNamelastNamePhoneNumber--phoneNumberId (PK)numberdescriptionpersonId (FK referencing Person entity)I have a PersonValueObject class with the following attributes:Integer personIdString firstNameString lastNameCollection ...
here's some output illustrateing my problem * time 1046261208180 drawing 1046261208180 rendering 1046261208400 ** timedrawing 0 time rendering 220 *** %td statistical 0.0%rd statistics 1.0the system millisecond method didnt even return a new number between sampling the starting time and ...
573 byte By
Jinoa at 2007-9-28 12:40:40
Im using an ftp package to make a download manager that monitors download in a JTable. I have a class called FtpDownload that is a thread that performed the actual download. It implements observable so i can update the table model... a url is passed the the constructor and it begins download. I ...
I would like to find more out about the following, maybe a simple overiview with examples or a beginners-experts explaination.I am looking at the idea of:Program consisting of:GUI LayerBusiness logic layerDatabase layerI am looking at ways to implement this. Any ideas to start would be greatly ...
Hi all.I have a simple problem. I written an algorythm to make a list of files and directories in a path:It has 2 classes.In NetworkList.java:package myprojects.networklist;import java.awt.*;import java.awt.event.*;import myprojects.Directory.*;import java.util.ArrayList;class NetworkList ...
hi guys, i'm planned to make java commercial gamesi have bought many java books from book storeand have done basic animation and map engine for my gamebut then i realize all the books was written on 1996!!fiuh that's why all my code is deprecated code!!but that's the newest java book in my ...
Hi guysUrgent! Can we use J2EE server as a RealTImeEnvironment Develpoement?.if so give some tipsif not so pls give why?and what is reason?.i think compare with JBOss,it is better to use.with vijay
I am displaying some graphics images in an applet.The image is being truncated into about a third of what it should be.How is the size of the applet being set? I need help!!!.Here is a glimpse of some of the code.public class TheGame extends Applet implements KeyListener, ...
3112 byte By
mwardena at 2007-9-28 12:55:40
I originally posted this in general java programming, because this seemed like a more high-level design descussion. But now I see some class design questions. Please excuse me if this thread does not belong here (this is my first time using the forum, save answering a couple questions).Forum,I ...
Is Java2 Game Programming a good book? I have attempted to make games in java but all my attempts have failed. I was also wondering if this book starts really simple and works up to more difficult stuff.Thanks.
207 byte By
MoGGya at 2007-9-28 12:57:42
my friends and i are developing a java game. i've been assign to do add images on a map that we're using. i was just wondering is there a way to marking coordinates on an image with out using draw.
173 byte By
id_orua at 2007-9-28 12:58:30
hi everyone, i want to write a 3d tetris. can you tell me where to start with the 3d graphics? do you know any tutorial or something like this ?
3362 byte By
gdascoa at 2007-9-28 12:58:38
Here is my web.xml file<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" ...
Is there any Worked out example which can be used to quickly get into what the MVC Architechure is and How its working ?
I gathered these links to bug/RFE pages that directly have to do with Java game development. Some of these really need votes, and even though Sun isn't the quickest to add features and fix bugs, I hope it would impact their decisions a bit if enough of us vote. Here are a few of the links I ...
I want to write a program, which given two integer inputs j and k will output the combinations of j things partitions into k groups. For instance if j=5 and k=3 the output would be (5, 0, 0)(4, 1, 1)(3, 2, 0)(3, 1, 1)(2, 2, 0)I've got no idea what to do. I think I should use nested loop or use ...
Hello, I am new to all this and I would like to program a game on a Nokia 7650, I have downloaded a few games and transfered them via infrared to my phone (JAD and JAR files)which are pretty cool. All I know they are either written in Java or C++.I understand C++, is faster but more difficult ...
Are there tools which can automaticaly build a Collaboration or a Sequence diagram by analysing the code? It must be possible in my opinion.I am working a little bit with the Websphere Studio Applicatin Developer 5 (WSAD 5) plugin from Together. It supports UML 2 Collaboration diagrams which ...
Hi i am new to J2ME programming and was wondering if there is a simple animation example/tutorial showing the use of sprites or an animated images the one show here on the java site was a little bit to complex for a beginning developer. Your help would be greatly ...
anyone here has an arkanoid/breakout game algorithm? I would like to develop a clone of this game using j2me. thanks!
here's my new bicubic patcha applet example of texturemapping a image of varying size to abicubic patch of varying size that can be manipulated at runtime.Click the applet Hit a key to switch between image'**** the R key to increase the pixel per line resolution from 100 to 1000You can also ...
i have the following questioni need to find the distance of the polynominal in order to step thru time correctly so i am plotingexactly 1 pixel per step of time.i need to know the distance of the curve before i plot it.in the following a = time; time steps thru .0 to 1.0 on a value i specifyand ...
1062 byte By
pars40a at 2007-9-28 13:14:25
In my project, I am suppose to create an agent that plays a simple version of rummy. To win this game, the agent is dealt seven cards initially, and in order to win, it has to create two sets of combination of cards (one of 3 cards the other of 4), each combination can either have cards of the ...
433 byte By
GemmaPa at 2007-9-28 13:14:47
I am trying to make a role playing game and was wondering if there were any good examples of code for moving sprites that would help me.The sprite would be a picture of a character.When the sprite is moving in any direction I would like the sprite to cycle through a "traveling ...
how could deploy EJB with JSP/Servlet?.First i havepackage project.account1.HomeInterface class2.RemoteInterface class3.Bean class4.Client classI deployed the above bean in J2EE using Deploytool GUI.run the client like thisjava -classpath %CLASSPATH%;personDepClientClient.jar ...
Yes, this is a GUI-specific design question, but I'm more interested in the general pattern.My basic question: who should own the construction and management of popup menus ("context menus") for a given component?A. The enclosing JFrame, or something at that level.B. The enclosing component ...
1100 byte By
gbishopa at 2007-9-28 13:19:04
We have an existing J2EE application. We have acquired a company that does not have connectivity at its sales sites - in Mexico (they go to people's homes). We have to have these people be able to use our J2EE application.How, short of putting Tomcat on their PC's (my initial suggestion) can ...
I've almost finished my game, for as far as software can ever be finished. Now I've troubles creating a jar file that contains all of the game's resources. Within my IDE (Eclipse) the game finds & plays .wav files correctly using:for(int i = 0; i< names.length;i++){ais = null;cl = ...
If anyone can help me in how to add Java games to my webpage please tell me thanks, Louie
Can anyone help on how to make some basic java games for my website if you could that would be helpfulthanks,Louie
I tried to go to the publisher's web site, but they didn't have any information on it and it looks like the publisher (The Republic of Texas) has been sold.Does anyone know when this book will be available? I wrote to Amazon.com with this question as well.Thanks.
996 byte By
s_locka at 2007-9-28 13:29:05
Hi,In EJB based applications, the Business Delegate pattern acts as a proxy for web-tier <> EJB-tier calls and hides the implementation details of the business layer code. But what about non-EJB applications? Some of the benefits gained from using the Business Delegate pattern (hiding ...
Is Java efficient enough for making a game? The graphics are probably gonna be FF6-quality. Will it lag/blink? I really prefer it over C++. Also, if I do use Java, should I use AWT, Swing, or a 3d-party API for graphics?BTW, please try to make the decision as unbiased as you can. I LOVE Java, ...
Hi,***This is my problem. In my system I have users, groups and privilages. The system has to be able to give privilages to groups and assign users to those groups. Now this has be independant of any App server and must be done from a system GUI. This is so that I should be able to port it to ...
How to connect j2ee and cloudscapeDB using servlets ?I am getting a Driver error whenever I try to access cloudscapeDB from from a servlet on j2ee.I have Mandrake Linux as the OS.Please helpAbhinav