Hi,I have a composite in a dialog.I want to resize the dialog and when the dialog is resizing i want to update the composite accordigly.I am using SWT.RESIZE | SWT.MAX for the dialog which is ok.How do I set the resizing of the composite also?To resize the ...
Hello!I would like to have some help please.I have a JFrame with two panels and a menuBar:edgJFramecenterPanelleftPanelupperMenuBari created a class for my glass pane, like this:import java.awt.Color;import java.awt.Graphics;import java.awt.event.MouseEvent;import ...
Hi,I Devloping Rsync algo for java ,it work fine for text document but it fail for .doc file
5955 byte By
Dr_Spuda at 2007-10-3 2:06:01
I'm making a vegas game as my first attempt at game programming in java. I've posted some of the questions that I have come across on other boards but I think that you all would be able to help me a bit more. The problem that I am having is with one of my slot machines. First I need to put ...
Hi everyone,I've made a tank sprite, which is composed of a tank body and a tank turret. The problem I have is in getting the turret to rotate on a fixed point on top of the tank body. At the moment, when the turret rotates, it describes a small circle over the body of the tank instead of ...
671 byte By
onioa at 2007-10-3 2:06:36
I need an algorithm that will simulate a processor executing instructions.Each instruction is divided into 5 execution parts or stages (IF, ID, EX, MEM, WB)Each of these parts or stages should be executed for each clock cycle.And for each clock cycle, a new instruction (with the same 5 stages) ...
I have been trying to refactor some code so I could extend certain featureswithout having to modify my existing code.I used to have some code like this:public class Dog extends Animal {}public class Cat extends Animal {}public class MyParser() { public void parse() {...MyBuilder builder = new ...
Hi all,I am currently working on designing a SOA based distributed J2EE application where high performance is the main criteria(data retrival must be very fast). The database and application servers can be many in number and in different geographical locations.I would like to know the various ...
I've been looking designs to access persistence services with hibernate.Some elegant solution is to create concrete classes ( DAOs ) that implements some DBPersistenceService for example and interact with those DAOs using DTOs or not ( depends ).My design is not like that, otherwise the query ...
1030 byte By
Saisha at 2007-10-3 2:14:27
All,We recently discovered that there are a mish-mosh of solutions in our code to address polling. Basically, when a truly latent request is issued, we would prefer callback. However, not all third-party vendors support (or, more importantly, guarantee) callback. In these situations, we resort ...
792 byte By
dimitria at 2007-10-3 2:16:53
Hi,I need some help writing a class implementing operations on arbitrarydimension array, and be able to apply operation like block extraction,vector or matrix product , filter (product for a matrix of smallerdimension, kind of mask)for arbitrary dimension i mean a class wich at run time can be ...
Hi there,I am developing a Web application based on a JSP+persistency MVC framework. In a number of classes, I have to be able to instanciate a "model" object (OO mapping from an RDBMS table) whose type depends on the value of a String variable. Currently, this is done this way: ...
I have a simple Struts application that has the following layers:Action -> SessionFacade -> BO -> DAOSessionFacade, BO, and DAO all have a interfaces for each object in that layer and a factory to abstract the creation between the layers. While the implementations for this simple app ...
i want to write a program that will decrypt ciphertext given in hexadecimal ASCII-based. How do I start
451 byte By
bozia at 2007-10-3 2:21:43
Hi,I have a simple application that takes in a subject and sends an email with that subject. The problem is that I need the subject to be in Korean, so what happens is: 林咯矾盒膊 is entered but the email is received with 주여러분께 in the subject line instead. I have ...
928 byte By
av86a at 2007-10-3 2:21:46
hi i have a problem in which i have to match an array of strings with a given text(which might be very large). i have used both knuth morris pratt and boyor moore algorithm and am happy with the outcome.but before checking the string i am supposed to do some preprocessing likeif i am given 2 ...
166 byte By
blowa at 2007-10-3 2:22:29
Hi all, its possible sound a file whit differente intensity for channel left and right?I need this to know where a player fire in a 2D game.Thank
I'm doing an application that requires displaying images in the background (each one is displayed for 15 second).The problem I'm facing is that when switching from one image to another, it must have the dissolve transition effect (dissolve the current image and in the same time display the ...
652 byte By
javaksa at 2007-10-3 2:32:10
So I just started learning JSP/Servlets a couple days ago and have made some great progress. As I try to do things correct the first time I wanted to run my thoughts here and see if they are correct or completely off the mark...I want to use MVC type architecture, I do not have an application ...
252 byte By
mk47a at 2007-10-3 2:34:02
Hi I know this must a simple thing to do in Java but I can't seem to find it. I need to convert UTC time in millisec into GMT regular time. i.e.1155000000000 should be converted to Tue Aug 8 01:20:00:000 GMT 2006Thnx
533 byte By
decodaa at 2007-10-3 2:36:31
hii wanted to ask which is faster to read data fromif i wanted to save a strings in the form of"12334 3334 12345"12334 3334 12345"12334 3334 12345""and then to be read by java application which will parser itand place the values to an (int size=12334, int pos_x=3334, int pos_y12345)will an xml ...
68 byte By
Battasa at 2007-10-3 2:36:38
hi, plz can anyone tell me how can i make rss code using java
I am making a program that loads an image and saves a version that only uses the colors in a pallet. What is the best algorithm to use to match the pixels to the nearest color in the pallet?
i'm still new in learning Java..by using JCreator LE, i've try to make a simple task..can anybody help me by giving any idea similar to my task attach below?import java.awt.event.*;import java.awt.*;class Aplikasi {public static void main(String[] args) {ApplicationFrame tingkap;Bekas ...
466 byte By
blowa at 2007-10-3 2:39:31
Hi all, i have to make an animation, for my game.I have an array of image,and i set the frame that have to draw in gameLoop, so if i press "D" my boy run right and the frame count was incremented.The problem is the animation is too slow becouse the time of gameLoop is 30msec and the animation ...
I have a math/algorithmic challenge.I have a simulation where I have a number of point objects grouped on the surface of a sphere. Now I have a number of these spheres programmticaly determined and each with a different number of points that comprise each sphere.What I wish to do is count the ...
345 byte By
blowa at 2007-10-3 2:46:40
Hi all, i have to write a game like worms, but not turned based.My problem is load maps. A map is a big gif or png image (4000x3000) pixel and when i try to load it i have a out of memory error...What can i do?The maps have to move very smooty and fast so i cant load image form file in ...
Hi,I am using the DAO pattern in the data tier of an app. I am writing.The DAO Im using to represent customers is CustomerDAO.The trouble is, I have quite a few operations in the CustomerDAO and the class is getting too large to manage. ie. findCustomer, updateCustomer, insertCustomer etc. ...
I have a controller class that listens to button presses from my button panel, and it also listens to mouse actions from another drawing panel.When I press a button, it indicates some kind of drawing is going to happen in the drawing area. Only one action could be "active" at the same time. (To ...
Hi im hosting on my website on an apache server , the applets load fine on my computer , but not on my brothers or anybody else i think.They say like applet loading failed, also applet notinited , ive checked and hes got the right JREs and plugins.All the other functions work eg music and ...
HiI have been studying a piece of code somebody else wrote. I am wondering if this is the Factory Method design pattern that this represents. I am new to patterns and I would be very thankful for any suggestions. public class Creator {public Person create(String gender) {if ...
233 byte By
javaksa at 2007-10-3 2:53:53
So do you put your Servlets and JavaBeans in the same package or do you always keep them seperate? And in your names do you put in the word servlet/bean to further help identify the object? (ie controllerServlet, customerBean)
Hi..I have to do some research about database searching algorithms.Would someone here help me and give a list of that algorithms and which one is the best.What is the name of this algorithms which when u type in a key such "a" then it display a list of information that started with ...
206 byte By
sri1025a at 2007-10-3 2:55:27
Some programmers don't use the default access modifier (package level). Is there a specific reason? If so, what is it? Or is it a good to use default access modifier?Thank you,Srikanth
726 byte By
Darulla at 2007-10-3 2:57:43
Hi. I am having some problems when I抦 trying to sort a list of Timestamps and integers.. the thing is that i have a list of Objects(Tasks) containing Timestamps(StartTime and EndTime) and an integer, Priority (0 or 1), the different Tasks are to be sorted after StartTime, EndTime and priority, ...
324 byte By
remonvva at 2007-10-3 2:58:21
Hey guys,For those interested, i made a GBA emulator in pure Java 4 years ago and recently found the source. I figured maybe some people would be interested in that so i opened up the source, have a look here ...
Hi there, this is a long blah - hope it makes some sort of sense! :-)I have some data (lines of text) that represent keyboard and mouse commands among other things - each file might have say 500-2000 rows in it. It is possible to represent the data at the raw level (i.e. press mouse, release ...
Hey I'm trying to write a importer for the PLY filke format. That file format starts of with a header in ascii and then continues with either the data in ascii or in binary. When the data is in ascii I have no problem reading the file but when the data is in binary I'm noth quite sure how I ...
126 byte By
aimsa at 2007-10-3 3:00:53
Hi,Can any one please to inform that what are the design patterns applied in HibernateRegardsThiru
How can i implement this? or perhaps it is correct.My case is the following one:-I磛e got an object called "series" that represents a sequence of objects. For instance: BrushYellowSerie(set of yllow brushes), BrushRedSerie. - I磛e got an object called "reports" that represents reports about the ...
2212 byte By
blowa at 2007-10-3 3:02:19
Hi, i have a shooter game where a gun can shoot a bullet.This bullet run fast so i move it whit X+=dx (dx is distance in pixel)When the bullet run too fast i ahve a bad effect, ot smootly.How i can resolve?Now my code is frame based i think, i use this:delay =30;Timer timer=new Timer(delay, new ...
Hi..All,I am trying to understand Hibernate & how it plays a role in the J2EE architecture.Earlier we had developed a J2EE application which the following architecture in place :MVC- > EJB -> DAO-> DBWhat I heard from my colleagues (who are also trying to learn hibernate) is that ...
Hi, I have some random questions/confirming suspicions about MVC and Services-layer.To give little context for my questions; I'm creating a Swing desktop app. and I have DAO/Service/Domain layers (first time I'm using these layers). My application consists of a single JFrame, menubar, 3+ ...
Hi experts,Please execuse me,if i have placed this in wrong category!I have devepoed a game and it is working fine.my doubt is how can i make it as a website;Basically ,i want to know how to publish our projects in a website for the cost of freeReply me ...
I know its possible to create a path finding algorithm based on an image... That is, if the color map is blue then there is water, if it is brown then there is land. So detection of land and water is not the problem.What I want to know is, is there an easy way to set up a path finder aside ...
Hi. I have to complete my project. The work is to create drawing tools graphical editor. I'm new to java and I have some problems with this job, so I'm looking for help where it is possible...I created basic shape and fiiled shape.the problem is i dont know how to edit all these shape such as ...
1091 byte By
mlopresa at 2007-10-3 3:08:38
Im working on a 2d rpg game that follows the basic game loop idea below:void gameLoop(){while(player.alive()){ updateWorld() paintWorld()sleep(30);}}So anyway, my question is this, what is the best way for implementing short animation. Basically when the player attacks another entity or ...
I have a string retrieved from a database such as[[TO_CHAR(MIN(WEEK),'DD-MON-YYYY')], [30-OCT-2005]]For some reason it prepends my sql query to the string so I'm using a StringTokenizer to remove all the useless stuff and retrieve the dateSo far I have:private void formatDate(String ...
Where is a good place to go to solicit for people to help with a small free game project? I want to do a simple game and im mostly wondering howto meet amateur gamers that do artwork for games? I know about Sourceforge but since there are 100s (or 1000s?)of projects (not always gaming) it seems ...
1306 byte By
abhi73a at 2007-10-3 3:13:27
Hi, In an application I am working on the domain/business layer has lots of domain objects. many of these domin objects aggregate to form other domain objects. Also in the application we have a class "User" that has the user information and privileges of the logged in "User." When updates to ...