design sanity check/advice

3374 byte By GDW13a at 2007-10-2 23:20:14
I'm relatively new to "real" object-oriented design/development (i.e. patterns/refactoring etc.) although I've been working with OOP languages for quite some time. I've been doing a lot of reading/research in order to take it to the next level and am incorporating it into a new project I'm ...

Filemonitor - Strategy pattern?

1183 byte By Tony.Cookea at 2007-10-2 23:20:57
Hi all.I have an application that I think needs to use the strategy pattern but I'm not sure. I'm fairly new to design patterns but I would like to be able to use the right one and as yet I can't see which one to use and where.My first instance of the application places a listener on a file ...

a library for access to Logitech G15 keyboard

239 byte By xs0a at 2007-10-2 23:21:52
If anyone needs it - I wrote a simple wrapper for Logitech's LCD SDK, with which you can access the G15 keyboard's display and soft buttons. (WinXP only, like the original SDK) http://www.xs0.com/j15/Cheers,xs0

Algorithm help!

829 byte By mishimaa at 2007-10-2 23:23:18
Hi,I have to do produce an algorithm that takes any positive integer greater than 0 and less than 500 and once i have done this I need to produce a:A list of all the factors of the given integer .A statement of how many factors the given integer has.A statement of the sum of all the factors of ...

java regular expression

1293 byte By javadudea at 2007-10-2 23:24:11
Hi I am using java regular expression to evaluate some string and it works fine with me when the pattern is english but when the pattern contains arabic character it is not working at all what I can do here is my codeString ...

Weak References in Listener Lists

1122 byte By Eric-the-Ka at 2007-10-2 23:24:19
I've found a common source of memory leaks is when objects that add themselves to listener lists forget to remove themselves when they are done.It would be nice to generalize and say that listener lists should contain weak references, but there are probably valid cases where a listener's only ...

HELP !!!!!! Design decision...!!!!!

883 byte By sshanjia at 2007-10-2 23:25:06
Hello,I am in a dilemma of making a design decision . We are developing a business tier component. This is going to talk to webservices on the backend. Right now it is going to integrate with 2 different backend systems through web services. In future it might support more of such backend ...

Draw color whit alpha is very SLOW!!!

