Constants class

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[] ...

Exception Handeling

422 byte By Santosh_Mohantya at 2007-11-27 5:49:47
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 ...

A suggestion with persistence mechanism

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 ...

Aggregation & composition

64 byte By ritu_jainna at 2007-11-27 5:52:27
how can we implement aggregation and composition in java?

usernames or passcodes

646 byte By stephensk8sa at 2007-11-27 5:54:44
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 ...

threads/loading sounds

438 byte By stephensk8sa at 2007-11-27 5:56:36
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 ...

Observer, MVC pattern

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?

Urgent : autoinstallion of JRE

561 byte By deepakchaudhary24a at 2007-11-27 6:01:52
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 ...

basic networked game

161 byte By Chris1234554a at 2007-11-27 6:04:46
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?

Major Lag with my Application and a 2D Ball collision question

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 ...

a little recursion help

1962 byte By arthan-khwelnula at 2007-11-27 6:09:10
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 ...

Unforeseen Exceptions in API

995 byte By mikedehaana at 2007-11-27 6:10:46
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 ...

puyo

12 byte By stephensk8sa at 2007-11-27 6:13:47
.....

Algorithm Problem, Urgent

1881 byte By Lepinat0ra at 2007-11-27 6:15:49
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 ...

Definition to a wrapper class

620 byte By talesToninia at 2007-11-27 6:17:15
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 ...

Good Application Design Using OOP Concepts

750 byte By Arash.Shahkara at 2007-11-27 6:22:26
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 ...

EJB INSTANCE

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 ...

One controller for each usecase?

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 ...

Plugins with persistence mechanism

1916 byte By wfragnera at 2007-11-27 6:29:15
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 ...

Which combination of design patterns could I apply to my problem?

1055 byte By fmagrini72a at 2007-11-27 6:33:59
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 ...

Using FFT to find and alter frequency in an audio file

1303 byte By healyrona at 2007-11-27 6:36:24
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 ...

All possible combinations of n vectors with k elements

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 ...

How to handlle multiple ear and common database.

1164 byte By Novin-Jaiswala at 2007-11-27 6:44:40
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 ...

Is there a single on-topic thread in this forum?

477 byte By cotton.ma at 2007-11-27 6:48:26
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, ...

Problem with my game

788 byte By raghunandansra at 2007-11-27 6:50:24
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 ...

So I'm creating an EMP....

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 ...

i need help comparing 10 numbers

136 byte By colombia123a at 2007-11-27 6:53:44
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

Design of Traffic Signal

282 byte By insaneyogia at 2007-11-27 6:55:10
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 .

Proccessing Annotations and design problem

757 byte By java1357a at 2007-11-27 6:57:09
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 ...

Odd Draw Behavior - Slow Ellipse2D Draw

1031 byte By botissuesa at 2007-11-27 7:02:31
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 ...

Game Networking Example/Tutorial

543 byte By RedUnderTheBeda at 2007-11-27 7:03:10
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 ...

Allowing a program to enable/disable some functionalities

879 byte By java_knighta at 2007-11-27 7:03:24
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 ...

Accessing RSS Feed file from jboss server

244 byte By Kuntilanaka at 2007-11-27 7:09:33
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

NEH algorithm

164 byte By javoxygena at 2007-11-27 7:28:44
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!

Scrolling in tile based Games

223 byte By that_other_guya at 2007-11-27 7:28:49
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.

Java 3D performance

196 byte By RAIN_MANa at 2007-11-27 7:42:40
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.

Factory inside a web application. Design issue.

1497 byte By Kamal-Mettanandaa at 2007-11-27 7:49:34
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 ...

Developing game engine!

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 ...

A suggestion assigning responsabilities in OO Analysis

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 ...

Java on a Server

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 ...

how to get into game designing

151 byte By jilani27a at 2007-11-27 8:07:45
hii have done my engineering in computers.i want to enter into game designing field.anybody can show me the direction.pleasethanks

what is a DAO and how to implement a sample example?

247 byte By PaviEluri20a at 2007-11-27 8:11:17
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,

Networked Synchronized Game

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. ...

use mouse for first person game

566 byte By seegreena at 2007-11-27 8:12:35
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 ...

simple subclass question

2383 byte By dfvdfvdfvxfva at 2007-11-27 8:17:52
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 ...

how to create a mod of a game

191 byte By jilani27a at 2007-11-27 8:18:35
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

Game Programming for Kids

591 byte By lilbird1981a at 2007-11-27 8:18:57
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 ...

puyo code.

785 byte By jilani27a at 2007-11-27 8:31:00
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), ...

Moving a sprite along a vector (line)

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 ...

PONG that s HARD (hard to believe eh?)

739 byte By ArikArikArika at 2007-11-27 8:40:21
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 ...