Im just getting started on using JOGL and im really excited.Out of pure academic curiousity, how much of a speed increasedo you get working with JOGL over pure java software rendering? Ive always just written my own 3d libraries in java for simple wireframeand polygonal (w/ no shading) graphics ...
Hi All,I have the following scenario and wondering if Command design pattern would be a solution and looking for your valuable advice.The application I am working on is a three tier application with front end Swing, middile tier application server and back end RDBMS.As the user makes changes in ...
1282 byte By
Serfioa at 2007-11-26 12:54:24
Hi,I have made a little game which use "Active rendering".I have a JFrame with a JMenuBar Inside the JFrame I have myJPanel (getContentPane().add(myJPanel, BorderLayout.CENTER); ) which contains the running cicle below:while(running) {gameUpdate();gameRender();paintScreen();afterTime = ...
214 byte By
ashexa at 2007-11-26 13:01:59
Hi guys,I want to start learn j2ee design pattern , i browsed net but not got any significant point from where i can start. could anybody suggest me from where should i start .Thanks in advance
1332 byte By
jfreebsda at 2007-11-26 13:04:05
A singleton facade is built. Its init() method loads several "tree model configs", each of them referenced by a name.This singleton creates a Project instance for a given "tree model config" calling the facade method -> createProject(String pjrName, String modelConfigName)When the Project is ...
Hi. I am currently writing a smallish java game - a kind of populous clone - where an isometric world will be populated with various entities moving around independantly.In order to do this I have a main class which uses an array of a class 'Entity' which is around 4-500 in size. I also hold ...
Hi,Availability to check whether the Tomcat server is up and running all the time. Please let me know how to know the server availability: listening to Tomcat server port periodically (configured in crontab) and send out notification when there is no response on the ...
Hi there,Im a fairly new programmer, literally picked up Java 12weeks ago on my course, and now Ive been told to make a game resembling pacman- where the character eats the enemies. The game basically involves a pacman-like character (a filled arc) and puts him in a space invaders like ...
Hello All,I have a question as to the best design for some DAO objects that I need to decouple and I'm not sure the best way to do this. The problem is the objects are very tightly coupled together throughout the code and jsp's and I need to separate them out for easier maintenance.The data ...
Haj can you tell me haw i can make executable ane code with one icone in my desctop. I have coded one game in Jbuilder
I have a situation where several classes are of the same "type", but they each have different behavior. They don't really share enough of the same functionality to have a heirarchy, but I would like to be able to treat them as the same type as they will be stored together. Here's an analogy, ...
2633 byte By
a3cchana at 2007-11-26 13:17:00
Hallo pattern-lovers,I have troubles finding design pattern that covers relation between Televion and Doodle in following example. Example:Purpose: Offer only read only methods of given object.// Commonality between Doodle and Television// Not neccessary for example, but good practice ...
I need a 3D SDK with audio support. Obviosly it would be Java3D. But i've heard it uses much memory, and it's complicated.What do you think about j Monkey Engine ?Or is Java3D the right choice for game programming ?
835 byte By
AzWa at 2007-11-26 13:19:31
Hey, Ive not been programming long but Ive been given the task of creating a game, which I have done, but now I want to extend it further.I have situations in the game where you can win and lose, and currently ive just got the game resetting itself when it happens (ie, if you lose the game, the ...
Hi,I'm creating a web application and in one of my classes I have the following global variable defined:private static final SecureRandom generator = new SecureRandom();In one of public methods, I then call:int index = generator.nextInt(possibleRandomLength);I therefore need to make sure that ...
I am searching some lab practice question like matrix multiplication, generating number series, printing pyramid formats etc.So, please let me know where to find it?
4913 byte By
jmascisa at 2007-11-26 13:22:09
Hey guys I'm pretty new to java. I need to make a game based on a grid 12 x 12. Uncovering a tile on the grid will either reveal a piece of treasure or nothing. Each piece of treasure is worth a certain amount of points and can take up several spaces on the grid.Now like I said I'm not that ...
Hi.I have this problem:I'm doing a program that has a map and two points. the map has wall that are not valid positions.I have used a A* algorithm to calculate the shortest path and is working fine.now i'm implementing a genetic algorithm to solve the problem but i'm not having sucess.My ...
Im fairly new to programming and am experimenting with a JOptionPane in my game, and Im trying to work how to have spacing between the text, so I could theoretically have the games introduction in the message window- such as;message part1message part2the current code im using ...
Hi there,Im implementing my game an assignment and Ive come across a problem that I cant seem to solve. Ive created an option pane that, in a win or lose situation, allows the user to restart or quit the game- the restarting is simple enough in that if the value of the option pane = 0 then it ...
16970 byte By
gewittera at 2007-11-26 13:26:53
Hello everyone,Implementing an autofill feature for JTextField raised several design issues, and I would like some help.First, source code, demo and a diagram can be found on my JRoller entry: http://www.jroller.com/page/handcream?entry=refactoring_challenge_autocomplete_jtextfieldMost ...
HiI want to develop a Java program to solve Sudoku puzzlesMy program must be able to:昍ead in a puzzle (from the predefined file format ?see below)旸isplay the unsolved puzzle昐olve the puzzle旸isplay the solved puzzleFile FormatThe file consists of a number of integers.The first integer signifies ...
129 byte By
A-B-Ca at 2007-11-26 13:29:33
Hello ,i would like to ask all of you if any one have a java calculator project ..simple one .please can you help me .thx.
3606 byte By
vj_makera at 2007-11-26 13:40:21
I have a situation where first we are fecthing some ids(list of say version ids using hibernate form database) then keeping those list of data in a Pager Object(Paging mechanism displays 100 rows per page out of complete sa 100 or so.)This pager class does two things one takes whole list of ids ...
537 byte By
sk9a at 2007-11-26 13:47:11
Hi,Does anyone know how the DAO pattern looks like when it is used for a data warehouse rather than a normal transactional database?Normally we have something like CustomerDAO or ProductDAO in the DAO pattern, but for data warehouse applications, JOINs are used and multiple tables are queried, ...
I currently have a client server application but looking to optimize the framework. I came across an article online that talks about a architecture that I am interested in but the code listed is lacking. Does anybody have any examples of this channel/device ...
1011 byte By
Beholdera at 2007-11-26 13:49:45
I`ve managed to open a JFrame in fullscreen mode but I have problems with centering buttons. I want to have a menu that consists of a number of buttons and I want them to be centered (both vertically and horizontally). I have the buttons in a JPanel but how can I center it now?EDIT: public ...
Hi,Java Web based application(struts) is deployed to Tomcat and I need to find the memory usage / disk usage of this application.Please let me know how to find the memory usage for a web based application.Thanks,Sarayu.Message was edited by: ...
Now Im not sure If I am in the Right place for this question, So if Im not can someone please reply anyways....Ok here is my problem, I have A remote Keylogger and when I fill in the emails and such to which the info is sent to, There is A Test Button to test the email...So then I get a Error ...
Hi everyone,I am trying to write a generic version of array list. I hava a method called 'removeElement()' which returns the element removed from the array list. I got the code right, but the compiler is showing me an error message: "This method must return a result of type E".public E ...
4508 byte By
dufera at 2007-11-26 13:54:15
Hi experts,I've this code and the following is the output:class Combinations implements Enumeration {private int lo, hi, n;private int[] c= null;private int[] init() {c= new int[n];for (int i= 0, j= lo; i < n; c[i++]= j++);return c;}private int findPivot() {if (c == null) return 0;for (int ...
1407 byte By
jmw71a at 2007-11-26 13:55:36
HiI have 2 classes, Order and OrderItem. An Order can have one or more OrderItems.Further i have written two DAO's for the mentioned entites, OrderDAO and OrderItemDAO.For several reasons i want to lazy initialize the relationship:public class Order { /*** Getter for the OneToMany-relation to ...
Hi there,Ive completed my pacman/space invaders hybrid game- which has a main game and two playable videos. Its all fine, but when I go to run it it says;Exception in thread "Image Fetcher 1" java.lang.OutOfMemoryError: Java heap spaceException in thread "Image Fetcher 2" ...
1329 byte By
pooh145a at 2007-11-26 13:57:55
Please Help,I am new to JOGL VBOs and am having some difficulty coloring shared vertices - I really need to color by polygon face. For example I have a file of triangles that are connected and as such will have some shared vertices. Example file:TRIANGLES:Tri1 vert1 vert2 vert3 color_redTri2 ...
467 byte By
minkeya at 2007-11-26 13:58:55
Hi All,I am new to patterns and have started understanding them using the Head First Series.I would like to know what all design patterns are there in JDBC?Can i say that JDBC uses a Facade design patterns as it hides the database specific details and provides us a interface which helps us to ...
Hi AllIs anyone has a knowledge of how we can configure self registration for our own access manager ? Can anyone fall some light on self registration topic to implement it as i am new to this fieldThanks in advance Madhvi
8245 byte By
Japhetha at 2007-11-26 14:08:12
I made a fullscreen game and I'm trying to get it to respond to the mouse or keyboard input. The problem is it only responds a few second after I press the button. Does anyone know how I could speed up the response? All my code is posted below.EDIT: I did some experimenting and it looks like ...
357 byte By
texasa at 2007-11-26 14:14:18
Hi all,In my project I am using Struts Framework, Business Objects, Transfer object, DAO design pattern, View Helpers etc.I want to understand the relationship between these classesForm-Action-Service-BusinessObject-TransferObject-ViewHelper-DAOCan anybody explain me the relationship between ...
Hello,I'm trying to do some radix conversions on 128-bit numbers using BigInteger. I'm getting some wierd results, so I'm wondering if this is a bug in the JDK, or if I've made a mistake with my math (I'm on JDK 1.5.0_10-b03).Here's what I'm doing (in English). Code follows below, ...
THIS IS NOT A QUESTION!!!!I'd simply like to share my work.I've made a delightful little method that calculates arbitrary math expressions (apparently there is already such a class) BUT WHO CARES?!@#!This is a fun algorithm, input string, output number, it would be useful for making your own ...
1749 byte By
mhhdudua at 2007-11-26 14:17:05
I want to use 2+ DAOs in a transaction. I don't have a transaction manager, so I would like to only use one connection object to execute the transaction. How do I pass the connection object? Where do I create the connection? Where is the transaction started/ended?Solution 1:Use a business ...
hey,i have a list of lines each of which have a to and from 2d point.The list is just a soup of lines and arent in any particular order.Also some lines in the polygon may be clockwise and some may be anti-clockwise.When put together they form one large polygon which encompasses several other ...
Hi,I want to know exactly what certain actions do in order to emulate some of it programmatically while testing.Specifically, I want to know what happens when I push a swing button, type characters etc. without guessing and println-*** inside overrides.Is there a way to tell the program to ...
Hi,i'm developing a web-application based on struts and hibernate.I'm looking for patterns, best-practice, framworks or examples how to save, or more important, how to organize images or media-files uploaded by users in general. How to solve the mismatch between hibernate-pojos and the images ...
I made a game in Java using NetBeans 5.0. It works fine on my computer, and a few other people's, but I recently found out from a Linux user that it has two problems on that OS:The file extension capitalization, which doesn't normally matter, was causing it not to find certain files (using ...
HelloI think this is the right place for this...anyway, so being a new hire I'm trying to get the new operation onto the unit testing bandwagon. I've met with success from management, which is good, but the project is built in such a way that makes unit testing extremely difficult.There are 2 ...
Hi all,I have an EJB which connects to an external system (written in Perl) using plain HttpConnections and posting HTML content.I would like to centralize this access using a design pattern.Which pattern is would fit this scenario ?I wonder if I should use the Adapter pattern or the Bridge ...
1060 byte By
mhstava at 2007-11-26 14:34:05
Hello,I am at the moment working on a editor for a configuration class. The class has several lists, some trees and objects some lists share references to object other lists and/or trees. The editor shows the structer in different views, be it either lists, trees and/or comboboxes (depending on ...
Hi. At the moment I am writing my first game in Java and I have trouble getting my head round scope for variables in Java.In my game I have the main JFrame class which holds an array of characters which is passed to a JPanel class for drawing. I pass this array into the JPanel in the JPanels ...
if there are millions of phone numbers that need to be sorted, does anybody know if there is a most proper algorithm out there?I have been searching, but can't find a good one. Thanks.