1444 byte By
jakain2a at 2007-11-27 5:48:23
I have a Constants class that defines some constant values that are used in various places in my web application. Some of these constant values are set by a startup servlet so cannot be declared final. For example:public class Constants { public static int SOME_VALUE; public static String[] ...
HiLets have a look at this example.public interface MyInterface {public void init() throws MyException;}public class MyClassImpl implements MyInterface {public void init(){//Not throwing MyException}}Is it a good practice that the MyException should not be thrown in the init() of the ...
2393 byte By
smokinga at 2007-11-27 5:50:30
Hello there!I am facing for the 1st time in my life the problems of projecting and developing an application using "serious" OO analysis and design within the Rational Unified Process..What I have to do for the final exam of my course is a web application which has to respect the MVC pattern ...
how can we implement aggregation and composition in java?
my friend and i want to know what would be best for our game. if you havnt seen it yet, its located at http://topgun.freespaces.comeventually we're gonna hav missions and levels for each mission. we're also gonna hav upgrades. would it be better to hav passcodes to get into each levl, with ...
i don't get how each thread knows what it is supposed to do when start() is called. how does the program distinguish the start() and run() methods. also, i'm just experimenting on sound. and i converted an mp3 file to an au on a website. then when i put it in my program it was rreeeaalllyy ...
158 byte By
rejeepa at 2007-11-27 6:00:25
Hi!I am trying to learn about the Observer, MVC pattern.The problem is that I cant find any good tutorial... Does anyone know any?
I am developing a java applet based game portal but the problem is that the applet will not run till the JRE is installed on the client machine.I don't want the user to manually download and then install JRE.Is there any mechanism through which i can detect that whether the required version of ...
Is it best to build the game and its features then add the network code later? Or is it best to program the network parts while you are building the game?
5588 byte By
Sangea at 2007-11-27 6:05:48
Well, check it. Basically I'm running an application that looks something like this:public class Gameextends Canvas implements KeyListener,MouseInputListener{/*-Variable Declarations-*/...//GameApp ObjectsBufferStrategy strategy;JFrame gameWindow;Graphics g;public Game(){version=2.0; //see ...
I am currently making a program that solves sudokus and am running into a little difficulty. this is the solve function that's called from my main method. it is passed the 2D array containing the contents of the sudoku program. The program calls 3 other methods (CheckItRow, CheckItCol and ...
Suppose I'm writing an implementation to an interface:public interface WeatherReader {public double readTemperature(int zipCode) throws ZipNotFoundException;}The client code passes in a zip code and expects to receive the temperature or a "zip code not found" exception as a response.My ...
.....
I know Im brand new on this site and this is very rude to just come on and post a question i have but i dont know where else to go. Im going to college now to major in programming and i have to take a alg/flowcharting class and my prof in there is a jerk. The only algorithm i have done is ...
Hi,I'm creating a class to my SCJD cert impl that has a protected RandomAccessFile reference member. I've designed this member as protected since subclasses really need to access it.My dilema is that I thought of this class as a wrapper to that member, but, the way it is, classes from the ...
Hi,I just want to know, how did you (as experienced Java developers) learn the way to design your application in a professional way.How do you design your application (before start writing a single line of code) to give it the features like scalability? How do you manage conceptual application ...
649 byte By
basharfa at 2007-11-27 6:26:40
Hello All,i could use some help..Regarding EJB, when using enitiy beans from tables; the question is, for each table will have an entity bean ?for each user using these instances .. will each user have his own instance or one instance for all users ?so what about if we have 1000 tables, and we ...
733 byte By
vatora at 2007-11-27 6:28:43
I'm using a mvc design pattern for my webapp. In some of the books I've read it seems like they are suggesting to use one controller for each of the usecase. Is this the right way to do it?For me it seems like you get so many classes. If you are dealing with a User, and has to modify info ...
Hi,I have following problem with the current plugin mechanism of our application:In general, plugins can easily be integrated into the application. But some plugins need some sort of persistence mechanism (i.e., some database tables). And here the problem arises. The application itself uses an ...
Hi all,I'm facing the problem I'll try to explain.I've the following abstract definitions.1) Business Object - It's any object of my business that application has to handle (it might be a currency, a bank, a customer...a report etc)2) Transaction .-It's is not the transaction concept of ...
Hi allFirst off, to 'matfud' and others who have posted on using FFT to detect frequency content of an audio segment, many thanks. Your posts have been very, very helpful, especailly these threads:"extracting frequency using fft ""FFT to get DTMF on a Wav file "Now, with the ***-kissing out ...
658 byte By
ShakuR_a at 2007-11-27 6:44:09
Dear all,I have a method which takes as input N vectors each one containing K strings.I want all the possible combinations of strings occurring if I select only one string at a time from each vector and from all vectors. For example:If I have the vectors:v1[A, B, C] v2[H, k] and v3[k, O, P]an ...
Hi Friends,Need urgent help.I working on a project where there will be multiple ear ,each for one application.There are 4 project and 4 ears and one common util war file which will be shared by all ears.Problem is : 3 of the projects will use same database tables. I am using hibernate ORM ...
Because I don't see one.Why have Sun not archived this forum like the others, it's about the worse when it comes to non-relevent activity.Of course if the previous efforts are anything to go by they (Sun) made the decision to archive this forum in April of 2006, will announce on August 1st, ...
Hi there,Am very novice to Java programming and recently downloaded a applet based java game from the net. I wanted to tinker around with the code. I downloaded a java dj compiler to extract the source code to read thro the code. After which i wanted to make some changes to this source code and ...
1101 byte By
Nethera at 2007-11-27 6:53:35
Note: this post has been copied from the Programming section, i won't link it b/c all the replies were useless.A graphical one that is.The technique that I'm using is this:-create a grid of points-have them move around according to formulas-render them where lines are drawn from point to ...
hi i need help comparing ten numbers given by the user and stored in the form of an array. the numbers cannot be repeated. thanks
I was recently asked this question in an interview .. as to how I would design a traffic signal mechanism , although I have some ideas I was wondering if I could invite some more thoughts from forum members . Surely the solution would involve application of design patterns .
Hi Experts,I have a problem in designing an ApiI define a bunch of annotations for my value objects at runtime, currently I have a AnnotationUtil class in which read all fields of the given classes and put the field name and its annotation in a Map structure so whenever I need to know the ...
Summary:A game I have written uses bitmaps and lots of Ellipse2Ds. The Ellipses are in the background and occasionally need to all be redrawn (there could be many - let's say 100 at a time). This works fine on a Windows box, and Macs from G3 - current Intels. When I attempt to run the ...
I built a top down two player death match game. However, due to the limited amount of key presses java can process it requires a game pad to play. So I'd like to rebuild it as a two player network game. Can anyone provide me with a good piece of example code to show me the basics of how to lay ...
Hi,I have developed an application that allows an user to perform several operations. Now, I need to add a new feature to it: some operation is classified "unsafe". The application can therefore be run in two modes: safe mode (allows only safe operations) and unsafe mode (allows safe and unsafe ...
Hi, i need to how to make my rss feed file accessible from whoever subscribe to that file while that file store in jboss server.Is there any other way to make it or any better way to store rss file in jboss server?Thank You
I am wondering where can I find NEH algorithm in java code? I am searching in the internet but I can't find any relative document. Thanks in advance!
How do you make it so that the player is centered as it walks and moves through a tile map ?I've tried moving every object manually but i cant get it to work, and it also seems very inefficient.Thanks.
I have plans of making a 3D on-line first person shooter applet. I am wondering if a java applet will be able to handle(with high frames per second) all of the rendereing required to do it.
Hi all,My web application has a SearchManager. (which obviously doing search).class SearchManager{SearchFactory factory = new MySearchFactory();public SomeClass onSubmit(HttpRequest request, HttpResponse response, SomeCl obj){factory.search();}}I need a connection (instance of MyConnection) for ...
536 byte By
KayDeEa at 2007-11-27 7:53:12
good day to all of you!!I am interested in a project that says:Game Engine Development ( 2D ) for my final year B.E project.The thing is i have no experience or any knowledge about game engine development.My professor says we can use VC++ but any other language would do.I have been studying ...
1992 byte By
smokinga at 2007-11-27 7:55:42
Hello everybody!I am working to a project and I have a issue about giving responsabilities in OO Analysis for which I kindly ask your suggestions.The project, in brief, is about a system which has to manage the money an institution (e.g: Association for cancer research) donates to a research ...
823 byte By
Nialsha at 2007-11-27 7:58:30
Hey everybody.I'm working on a little turn-based game and I hope to learn a bit about networking in the process by making it multi-player.The only problem with that is that I know next to nothing about networking. As I understand it, I have to have a server that each instance of the game ...
hii have done my engineering in computers.i want to enter into game designing field.anybody can show me the direction.pleasethanks
Hi all,I am new to patterns and need some help with DAO's. I want to work on a sample app using struts. Please give me the links so that I can go ahead. Your answer may help hundreds of others who are using this forum.Thanks,
18413 byte By
PaRlOaGna at 2007-11-27 8:12:12
Hey People! I've recently begun programming a game where there's a few tanks that rotate around, but this version is completely from scratch, I haven't used any code from the Game class (haven't really looked into it any way). I'm having a bit of trouble with the networking side of things. ...
I have programed one first person game using Java 3D and am working on a new idea and I hope to be able to run it through a web browser.The problem I am having is using the mouse in the game were it does not leave the applet window when moved and I can keep track of how much movement it makes ...
Hi all,I have a superclass Person and 2 subclasses Male and Female that extend the superclass.public class Person { // name stringprotected String name;// gender : M or Fprotected String gender;public String getName() {return name;}public String getGender() {return gender;}}// End of ...
hi to everyone.i want to get into gamedesign, so im planning to create a mod of a game.can anybody help how to get started with it and what is involved in itthanks
Hi! I already posted this in a different category, but was advised to post it in this forum...I am just preparing a course I am doing for 12 year old kids at a summer school.I was thinking of game programming. There is one software available that's free, called PyGame. I couldn't install it ...
hi to everyonei have a code of puyo puyo game..but iam not getting the logic of the game ...the code is import java.util.*;public class TehCodez {public static void main(String[] tartar) {HashMap tehDates = new HashMap();tehDates.put(new Integer(2), "u");tehDates.put(new Integer(4), ...
557 byte By
Irona at 2007-11-27 8:37:58
Hello all,I am trying to get a simple image to follow the mouse cursor, to let the player control a ship in a shooting game.The problem is that I don't want the ship to follow exactly on top of the cursor (like a .moveTo method would do), but rather have it so the ship sort of lags behind the ...
WOW.Well, its not REALLY pong thus it is hard... So, take the classic pong game but change the shape of the paddle to lets say any polygon... When a ball hits any side of this polygon it should bounce off with the same angle as the incident angle but in the opposite dierection... Ok... So, how ...