Dialog resize in SWT

1333 byte By Sarayu_Geethajalia at 2007-10-3 1:59:38
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 ...

Glass Pane on only one section of my frame

2834 byte By new_at_thisa at 2007-10-3 2:01:58
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 ...

Rsync

106 byte By Jignesh_Togadiyaa at 2007-10-3 2:02:04
Hi,I Devloping Rsync algo for java ,it work fine for text document but it fail for .doc file

slot game

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 ...

Rotate Image Around A Fixed Point

1224 byte By hasman001a at 2007-10-3 2:06:21
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 ...

Pipeline algorithm Problem (Threads?)

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) ...

Trying to move away from many if-else statements

4091 byte By SmellyCata at 2007-10-3 2:07:25
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 ...

designing high performance j2ee distributed application

716 byte By kollareddya at 2007-10-3 2:09:48
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 ...

Weird situation that does not allow to implement DAO

1035 byte By jfreebsda at 2007-10-3 2:12:57
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 ...

Java EE Compatible Polling Solution?

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 ...

arbitrary dimension array for math

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 ...

Instanciate an object depending on a variable value

1533 byte By Elessaera at 2007-10-3 2:18:39
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: ...

When to determine if you have too many layers or too much abstraction

1110 byte By jaybyteza at 2007-10-3 2:18:48
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 ...

decryption

110 byte By mikirulea at 2007-10-3 2:19:15
i want to write a program that will decrypt ciphertext given in hexadecimal ASCII-based. How do I start

HEX (UNICODE) to ANSII

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 ...

preprocessing for string matching algorithm

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 ...

java sound in stereo

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

Dissolve image transition effect

453 byte By haitrieu.phunga at 2007-10-3 2:27:21
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 ...

MVC without EJB

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 ...

Java Time conversion

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

xml,dataBase or txt file is faster?

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 ...

Rss

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

finding closest image colors

197 byte By @@aa@@--@-@aa@@a at 2007-10-3 2:38:28
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?

any idea similar to this view?

1223 byte By sakurabiru_86a at 2007-10-3 2:39:21
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 ...

frames animation

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 ...

Complex Counting

1366 byte By disruptivea at 2007-10-3 2:40:01
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 ...

load big big image...

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 ...

DAO Class size

519 byte By adamreida at 2007-10-3 2:47:14
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. ...

Implement command pattern in any way or anything similar or anything at all

991 byte By sandsatera at 2007-10-3 2:48:35
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 ...

Can only see my java applets on my website on my own pc not my brothers

1179 byte By Thornbladea at 2007-10-3 2:52:01
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 ...

name of the design pattern

1022 byte By ilango171a at 2007-10-3 2:52:25
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 ...

where do you put your Servlets / JavaBeans?

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)

Database Searching Algorithms

315 byte By Kuntilanaka at 2007-10-3 2:53:55
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 ...

Usage of default access modifier

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

Problems with sorting of Timestamps and integers

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, ...

GameBoy Advance Emulator

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 ...

MVC questoin

2629 byte By TimRyanNZa at 2007-10-3 2:59:40
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 ...

Reading a fle format thats part ascii and part binary

1542 byte By Discordiaa at 2007-10-3 3:00:37
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 ...

Hibernate-Pattern

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

Correct patterns. Factories

1627 byte By usuario123a at 2007-10-3 3:01:12
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 ...

bad effect when draw object moving fast

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 ...

Hibernate in place of EJBs

485 byte By pmohanana at 2007-10-3 3:04:04
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 ...

Some Architectural/MVC Questions

4901 byte By finalfrontiera at 2007-10-3 3:04:09
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+ ...

how to make a website

329 byte By me_srinivasa at 2007-10-3 3:04:37
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 ...

Path finding based on an image

427 byte By qmanqmana at 2007-10-3 3:07:55
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 ...

Problem in editing drawn shape...

714 byte By cattie79a at 2007-10-3 3:08:24
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 ...

Creating short animations?

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 ...

Formatting string using StringTokenizer

1263 byte By Dhaval-Shaha at 2007-10-3 3:10:41
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 to find People to Join Game Project?

518 byte By TuringPesta at 2007-10-3 3:12:37
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 ...

Design Objects with some common attribute/behavior. Is inheritance correct?

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 ...