958 byte By
tauma at 2007-10-3 3:20:58
Hi all,I use Hibernate for a short period of time and now I'm facing a complex problem . I try figure it out what is the best practice for the following scenario:I have the following classes: Department, Team, Position, all of them inherited from a Entity class even there is almost no ...
Hi everyone,I'm currently building a 3d modelling tool using Java3D and was hoping to get some feedback from end-users.Feel free to check out some screenshots on my site, there's a free demo for version v2.5 and version v2.4 is free to download at
778 byte By
sri1025a at 2007-10-3 3:21:40
Hi,I am accepting an argument from a method and I want to enforce the user to send only a particular list of arguments (say: "Dog", "Cat", "Monkey"). So, I have created an interface and stored these values as constants.Ideally the user of this method will call this method ...
408 byte By
blowa at 2007-10-3 3:26:34
Hi all, is possible read an image for make a tile map based in it, but whitout save the image into a bufferedImage?My problem is that this image is very large, so if i save its it take a very big portion of my ram...I know that i can save it and after i can flush data...but if there is any way ...
584 byte By
shripada at 2007-10-3 3:30:55
Hi friendsI am developing a UML modeling and code generation tool for J2ee web applications.Please please please share any information regarding this topic that you have.This information may include free books, free links, any other documentation, any other sample source code,any suggessions ...
573 byte By
xfana at 2007-10-3 3:32:18
Hello,since 1 month i work on a server, which check all 5 seconds for change on some sensors. the server could register multiple modules (in form of objects) for multiple sensors, so if one state of a sensor change, the registered's moduls for this specific sensor will be invoke and compute ...
440 byte By
sri1025a at 2007-10-3 3:33:46
I have a method which can potentially throw 5 types of exceptions. But is it good to throw them as 5 types or is it better to reduce it to 2 or 3 at the max?Cause I don't know whether an API user will like to have 5 catch blocks. Ofcourse, they always have the choice of doing a catch all ...
247 byte By
rexlanda at 2007-10-3 3:35:49
Can anybody help me with an algorithm to detect cycles within a graph? or at least give me some direction on how to write a program to find all cycles in a graph. I have been stuggling to find something in vain. Thanks,Rexland
73 byte By
MickeyBa at 2007-10-3 3:37:40
I may have missed it, but anyone heard when they might be back up?
2532 byte By
abhi73a at 2007-10-3 3:44:42
Hi, We use ContextObjects in our application as described in the book "Core j2ee patterns". We use the Request Context Map strategy. The RequestContext has validation support. We have implemented it by having an AbstractContextObject that has a Map. HttpContextObject, XmlContextObject, ...
189 byte By
blowa at 2007-10-3 3:46:41
Hi, in my arcade game when it start i have 200 fps, but after a time my fps decrease at 40-50 fps, Which can be the causes?JVM memory usage?My accelerated image become unaccelerated?
Hi all,A small part of my long-lived application loads a bunch of data into a business object from a database. The data is placed in the source database by a different application - we'll ignore that for now.When I wrote this business object I was unaware of DAOs and dependency injection and a ...
Hello all u creative ppl out there! Am makin this game n i ve come across a few probs. Am a rookie in this field....well the game is simple n has to do with a free falling ball. u see the ball dynamics is similar to a free falling body.....in the program i have written.....the ball falls under ...
2780 byte By
nbloma at 2007-10-3 3:54:37
Hello All,I am sure something like this has been posted before, but I could not find it via search.I am wondering how I can go about plotting nodes or objects on an ellipse. I have code for a circle. The circle algorithm takes into account the number of nodes in the list and calculates the ...
Anyone read OpenGL Distilled? Would it be helpful to a beginner in OpenGL that wanted to use Java?Thanks,Tim
Hi FriendsI am having one doubtWhen we carete a Value objet then we provide a deafault constructor.Also we use to serilize it.What is the use of deafult construtor even if we are not intilizing any parameters..
Hello everyone,I am trying to architect part of an application that accepts a user's choice from a drop-down menu and creates an object based on that choice. I decided that the best way to do this was to represent each object with an enum that could be used to populate the drop-down list on a ...
699 byte By
sim085a at 2007-10-3 4:02:01
Hello,I am sorry if this question has been asked more then once. I have just read a book explaining on how to develop a web application using light weight frameworks.In this book I was introduced to Facade Objects and Service Objects. Before I used to have only service objects (which managed ...
26 byte By
ramjia at 2007-10-3 4:02:17
Why we use toArray.
Hello All ..I want to make a mini Matlab for mobile phones .. or you could name it a smart calculator .. The base of such a project is the String command parsing ..Assume the user is allowed to type:x = 5By text tokenizing by "=" .. I can get the variable name and value ..if the variable name ...
126 byte By
javvvaa at 2007-10-3 4:05:45
Hi, can anyone recommend simple function or algorithm to reduce datasets with N>3 number of dimensions to 3? Thanks.
906 byte By
cloraca at 2007-10-3 4:09:38
Hi,I've read lots of examples and it seems to me that, in reality, these are bidirectional associations:Employee and Department (given an employee, you can find out what department(s) s/he belongs to; given a department, you can find out which employees are in it)Parent and Child (given a ...
I want to create object for class name.I am geting the Class Name at run time from xml file. That name will stroe in one string varible.I want to create object for that name. how its posible.
can any bdy plz tell me what is the use of marker interface ?
Hello!I'm interested in the smart reference proxy pattern but I only found some short descriptions of it on the Internet. What I need is some kind of example code.Can somebody provide me with an appropriate link or does somebody have experiences implementing this pattern?Thanks in ...
Hi All,Folowing are my requirements 1. Generate 16 Digits long Randomize Numeric Passwords,Please not that, I need to generate password in bulk i.e. Generate 1000 to 10000 pasword in single trigger2. Store All Generated Password in DatabaseMy Problem:1. First of All How to Generate Random ...
Hi, i have a problem. in my design, clients are observers for API changes. We made facade class as Observable. but i think its not appropriate design because i have to add some bussiness logics(related to notify observers) in Facade. what should i do?!
601 byte By
asklxfa at 2007-10-3 4:18:18
hi, i have a problem of how to find out similar products in a web store.There is 3 tables in database: Product, Property and Product_Property for many-on-many relationship, each product can have one or more properties. for example:Product A has: p1, p2, p5, p6, p9B has: p2, p5, p6, p7, p9, p10C ...
Hi allRight up front, Im very green with design patterns. That said :)I think I have a good grasp of the observer pattern. I wanted some quick thoughts on other design (or anti) patterns that you may also use with observer to avoid specific side effects, implement a M:M rel with ...
Hi Gurus I am having Five column in my table. I am fetchinh all the data in An arrayList. For Displaying Purpose I am using The code Below is for Displaying it on the jsp. I want to Use Iterator or some Other Pttern which will Bee suitable for It. Plz Bless with your Suggestionfor(int ...
8943 byte By
sri1025a at 2007-10-3 4:26:04
I have a properties file and I have a few sections like this:section1=truesection1.name1=value1section1.name2=value2section2=truesection2.name1=value1section2.name2=value2section3=falseWe wanted to create a Java object representing this properties file by composing the java.util.Properties.But ...
115 byte By
jaya_ra at 2007-10-3 4:28:09
I need to do a project for time table generation. I need the algorithm for doing the same. Kindly send it...
I'm trying to develop a simple Kakuro game and I'm having a hard time trying to come up with the algorithm. Does anybody have some good input on the algorithm and more importantly, the recommended data structure?
Hi thereI'm using WebWork with Spring and Hibernate . IDE netbeans.My Hibernate properties are in the applicationContext.xml that is placed just under the WEB-INF.When I try to call the: new ClassPathXmlApplicationContext("applicationContext.xml");or new ...
I have a following problem:I receive M N-array of integers. Then for each array, I'll read the entire array element by element. For each element's value, an appropriate function will be called. More detail:n1 -> call function f1();n2 -> call function f2();.....nN -> call function ...
Hi In my application I need to dynamically create objects of types specified by string which is passed as parameter. I am able to do this if the class is inside the same jar. But I need to load the class from any jar name specified. How do i go about doing this? Is there a way to dynamically ...
I'm having difficulty organizing my MVC models and basically controlling the whole application in general. My application works, but all the controlling logic is being dumped into the main class (Main.java). Here's a simple example of the problem I'm having:Objectives1) Display a list of ...
Hi,ArrayList arrL = new ArrayList(); ArrayList tmpArrL = new ArrayList();for (int i = 0; i < size; i++) {Character ch = new Character(text.charAt(i));arrL.add(ch);}tmpArrL = arrL;;; String newText = "";for (int i = 0; i < arrL.size(); i++) {newText += tmpArrL.get(i); }return newText;In ...
i have a question i have this program in java that translates one language to another now i want to be able to add another translator later if i required at runtime without recompiling the whole thing.that is i should have the provision of adding new translators feature which i dont know now ...
hi guysi have got a question to ask about the delegate pattern. usually, we use it to decouple between presentation client and businessservice tiers. for instance, the service tier has an session ejb, and delegate wrapps the ejb. and the web client calls delegate to access service. is the ...
Regarding flat files txt Vs xml filesHello all,In our projects we are extracting SMS messages and based on the MISDN (Telephone number) of each SMS we are fetching the correspondingaccount information (server name and password) from the database through (connecting through) webservice.This ...
2686 byte By
pp8080a at 2007-10-3 4:46:20
Consider the following case:Dependency injection pattern:public interface A{void foo(String para1, String para2, String para3, String para4, String para5 );}public class B implements A {void foo(String para1, String para2, String para3, String para4, String para5 ){ ...}}now i have to write a ...
Hi thereI just wanted to know if my simple Dao Spring Hibernate implementation is good. Hope you can give me your opinions.public class BaseDao extends HibernateDaoSupport{public BaseDao() {}protected void saveOrUpdate(Object obj){getHibernateTemplate().saveOrUpdate(obj);}protected void ...
531 byte By
Mitch_Ja at 2007-10-3 4:56:28
Hi,I have a DataModel which holds quite a few fields - about 30. I want to implement this model such that each field also has a notion of being enabled or disabled. By default, i want all fields to be enabled. Then there's the tricky part - setting a field's value may enable or disable other ...
315 byte By
Omkarama at 2007-10-3 4:56:39
Hi, I want all the Java Patterns at one place; not the J2EE patterns. Eric Gamma book provides examples in C++.It's unfortunate that I can't find Java Patterns at java.sun.com.I am looking at javacamp.org.Can somebody suggest a good web site with all Java patterns in ...
Hi I need to write a program in java that lists the latest last modified time among the files in folders and its subfolder and also gets the size of the folder. In my case, average folder size is 9 GB. Could you please suggest any algorithm to achieve this? I tried to implement it by gathering ...
551 byte By
patucosa at 2007-10-3 4:58:54
Hi everyone in the forum,first of all i am not sure if this question should be here, but i did not found any other forum, so apolodize if it should not be here.So the problem i have is that i am working with float and i am displaying them in several textfields converting them into Strings. The ...
286 byte By
rkippena at 2007-10-3 5:05:43
How to compute weights such that:SIGMA [(xi)^2 * (wi)^2]is minimized with the constraintSIGMA[(wi)] = 1I have values for all xi, and need to compute weights wi. Or suggestions for matheticmal packages that can solve this type of problem.Thanks.
Hi,I am Indie Game Developer and have just developed my first game. It is in Java and is a client - server based game.I need to buy a good but affordable Java Web Hosting Plan but I could not find much to my liking. I don't need too much space (like 5GB), a couple of hundred MB's would be ...
280 byte By
ttgaa at 2007-10-3 5:11:41
hi friends my name is Naveen. i am working on final year project of time table generator and i need a help. i want a coding of time table generator in java language so pls if any one have coding in java of time table pls kindly give me on my email id sa.silicon@yahoo.co.in