Game Sounds

476 byte By Nethera at 2007-11-26 17:12:57
Hey,In the past, most of my games have used other people's images and sounds, but now i'm trying to make this next one completely my own. I can create my own pretty well with Paint.net, gimp, and photoshop, but I have where to find a sound creator. Can someone point me in the right direction ...

Next Double from a String

500 byte By climbjm2a at 2007-11-26 17:14:21
I have used a Scanner Object before to read doubles from an input, but how do I get the Next double from a String?Used this in the past:Scanner input = new Scanner(System.in);double num = input.nextDouble();I am looking for something like this:String example = "100.00";double num = ...

JOGL and 2D overlay...

557 byte By TheTima at 2007-11-26 17:14:39
Okay, I've been searching the net for a few hours trying to figure this out...It's probably something really simple, but I'm tired and the brain isn't working right :)I want to use the Java2D TextRenderer to overlay text onto a JOGL scene I'm creating...I've found some samples around the ...

Simultaneously field access in a class by many threads. What pattern should

2959 byte By aboaventuraa at 2007-11-26 17:29:14
Hi all,Sorry if it's a newbie question, but I didn't find the path to solve this problem in the forums, so I put this question:I have many threads that may run simultaneously with need to access field values in a class instance that control some counters. These threads should access these ...

Accessing OS data

318 byte By NbaProga at 2007-11-26 17:29:31
Hi,For a game I am developing I would like to capture the native OS data such as texts, icons, windows, before it is displayed on the screen, so that I can alter it. Mainly I am looking for the object itself (e.g. text string), its location, and its properties. Is this possible to do?Many ...

Finding All subsets of a set

410 byte By PhaniKumarNistalaa at 2007-11-26 17:31:20
Hi,I tried to find all the subsets of a set. But it is taking a long time. If the number of elements is 9, it is taking around 2 minutes. if it is increased to 13, it is taking a lot more time (I waited for more than 4-5 minutes, but no output yet). Is there any efficient algorithm to find All ...

RSS feed in my page

457 byte By Pranabia at 2007-11-26 17:32:55
Greetings,I am using Java Studio Creator to create my pages and I want to add an RSS feed in certain location of my page, I get three news pulled from the particular site. I use ui script for displaying it, but when the news are displayed on the page it is sprawled over the page and is not ...

Real Random Numbers

1661 byte By rak78a at 2007-11-26 17:35:12
Hi Folks,I have been assigned a task to generate series of random numbers which should be real in nature. For those who are not aware of this concept, I would like to explain that real numbers are basically of two types: (1) pseudo random numbers, and (2) real random numbers.Real random numbers ...

Performance Issue

405 byte By Tatona at 2007-11-26 17:37:21
Dear Friends,One of my company's application is now having performance issue.It is made in JSP 1.2, Java 1.4, Oracle 8.1.7. It is running for 2 years but now it is logging out automatically and also user are getting login,they have take many tries. Mostly this problem is severe at 5 pm.What ...

becomeImmutable?

1277 byte By hemalpandyaa at 2007-11-26 17:38:50
Sorry for the sorry subject line, could not think of anything better.I am working with an architecture that has two layers. Let's call it Outer and Inner. Outer layer provides "command"s to the Inner layer, which then processes them and provides the "result"s back to the Outer layer. The ...

Synchronized Instance Methods in Singleton Class

398 byte By tom_chanskya at 2007-11-26 17:41:20
If I've a TransactionManager class that's a singleton; meaning one manager handling clients' transaction requests, do I need to synchronize all of the instance methods within that singleton class? My understanding is that I should; otherwise, there's a chance of data corruption when one ...

Getting Rss feeds from Gmail

231 byte By ls.thora at 2007-11-26 17:45:19
Hi guys,How do we access to our gmail rss feeds if we can only read our mail after we login?Does this mean I will have to login whenever i want to access my gmail rss feeds?Kindly advice.From,Thor

"Average paths"

855 byte By ArneWeisea at 2007-11-26 17:48:28
Hi guys!Suppose I have data showing how n people found a way from A to B through an obstacle course (open area with obstacles).I now want to filter this data and visualize some sort of "average paths" for analyzers. The point is that the operator wants to be able to look at this modified view ...

MVC: info on update method

691 byte By MargNata at 2007-11-26 17:50:23
Hi,I'm using MVC pattern.I've understood it, and I be able to use it, but I've some doubts.Practically, in the view I have the update method;Now, my view interact with many models, which advice it by executing his update method.But in this update method, I've various pieces of code;one for ...

Obtaining an Image as bytes

822 byte By Mike_FXXa at 2007-11-26 17:53:48
Hi there,There must be simple answer to this one, however I am still looking for the solution. If you know it then please post it here, otherwise I will update this post once I know the answer.What I would like is basically the following: My JFrame loads a JPG from file and places it as ...

depth first search tree

