Implements MVC

1343 byte By khuongdpa at 2007-9-28 8:41:13
I am working on a project where I use MVC in my application. I have used MVC in 2 ways:1. metode:My view class:public void update(Observable obs, Object obj) { if(obs.equals(model)) {if(obj.equals("Add User")) {userName = model.getUserName();password = model.getPassword();.. ...

J2EE BluePrints Web Application Framework ("WAF")

532 byte By babuxya at 2007-9-28 8:41:26
hi, i need to develop a web application using j2ee patters. but i have no idea where to start. can i use the WAF which comes with petstore application or is there a place where i can download J2EE BluePrints Web Application Framework ("WAF) APIs. i know for using struts, i have to download ...

A Relatively Simple Pong Game.

5470 byte By kO2na at 2007-9-28 8:41:41
Hi, well i'm a first year Uni student and we are being taught Java.I'm not an inexperienced programmer, just an inexperienced Java programmer. My class has been asked to produce the Pong game. We've been given help to start with but now i'm afraid i'm stuck. Below is what i have done so ...

decimal to binary conversion

48 byte By apasechnik1a at 2007-9-28 8:41:55
How do you convert a decimal to a binary?

Peer-to-Peer

84 byte By JustAnotherProgramera at 2007-9-28 8:42:14
Is it possible to create a peer-to-peer game applet if the applet was signed?

VB vs JAVA

775 byte By BCAa at 2007-9-28 8:43:43
hi guys........i'm working on a brute force program which as u all must be knowing uses massive recursion(without multithreading, lots of painting etc) . i thought that because of the very architechture of java, it might take longer than any native windows programming language and so also ...

Brute Force Issue(For password recovery)

776 byte By BCAa at 2007-9-28 8:44:02
hi guys........i'm working on a brute force program which as u all must be knowing uses massive recursion(without multithreading, lots of painting etc) . i thought that because of the very architechture of java, it might take longer than any native windows programming language and so also ...

10 Dukes bad class file

97 byte By u0200930a at 2007-9-28 8:45:17
http://forum.java.sun.com/thread.jsp?forum=54&thread=349902&tstart=0&trange=15

pulic static varibles alternatives?

191 byte By spookyya at 2007-9-28 8:45:42
Hi,How do I access something that almost the whole application need to access (for ex a db connection)? Do I make it public and static? Or are there any better way?thanKS

Finding the Kth minimum values in an array problem

528 byte By msisto1a at 2007-9-28 8:48:49
Hi, I am trying to implement a variation of the K-Nearest-Neighbour algorithm using an array of values. I want to find the kth minimum values, i.e if k=4 then I want to find the four smallest values. But what I really need to store is the index that these smallest values are stored at in the ...

Just wonderin what you use to code

201 byte By Dashivana at 2007-9-28 8:51:47
Myself, I am not so experianced, but I find good ol' Edit unbeatable!Wonderin if the more experianced programmers out there use higher end software, or free stuff like BlueJ.-Dash

C to JAVA conversion. double type error

741 byte By lynlvLa at 2007-9-28 8:51:48
I want to translate C to Java Code.The C code is the following:#define HmsToDeg(hh,mm,ss) ((hh + mm/60. + ss/3600.)*15.)printf("just for test: HmsToDeg(12,23,45):%f\n",HmsToDeg(12,23,45));result is: just for test: 185.937500in Java I do:double HmsToDeg(int hh, int mn,double ss) {val = ((hh + ...

Hey Everyone... I have a networking Question...

596 byte By mbmSOGa at 2007-9-28 8:52:39
Ok well its more then just one networking question...I'm working on a game engine (2d) and for the time being it just has two blocks in a 600 by 480 area, both controled by user input on a single comp. I would like to change this so that i can have the blocks be controled by sepeart computers. ...

Introducing in a form - No new window

450 byte By raffaelesergia at 2007-9-28 8:53:06
Hi everybody, I don't know if I am in the right forum but I think here shuld be a lot of J2ME experts.While you introduce a new value in a J2ME text field, a new window opens automatically (in the docs it's called "system screen") and you insert text in this second windows.But I do NOT want ...

Usage of ArrayList in beans, struts, etc...

487 byte By HowesJLa at 2007-9-28 8:54:47
Throughout all the J2EE examples I've seen, there is liberal use of ArrayList to contruct Collections. I've seen them in entity bean, session bean, struts action classes, all over the place. The JavaDocs for ArrayList say that they are NOT threadsafe, but give a threadsafe static method of ...

help racecar game problem

896 byte By greenhippoa at 2007-9-28 8:57:05
im really not that good at java and this may just be a simple structure problem or there may be no way to do what i want but i thought id just make sure before i proceed and do it another less organised wayim making a top down veiw car racing game where hte user can select different cars. i ...

effects question

385 byte By zuloa at 2007-9-28 8:58:22
hiIm making a breakout game, and have a question.For making effects, would you use bufferedImage and manipulate pixel data in realtime?So the bricks could be bufferedImages?And another question: would you make the game an applet usingstandard java so everyone could play it in the browser,or use ...

How could I do this...

871 byte By ryuujina at 2007-9-28 8:58:39
Hi guys,I'm currently creating an applet. And within the applet class I have other classes, example a class for creating buttons and actionlistner for the buttons. It's all in the applet. I tried pulling them out. so that I can reuse the Button Panel. But.. it's not working... Anyone can ...

Problem Creating CoolStars(mooving stars)?

2378 byte By gomes_deba at 2007-9-28 8:58:45
Hi,i want to create a class whichwill have the effect of moving stars,similer to that of the Windows ScreenSaver(Moving Stars) but i am having a NullpointerException. The codes is as follows.import java.awt.*;import java.applet.*;import java.awt.Graphics;public class CoolStars extends Component ...

jumping in platform game

121 byte By zainuluka at 2007-9-28 8:59:08
hi, can anyone tell me were i can get some information about my character jumping in a platform game....ok thanks.

I'm extremely interested in making Java games

367 byte By Dragon_Proga at 2007-9-28 8:59:09
I'm new to Java, and am learning it in school. My main reason for taking that class and coming here is to see if someone might help me and teach me basics and advanced Java in making RPG games. If you can help me, e-mail me at Swebgotenks2002@aol.com or IM me if you have AOL. Thank you for ...

J2ME Java Gme Development for wireless application

232 byte By geopaoa at 2007-9-28 8:59:25
Hi all,we are interested to contact some people to collaborate with us in developping new Java Games for Nokia mobile phone for the italian market.Please send us all your details.Best regards.Paolo

Outputting/Saving Files

137 byte By Shaggalsa at 2007-9-28 8:59:34
hiwhere can i find a tutorial or an example on making a program output information to a txt filethx -Shaggals

The 'rewrite 1 core api class every day' Thread

6749 byte By Abusea at 2007-9-28 8:59:35
as we all know, if you want something doing properly, you've gotta do it yourselfin light of this - I thought rewriting Javas entire core api (so it was done properly) would make quite a fun Thread :Pnow, this being a Game Development forum - I thought a good place to start would be in a ...

Messages from domain to UI

745 byte By defonsa at 2007-9-28 8:59:42
My problem is this: I have constructed a multi-threaded domain, of which one of the classes receives data from the network. I was taught that the domain classes and user interface classes should always be completely seperate (so multiple UI's can be built onto the same domain). The normal ...

BioBlocs invade the Web

749 byte By Dabooa at 2007-9-28 8:59:52
I've realised a game for fun but it take me a lot of time (about 2 years) and the applet now on the website problably have some bugs.The adress : http://www.biobloc.netThrough a rather intuitive interface you will builds your own 3D creature by assembling blocks on blocks.At this point, the ...

Tracking movement/placement of game pieces

1432 byte By mrnika at 2007-9-28 9:01:22
I would like to write a board game like backgammon (for the purpose of analyzing played games). I want to be able to read in a "game" (i.e. match rolls/movements/doubles). Then I want to be able to step through the game move by move, showing the moves visually.I'm fairly new to java. I have ...

Keyboard Input Problem

2384 byte By WaterWolfa at 2007-9-28 9:03:07
Hello,I'm currently updating a java applet I wrote to work with swing. One problem I've encountered is the ususual key down multiple repetition problem. I wrote this nifty class to fix the problem://////////////////////////////////////////////////////////////////////// Gerbils Revenge Version ...

Focus problem in Java 1.4_1 but not Java 1.2

733 byte By WaterWolfa at 2007-9-28 9:03:09
Hello,I'm trying to get the focus to my applet so that it can take keyboard input. I've tried using getFocusInWindow() and getFocus() but neither seem to work properly. To get focus you either have to click on the panel or (rather strangley) if you select another window and then reselect the ...

Is it possible to add joystick support in java?

89 byte By pommyJavaa at 2007-9-28 9:08:33
Is there A WAY to have joystick input instead of keyboard and mouse input in java?

A wild idea

313 byte By kc0ncoa at 2007-9-28 9:11:03
Hi, I have a wild idea (hence the subject). I was wondering if a lot of programmers here (including myself) would like to work as a team to create [bold]1 REALLY AWESOME GAME![/bold] I know that none of you may be thrilled at the idea, but then again you might. Anybody who likes this idea is ...

Yahoo games

456 byte By PSheddya at 2007-9-28 9:11:14
please help me....I've tried everything. Ive checked the appropriate boxes, Ive cleared the cache, i downloaded the most recent java, and internet explorer. when i try to play yahoo games.....i click on the room, and it doesnt load...it says done and sits at a blank screen. i dont get any ...

Algorithm for Expression Evaluator

177 byte By gomes_deba at 2007-9-28 9:12:25
Hi,Can any one help me in finding out the algo of Expression Evaluator,Changing Pre fix to Post Fix and vise versa.Tx in advance.fromgomes_deb

About Observer pattern

165 byte By yuanmengyuan2a at 2007-9-28 9:13:47
Who has the experience with java.util.Observer and java.util.Observable ? Or Please help with 2nd parameter of method update(Observable o,Object arg)?

Encryption improvement...

13936 byte By silkma at 2007-9-28 9:14:10
Okay, I've been making a simple little encryption program and I'm currently trying to improve it.The reason i'm posting it here is that i've found a few problems with it and need some advice in how to improve it.Problems i've found are:1. The ciphertext is at least 3x larger then the ...

Background images

521 byte By generalsnusa at 2007-9-28 9:15:54
Hello. I am currently working on a soccer manager game.I wonder if there's a way i can put a background image to acomponent and then add transparent components on top of this.is there support for such in the java language ?also, if u have any suggestions for creating a game engine i'd loveto ...

multiple entity collison detecion

986 byte By code3hreea at 2007-9-28 9:16:03
Right... I'm making a pool game and have some collison detection determining whether a ball will collide with another in the next frame using algortihm that goes something like if distance between edges < velocity magnitude the collision = true, with other bits to make sure they are on the ...

Surround sound

347 byte By darrinpsa at 2007-9-28 9:17:11
Anyone know when 5.1, 6.1 and/or 7.1 support is to be added for Java?Currently, you only have choices of: Headphone, monaural, and stereo, but I do see a little blurb in the specification that mentions that more options will be coming (but when?).I need support for at least 5.1, so any feedback ...

Connect via socket to an EJB application

1023 byte By rwwildena at 2007-9-28 9:19:11
Hi all,I'm not sure whether this is the right forum to post this question to, but it seemed the most appropriate one to me.I have a standalone server application that clients can connect to on a certain port and interact with via sockets. The application uses the New I/O API to perform ...

need help....please ?

1232 byte By aerohaitha at 2007-9-28 9:19:21
HiI've got this senario that i need to model a UML diagram thus java code.the senario is simply this:There are two doctors in a practice and both take a daily clinic between 9:00 and 12:00. In addition, there are two receptionists, one of whom is part-time. Every patient is registered with one ...

2D Hexagonal Grid

334 byte By fed11a at 2007-9-28 9:19:22
I am interesting in programming a 2D grid made of hexagon shapes. It will serve as the basis for a game I am working on. I would like the hexagons to be attached to a coordinate system and each hex to have unique properties. Can anyone point me in the right direction to code this or is this out ...

Full feature gaming ...

1195 byte By breaker030a at 2007-9-28 9:19:38
Hey all ...I currently code using the Microsoft platform of technologies. However, I cannot continue to afford paying for all the tools that they are using..I am looking at more Java now, and was curious about a few things ...Some key areas I am looking to accomplish would be:1.) 30 FPS ...

There it is...feedback need please?

975 byte By aerohaitha at 2007-9-28 9:23:17
here is a link of UML diagram i 've made , so please look at it and let me wt u think http://uk.geocities.com/aerohaith/mePhotoPage.htmlthe senario is here:There are two doctors in a practice and both take a daily clinic between 9:00 and 12:00. In addition, there are two receptionists, one of ...

Help with Class designs

682 byte By abolakramia at 2007-9-28 9:26:07
As part of an assignment i have to come with some class diagrams for :Customer, MobilePhone , PackageCategory, Manufacturer, LatestPhones, CreditCardDetailsI have identified the attributes but need the methods to the follwing classes:Customer (Class Name)NameFull AddressTelephone NumberEmail ...

Typing Test

1187 byte By zneroladivada at 2007-9-28 9:28:36
What is the best algorithm to score a typing test?A user types from a sample. You compare the two samples and determine how accurate the sample is. A missed word, an extra word or a misspelled word are wrong. Having more than 2 spaces between words is also incorrect. Having more than 10 words ...

please help with card deck problem

2171 byte By apasechnik1a at 2007-9-28 9:29:26
the class is supposed to create a shuffled deck of 52 cardsit first is supposed to make an ordered deck of cards and then pull cards out of it and into another deck at random. when a card has been pulled, it is supposed to be taken out of the ordered deck. I say supposed to because for some ...

CHANGE THE EDGE DEFINITION FOR THE GRAPH

11728 byte By zooo79a at 2007-9-28 9:31:06
i have a few question. first sorry for my english.down are my declarations and definitions for a graph that can be directed and not.The definition for the edges are now that you can create only an edge that can go directly from one vertex to the other. I don't know how to change the definition ...

non database persistent calendar

598 byte By oasiennea at 2007-9-28 9:31:52
Hi all! i need your help for the following.I am trying to develop an application that will calculate market holidays and calendars.One of the requirements is that the calendar data should persist in a registry or a property file but not in databse.So i should have some kind of process that ...

Need help quick on basics of graphics

268 byte By Zarastroa at 2007-9-28 9:32:16
Hi,i'm trying to make a java piano(like the one you all know probably),but not in applet form.But I don't even know how to draw graphics(jpg, bmp, whatever...)on screen.Can anyone help me out with a sample or a good tutorial.Thanks

OOD issue

2515 byte By joelyua at 2007-9-28 9:33:00
I encounter a OOP design problem at my work, I want toask your suggestion, so if you have some free time tospare, please help me out.Let's say I have three classes, A, AHolder, and B.class B extends Aclass AHolder is a container of A, it haveconstructors look something like this:AHolder(X x, Y ...