1161 byte By blowa at 2007-10-2 23:29:10
Hi all, i have a problem whit my first java 2d game.I need to draw material like water, now i use this code:public class Water{GeneralPath water=new generalPath();public Water(bla bla bla){ water.moveTo(etc etc...); water.quadTo(etc etc...);}public void drawWater(Graphics2D g2) {g2.setColor(new ...

Using bluetooth for a J2ME game

382 byte By Saganusa at 2007-10-2 23:29:35
Hello. I'm in the process of making a very simple tetris-like game, and someone suggested that it would be cool if it used bluetooth so we could play in class :). So, I come to ask you if bluetooth would be a good solution for multiplayer, celphone based games.I would love if it did, because I ...

need an algo

196 byte By Ravi_McLoriana at 2007-10-2 23:31:59
I need to implement a pattern matching algorithm.. which searches a pattern in a directroy structure recursively.can anyone suggest an algo for this .I need to implement this in java

classloader with singletom

3111 byte By vpalkondaa at 2007-10-2 23:35:55
Hi I am trying to verify that you could have multiple instances of singleton if you use different class loader. Could somebody tell how I can verify . Here is the sample filespublic class SingletonTest {private static SingletonTest mSingleton ;public SingletonTest(){}private int x = 0;public ...

This Is Urgent? Which Serial Ports Can I use to Test my Program

317 byte By Chaudhrya at 2007-10-2 23:36:44
Hi I m making a software to controlling my home appliance.i m in in initial i want to which which serial ports i can use to test my program e.g com1 port 2000 can any one suggest or can any one give me link where this information i used.I m using windowsXp ...

Properly (?) Double Buffered Applet is really Choppy

8624 byte By CrumbBreada at 2007-10-2 23:40:19
Hi all. I looked around here for the proper way to double buffer an applet, and I think I've got it, but it's realllly choppy when it runs. (It's a little 2d jump 'n run game with not much in it yet). If you have any idea why, please tell =) Thanks!public class Game extends JApplet ...

UML Modeling for Class calling another class in Class Diagram and Sequence

776 byte By San4Ua at 2007-10-2 23:40:53
In my application, business delegate is calling Session Facade through business interface. Session Facade is implementing business interface which includes my application business processes.In my class diagram, I am showing business delegate, business interface and Session Facade. What kind of ...

Graph patterns

771 byte By cxia at 2007-10-2 23:47:01
Hi all.I wanna generate patterns like below (every column is one pattern). My code missing some of them. Does anyone have a good algorithm to solve this kind of problem? Thanks ...

Lotto counting Numbers& percentage Ideas/ Help

2269 byte By ra2ora at 2007-10-2 23:47:47
Hi guys,Just curious on what ppl thought on methodolgy ...what ppl would suggest could be better.Thanks.Anyway,I've just made a lottery program for fun which randomly 6 non duplicate numbers from a range of 0 - 49.These numbers get saved to a text file. I want to spice it up by it outputting ...

KeyListener, sound problems with game

633 byte By Afsha at 2007-10-2 23:48:35
Hi All!I'm new to gaming.. I've developed a game called Puyo Puyo using Swings. But its got some problems... >> My game plays well for the first time but doesn't restart. >> Im unable to implement keyListeners.. they simply dont work.. >> Can someone tell me how to add ...

Any better algorithms for regular pattern match search?

504 byte By rcd27a at 2007-10-2 23:51:51
Hi, guysCan you tell me what is the best way to do regular expression pattern serach. I am developping a message filter. Given all word patterns(patterns are all single word), I need find if each messages matchs one of the patterns. Once find one pattern match, program will stop the process for ...

diff b/w DTO,BO

60 byte By cvsnta at 2007-10-2 23:53:04
Hi all,Tell me the diff b/w DTO,BOThanx

Please help me to get knowledge about struts tags(html,bean,logic).

978 byte By awm_riaza at 2007-10-2 23:53:19
hai Friends, I know basics of struts. I have done basic examples.I have to know , how to get dynamic values in "view".Instead of writing like this..<html:select property="color1" size="4" ><html:option value="red">red</html:option><html:option ...

Composition problem

1264 byte By amjavadeva at 2007-10-2 23:55:39
I have a class A that uses class B. Class B uses class C. When I am in class A I want to retrieve data from class C. Currently, when I am in class A, I am using a method call on class B to ask class C for the data. The effect is that I am passing the data item from C to B and then from B to A. ...

OO Solution

708 byte By jfreebsda at 2007-10-2 23:56:31
Car > VW > Golf > ....Suppose we got that hierarchy where all cars provide services as startEngine(), stopEngine(), etc. On the other side a VW Golf can be automatic, can be convertible, etc. and should provice services as openRoof in case of convertible or should startEngine different ...

Searching for a certain binary tree from another tree........

1287 byte By since81a at 2007-10-2 23:56:47
I have been struggling for a tree search problem for a good while. Now I decide to ask you experts for a better solution :-).Given a binary tree A. We know that every Node of A has two pointers. Leaves of A can be tested by if(node.right = =node). Namely, The right pointer of every leaf node ...

Is pattern match a good way to solve this problem?

444 byte By since81a at 2007-10-2 23:56:49
I want to get all the numerical constants from a line of java statement. Numerical constants here refer to 1. int 2. float3.doubleFor a example, by running the method on the statement "i = 232; f = 23.123f; c= f2h; int aa_2, b$99 ", we should get 232, 23.123f and f2h but not 2 and 99.How can I ...

AWT, APPLET- DIFFENCE?

171 byte By idomeena at 2007-10-2 23:59:10
My people in the, I really appreciate your contribution to my questions.can someone explain AWT and Applet in details, and their difference?Thank you.

AWT, APPLET- DIFFENCE?

191 byte By idomeena at 2007-10-2 23:59:12
My people in the house, I really appreciate your contributions to my questions.In addition, can someone explain AWT and Applet in details, and their difference?Thank you.

pythagorean triples complex squares

3750 byte By marlin314a at 2007-10-3 0:02:12
While working on a math problem recently that involved Pythagorean Triples I spotted a connection with the complex numbers that I had never noticed previously. It is a trivial observation and I was surprised that in my many years as a mathematician I had never heard anyone mention this little ...

I will teach economics by develping a central bank game

191 byte By omotia at 2007-10-3 0:03:12
hi.I want to make a Central Bank Game.I need a Java programmer.and I want source code andI want the copyrright of the source code.Can anyone help me?

Code optimizing

248 byte By blowa at 2007-10-3 0:04:23
Hi, i have a question:Im going to make a 2DGame, and so i need some layers(player layers, scenario layers,decorative layer etc etc),how can I make this layer?I think i can use transparent JPanel,is true?Or JPanel isn't fast for this?

Draw a circle and move along the screen

824 byte By javid1979a at 2007-10-3 0:07:35
Hi,I am drawing a circle which moves horizontally along the screen. I am trying to move the circle at an angle, say from left top corner to bottom top corner (angle 45 degree)I did something like thisGraphics2D g2d = (Graphics2D) getGraphics();g.translate(centerX, centerY);g.rotate(0.0174532925 ...

Enterprise Application design using java interfaces

809 byte By kollareddya at 2007-10-3 0:09:23
HiAre the following design principles correct in the case of designing enterprise application with java interfaces:1. create interfaces to all the application boundaries and controlls and entities.2. the method parameters must be specific objects instead of interfaces. If so, will this pose a ...

Baccarat Game

56 byte By ox_ten_wingsa at 2007-10-3 0:11:51
Anyone here has script of Baccarat Game in java ?

Javascript news

182 byte By Vidrosa at 2007-10-3 0:13:06
Hi!I'm trying to find a vertical rolling script to put on a website that registered users can be able to add news on it.Do you know if is there any?Thnks

save file in applet game

164 byte By sensasiona at 2007-10-3 0:13:18
Hi i need to read and write in a file to save and load info.In a frame works correctly but in applet mode it doesnt work.What can i do?i have to sing applet?

Exceptions and inheritance

2072 byte By aboaventuraa at 2007-10-3 0:15:49
Hi all,I need some help to solve a design problem ( I suppose !).I磛e created an Interface declaring methods that throws an Exception and created an Adapter implementing my Interface. I thought that when I write a class that extends my Adapter it would force to write the method signature with ...

Dear friends i need your help to do sun certification(SCJP)

355 byte By awm_riaza at 2007-10-3 0:17:51
Hai friends, I am going to do sun certification(SCJP) in this month. But, don't have any sun certification materials.I can't even download files from my company also.so, ifyou have any materials regarding this please send to awm_riaz@yahoo.comIt will be very useful for me.Thanks in ...

Questions on DAO design

652 byte By Klincia at 2007-10-3 0:19:37
This is the first time I used DAO design.I have a machine class and each machine has a few parts.How should I design the DAO? Especially regarding the inner parts.Should I create a DAO for machine and for part and put the PartDAO as an atribute of MachineDAO so that I can populate the ...

Partial differentiation

1640 byte By alta at 2007-10-3 0:20:28
Hi,How do I find the partial derivative of an equation symbolically? How do I make the computer automatically find the derivative of a function without heuristics? The difference quotient can be used to find the derivative, but what about functions such as sin, cos, log, and special ...

Graph rendering algorithms

348 byte By jvaidyana at 2007-10-3 0:20:34
Hi Is there any graph rendering tool that would automatically draw a tree like structure once the vertices are provided. I have a hashtable with states i have generated. so generally i have a state name and a quality and duration value. Is there anyway i can do a tree representation. Please let ...

Network game

768 byte By ractoca at 2007-10-3 0:23:09
Hello all,I'm planning on building a network game for use over the internet. Now I'm working on the network communication but I'm running into difficulties.I need a way so that when player 1 on computer 1 tells the game my character is going to move here, this is send over the internet to ...

Design of accounts

279 byte By r035198xa at 2007-10-3 0:23:47
Anyone know best ideas/sites for the proper modelling of accounts using ejbsI would like to record and query transactions for up to 30 000 clients + 10 000 agentsEach client can have more than one accountAny advice is greatly appreciated

About Designing DAO

113 byte By dave123a at 2007-10-3 0:25:00
will it be better if i use creational pattern (Abstract Factory pattern) to implement DAO?DuffyMo ?

Design / Architecture from Requirements

495 byte By Designa at 2007-10-3 0:25:33
Is there a good article / book with real examples of how to arrive at a system design / architecture from requirements ?Also, is there a defined way to organize the requirements captured so that it would be easy to translate it into design ?We have captured our requirements from a data and ...

can bussiness logics been added to a middleware?

381 byte By Shankars@linuxa at 2007-10-3 0:27:15
Hey,Could any one help me understanding the below query? 1. Heard that Middleware should play a role of get and put or tranforming messages between various applications?2. Bussiness logics can be added to a middleware application? If so, is it not a Architechtural flaw to have a such design?any ...

Visitor Pattern and checked exceptions

573 byte By fedetxfa at 2007-10-3 0:27:22
I have a Visitor interface and I want to have 2 implementations. The only problem is one Visitor does database things so it throws SQLException and the other does IO things so it throws IOException.What are my options when declaring the visitor methods?Declare them to throw ExceptionDeclare ...

collision Detection

2563 byte By chilluma at 2007-10-3 0:29:01
Hi there, first thx in advance for reading.i'm relative new to the whole game programming thing, but i'll just start explaining my problem.I tried to write a waterFlow Simulation, something like this: http://www.kdn.gr.jp/~shii/sand/index.htmlbut i think my concept isn't right, every ...

Quite A Design Problem...!!

720 byte By AshuDaGr8a at 2007-10-3 0:29:04
Dear Forum,I am facing design problem...here it goes...I have a class that contains several method having name pattern like "createXXX()".All of these methods contains similar logic except data.This class is examined bythe another class for the"createXXX" methods for futher processing.Suppose ...

List interface

907 byte By amjavadeva at 2007-10-3 0:30:47
I'm trying to improve the Genericity of my code by setting the return type of methods that return classes that implement the List interface to List. In other words, rather than force the class user to work with, let's say, an ArrayList returned by one of my methods, I'd like the user to be ...

Ridicuouls early optimizations

1155 byte By fedetxfa at 2007-10-3 0:32:34
How many objects in memory are too many so as to justify changing the desing?Some people think thousands is too much and they start implementing logic in stored procedures and using temporary tables to store results so they minimize the amount of objects they keep in memory.I had to rewrite ...

Obect Oriented School Project

190 byte By MaryPa at 2007-10-3 0:32:39
I need to develop the code for a blackjack game.I can't find anywhere examples of this type of code onl GUI.Can someone point me in the right direction?Thank you