2826 byte By javaaaa at 2007-11-26 17:55:13
Hi,I have stored some states in a vector (States are numbers). In my code i have printed out the parent nodes, the 2 elements after the parent nodes are there child. The element placed at position 0 in the vector is the root.I do not know how to implement a depth first search tree to address ...

console gui

301 byte By raj_mca4ua at 2007-11-26 17:57:04
Hey everyone, I recently found the need to program a gui in Java but in console, no actual screen or anything. However, I cannot find any examples of how to create a gui in the terminal in java. All it would need to do is show the movement of something. Thanks a bunch ...

console application?

308 byte By raj_mca4ua at 2007-11-26 17:57:14
sir,how to use the java console application for displaying game output?i thought that console is only for displaying text outputs but how can i display images?do send me any examples if u know ,for displaying images in java consolemail: raj_mca4u@yahoo.co.inthank ...

What is the best design

934 byte By rudolfcastelinoa at 2007-11-26 17:58:27
The problem statement isThe Annual sports day for a company is held annualy. Each department of the company can represent members to take part in various events.An event can be official/demonstration. Official events earn medals. An event also can be a team event or a individual event.A ...

Components build up in memory, how can i destroy them?

3736 byte By Leon945a at 2007-11-26 18:01:59
Hello!I have a problem.. maybe it磗 simple to fix, but i'm kind of a newbie...I'm trying to make a 2D shooting game..The problem i'm having is that whenever the user "shoots", a bullet object is created, but i noticed that the bullets never disappear from memory...This is the Bullet ...

Game Graphics Wont Appear - Rared up for ur convenience. Thanks!

73 byte By gsquare567a at 2007-11-26 18:03:32
[url] http://rapidshare.com/files/15914242/Version_3.rar.html[/url]

Design options for throttling the sending of xml messages

1539 byte By jakain2a at 2007-11-26 18:10:05
I have 4 different xml message types that I must post to a service. 3 of these message types can be sent asynchronously but 1 must be sent synchronously:These types can be sent asynchronously:CreateUpdateDeleteThis type must be sent synchronously:RetrieveNow the problem is I must throttle the ...

Superscript in swing

142 byte By Sarayu_Geethajalia at 2007-11-26 18:10:06
Hi,Please let me know how to handle superscript in swing.Superscript for JLabel or JTextArea.Thanks,Sarayu.

XMLBeans

48 byte By marlabsstudenta at 2007-11-26 18:14:19
any Design patterns is using in XMLBeans.

Pagination

673 byte By Neo2001a at 2007-11-26 18:17:55
Hi friendsIm developing a web application where im fetching data from database. For showing the records i have to implement pagination. now the data could be 1000 - 2000 records also... so keeping it in session does not sound good to me. and i also dont want to hit the database again and again. ...

My First Game: Sudoku

690 byte By ErikSilkensena at 2007-11-26 18:22:37
Hi everyone--I've been trying to learn Java for about the last 6 months or so and I finally finished my first game - 'Sudoku'... so I thought I'd post a link so other people could download it and try it out! I think everything works, there might be a few bugs which I haven't run into and I ...

REGEX -- Finding matches in a String up to a certain point

1583 byte By oppositereactiona at 2007-11-26 18:24:06
I assume that most people will find this to be a naive question, but my general lack of experience with regular expressions is killing me here. I am about to pull my hair out, so I'm asking for help.I have a one-line string and I want to replace all occurances of ***.jar with ***-obf.jar, but ...

Maze traversal algorithm

446 byte By laxstar8a at 2007-11-26 18:40:45
I'm in a contest where i have to build an efficient function to navigate a sprite around a maze to a given location...the problem i'm facing is that all the information i get about the maze is my position, the position of the goal, the no. of the openings around me & my direction... so ...

Convex hull for circles

244 byte By sujjyoa at 2007-11-26 18:41:13
Hi Everyone ....can somebody please help me get the code in any language to find the convex hull of circles of same radii. I would be delighted... even if i could get an explanation for finding the convex hull of circles with same radii.

Design Pattern Implementation

737 byte By meaobaoa at 2007-11-26 18:50:17
hi guys,My graduation project is on design patterns & how to develop a CASE tool to use each design pattern & modify it according to the developer needs !!!But i have a question please !!! How can i implement a design pattern with java code !!! for example there's a pattern called a ...

Question about games

423 byte By Robbyisherea at 2007-11-26 18:50:56
Hello, I need some advice. I was going to start building games with c++/c# but when I was going to start learning directx for c++/c# I thought it would be better to use the games I make over any os(operating system).BUT, will opengl with java have just as good graphics as c++/c# using directx ...

MVC: update only one time

1843 byte By MargNata at 2007-11-26 18:53:07
Hi,suppose I've this model class:public class MyClass extends java.util.Observable {public MyClass(){}//get methods...//set methods...private int x;private int y;private int z;private int t;private int s;}Now I want that, when I use more than one set method, observers are notified only one ...

What is Aggregation & Composition

86 byte By ravynza at 2007-11-26 18:55:33
what is aggregation and compostion ?why is the need for these concepts ?

draw a perpendicular

139 byte By sujjyoa at 2007-11-26 18:55:44
Can somebody tell me a method to draw a perpendicular (formula) in order to find the points of tangency of two circles of same radii

MVC Adding various views to a Main Frame

710 byte By JonlWrighta at 2007-11-26 19:01:37
Hi, If I have a a couple of different Views which are created by a couple of different controllers what would be the best way of adding these to a main frame. For exampleView1 extends JPanelView1Controller creates it.View2 extends JPanelView2 Controller creates it.MainFrame extends ...

OO design

829 byte By Holoda at 2007-11-26 19:07:25
Good day.I have a question, what is the best wat to design desktop application.The aim of it is to connect to DB, get some data, insert some data, update some data.This application will be like a small business model of my department.It will help to control the state of incoming and outcomming ...

3d car racer

106 byte By tprimus83a at 2007-11-26 19:09:40
Hi!Please help!How can i make easy a running highway with curves effect?Thanks

Real Life Example For Patterns

276 byte By Basha at 2007-11-26 19:10:05
Can someone please help me with real life pattern example by following the below given rule.A pattern description must address the following major points: Pattern Name and Classification Problem Solution Consequences Known Uses

Advantage of Singletone Pattern

55 byte By prady_joa at 2007-11-26 19:10:54
what are the advantages of SingleTonepattern...?

Animate a OBJ or 3DS file

52 byte By tyrant4Javaa at 2007-11-26 19:13:06
How to animate a OBJ or 3DS file on java ?...

Problem with JOGL

253 byte By tyrant4Javaa at 2007-11-26 19:18:07
I try to execute a sample code of JOGL, but i have the following message error :Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl_drihack in java.library.pathI use Netbeans 5.5 over Linux ( Kubuntu 6.10 )tks.

MVC implementation wondering

1216 byte By mspa at 2007-11-26 19:19:34
Hey guys,I am currently playing with a j2me application. I am (of course :) ) implementing an MVC pattern and as I have little experience I was wondering:How would you implement the model internal state?I mean the application would normally have more "screens" which belong actually to one view ...

Intersection of straight line with 3rd order polynomial

185 byte By Query_wearya at 2007-11-26 19:22:17
Fishing for some advice on finding a solution to finding the intersections of a straight line with a third order polynomial. Does anyone have experience with a problem like this?

Object to Object in WebService Integration Tier

750 byte By sdegardina at 2007-11-26 19:25:36
Hello,I'm working in a Financial application.We use WebService as main datastore.So, i designed a facade for WebService integration into the Application.With a SOAP engine (Axis, Xfire) a have generated Class representing the message info and request/respond for the webservice.In the ...

Starting off

443 byte By adambeeversa at 2007-11-26 19:26:41
Hey, ive just recently started looking into making a java game, i want to start simple and build up to making something bigger.. ive been looking all over the site but cant find anything helpfull about what you need to start making java games, please could someone tell me the link to what ...

Validation Framework

1656 byte By es5f2000a at 2007-11-26 19:27:23
My new employer has no current standards for data validation.Basically, there's no parameter checking and no usage of assertstatements anywhere.I've decided we need a library to facilitate a transition to a moresane environment. I have two questions:1. Is there any prewritten library, or is ...

Help - Running Sudoku Game

14583 byte By .Williama at 2007-11-26 19:28:23
I am trying to get this code to work, I am not really sure of the problem with it. I am using JCreator to write/compile/run it. When I compile it, it compiles fine but gives this message. "Note: C:\JFiles\Exercises\Sudoku.java uses or overrides a deprecated API.Note: Recompile with ...

Unit Colors

362 byte By Nethera at 2007-11-26 19:33:05
In a game like age of empires, do they have a separate image for each color of a unit.ExampleredSoldier.pngblueSoldier.pnggreenSoldier.pngOr do they have likesoldier.pngand then they modify the pixels during runtime to create a soldier image of each color.If choice 2, how do I do ...

Algorithm: calculate x^p

312 byte By dannenya at 2007-11-26 19:40:36
You can calculate x^p by multiplying x p times: x*x*x*x....x*x. The "cost" will be n multiplications.I know it is possible to create a more effective algorithm, with the "cost" log n, by using divide and conquer, and the fact that x^p = x^(p/2)*x^(p/2)^...Thankful for your ...

SQLite to load a map

3047 byte By haliphaxa at 2007-11-26 19:42:57
i've been using the SQLite JDBC driver in order to load maps and filenames from an SQLite *.s3db file. locally, it works fine.as soon as i upload it to my webserver (which is on my local network, controlled by me), it just blanks out and sits there.java.lang.NoClassDefFoundError at ...