Hello :) My friend is doing his thesis & he's stuck with this program. Apparently it's not compiling. Unfortunately I don't have Java installed on this comp (in work) so I'm not much use but I was hoping someone here could point him in the right direction. Here ...
5019 byte By
ncm0402a at 2007-11-27 1:00:47
Hi I have a non simple polygon . My job is to make it a simple. for that First I need to find the intersecting lines say line AB intersects line CD. If so then I must replace AB & CD with AC & BD or AD or BC which ever keeps the polygon closed . So can anyone help me out with this ...
Hello, I am trying to write some code to display a game of mine with a split screen that'll show each player. My idea was to write a piece of code in the paintComponent method that sets the origin of the graphics component to the correct place so that the first player (indexed 0) will be shown ...
ive tried myself... didnt work.ive posted in a bunch of different support forums... didnt workive asked ppl on my msn...didnt work.So i was wandering if someone can tell me what this is... is it java or javascript? look at their nav bar here: http://nascors.com/they wont tell me (the ones who ...
Hi,I am facing a problem in using pagination using display tag:When I do the search first time on my page,pagination works perfectly fine. But after persisting the data in database when I show the search results again from the session, pagination does not work.It shows the page numbers but all ...
485 byte By
Serokoa at 2007-11-27 1:16:12
Hello, I believe the easiest way is to explain what I am needing...I am needing to read a text file from a website http://www.thisisnottheactualwebsite.com/members.txtThe information is stored likeiy1175696721yx1176164740 xm1176351702And so forth...I would like to call upon it like ...
Hello,I am still struggling with completing my sliding puzzle game.At the moment, I am having problems with synchronizing the animation of moving a tile from one square to another.Currently, If I click a tile while another tile is being moved, the tile does not move by the proper amount of ...
725 byte By
n3m0a at 2007-11-27 1:21:27
Hi, i can't figure algorithm for these two problems can you help me? :1. Write a program that reads a number - n and a sequence of n numbers and finds the longest are of adjacent equal elements. Example :n = 14sequence = { 7, 3, 3, 3, 7, 7, 7, 7, 3, 3, 2, 3, 7, 2}result = {7, 7, 7, 7}2. Write ...
605 byte By
n3m0a at 2007-11-27 1:21:38
Hi I'm new in Java and I need to find algorithm for these questions : 1. Write a program that reads a number n and sequence of n numbers and finds in the sequence the longest area of adjacent equal elements . Example : n = 14sequence = {7,3,3,3,7,7,7,7,3,3,3,2,7,2}result = {7,7,7,7}2. Write a ...
I'm wanting some help with regards to what is possible in java.I'm writing a mouse than can solve a 2D maze, 16*16 cells. I'm wanting to make sure the mouse can explore the maze and then solve it based on all the routes its found. I figured I could use the faster flood algorithm once I have ...
In previous programs created by myself, I have used a double buffering method to prevent flicker from being created when the screen is cleared for the next frame. However, this does not stop the flicker created when two drawn pieces of the program overlap.My graphical code looks like ...
We are using Hibernate for ORM in a non-managed environment.In Presentation tier there is Struts which interacts with a POJO-based business model. In the Action class we instantiate a persistent object with data derived from the ActionForm. In the Action class we call the business method using ...
Hello everyone,I'm working on a complaint registration application.For getting Complaint we use WebServices provided by another application.I think DAO can be a good solution but i'm not 100% sure there isn't others solution.The WebService methods are related to the complaint lifecycle like ...
Hello, I have several questions regarding the methods needed to draw a real-time game. First of all, is there a way of using Hardware accelerated graphics in Java? Secondly, and more to the point, my real-time game needs to repaint the screen every 25 milliseconds. The actual painting is done ...
6451 byte By
law1211a at 2007-11-27 1:38:18
hello,i am trying to use aco alg to print shortest path from a specified source node to a destination node. i have created a graph where i have all the vertices (array of strings) and edges(neighbours) stored. I am trying to get the ants to trail randomly on the connected edges from start to ...
1421 byte By
rkippena at 2007-11-27 1:41:31
Here is the description from Wikipedia of what to do when encoding the last bytes:> At the end of the data, the last group can have fewer than four bytes. Virtual> zero bytes are appended to the data, and after encoding, if there was one byte,> only two characters are output; if there ...
1619 byte By
nut467a at 2007-11-27 1:42:25
hello! On my project, about logic circuit. I have AND, OR, NOT gate for simulate with binary String 0 or 1. Now I want to create a component add on circuit with equation that has a step:1. show dialog for input arithmatic equation(+, -, *, /).2. input equation as (3A+B)-C=5Y+Z3. program can ...
Hi you all,I am about to start a project for our JCommunicator device.https://jcommunicator.dev.java.net/We thought about starting with a Rest approach because it is lightweight and because it can be nicelly couple with AJAX applications.The problem is that we dont have enought experience on ...
Hello, I am wondering which is the best way to create a map that contains both destructible and indestructible terrain. Is it best to store all terrain data in a 2D array or rather should I use Polygons which describe the terrain? Which is faster and more efficient? The map is constructed by a ...
2484 byte By
C_Zhaoa at 2007-11-27 1:49:17
Hi all, I'm a bit stuck on a certain dynamic programming problem from the USACO training pagesThe problem statement is as follows:Given V denominations of coins values, and a target value N, determine how many the total number of unique ways to construct N amount of money using the coin ...
I was wonderring if enyone could recommend goodRSS readers compatible with Windows and the RSS feeds of these forums.The requirements I am wanting:1) Free (or cheap - under $20)2) No adware, spamware etc.3) Compatible with Windows and the Sunforum feeds*.* I am worried when I read about RSS ...
3540 byte By
Aprza at 2007-11-27 1:53:09
http://www.freewebs.com/aprzepioski/jommy.htmlIt is a game I have been working on. I'll call it a game, but it is actually just a small 2D virtual reality right now. There was a lot of things I should have done that would have made the game better so now I am redoing the programming.When I was ...
3086 byte By
Hombrea at 2007-11-27 1:58:55
Hi!I was wondering whether it is bad or good to use private getter methods in a class rather than directly accessing private fields?For instance, I have a getter method for each Swig component used in my program: private JButton run;private JButton getRun() {if (run != null) {return run;}run = ...
Hi there;I am coding a image storeing website... Photo albums etc.But storing them in a folder system is getting complex for me... Whats the best way of storing image to folders?What i did up to now is: every member has its own main folder named with hex numbers... and i rename the uploaded ...
798 byte By
Kiseva at 2007-11-27 2:07:46
Hi, My Name is Venko Kisev and I'm studying IT and Business Administration at the University of Mannheim, Germany. I have to develop an Application that becomes a package of java classes and draws a UML Class Diagram. I have already done most of the things. My only problem is, that I can't ...
121 byte By
aaa801a at 2007-11-27 2:12:35
hii was wondering how i could make a basic java gamethat uses a map split into tilesany ideas
1043 byte By
Astrofa at 2007-11-27 2:13:04
Hey all,I was just wondering, what do u guys personally thing is the "best" graphics library for gaming? Until recently I've been using java2d, but its extremely slow and inefficient, and its hard to do nice cool effects with it without it becoming laggy. I tried out jogl, but OpenGL is ...
655 byte By
cakea at 2007-11-27 2:13:45
Hi, sorry if this seems a little odd for this forum but here goes:I would like to write a piece of OCR software for myself ;) but currently I know very little about the subject? My question is, what mathematical formulas, algorithms (or how would you do it) are used to detect the individual ...
Good mroning sir i am not finding a questions answer very satisfactorilycan a web application can have 2 serveltcontext?if yes under what circumstances?actaully i was reading the difference in requestdispatcher 's forward() and servletcontext 's forward() methods. they say that first is for ...
Hi all I've a class hierarchy problem. I'm trying, to create classes that will parse XML files for different sports, and display them in the table. I've no influence on XML files which I read, and they are different for each sport. To avoid code repeating I've created such a ...
1539 byte By
JDavea at 2007-11-27 2:26:57
Hi,I am currently working on a port of a boardgame into Java.My problem is now how to really realize the game.It is not a typical boardgame with fields I could store in an array but a tabletop game where the models could be everywhere on the board.I thought about doing it like the following but ...
Hm,Okay well for starters, I am going to make an online game similar to RuneScape. I need a little info though, please, if you don't have any, don't post.I need information some what similar to:* What SDK do I need to download?* What OTHER stuff do I need to download* Does Java offer a ...
450 byte By
gari_da at 2007-11-27 2:36:37
hi ..I m new to java n i m facing very much probem in my project.my project is on image processing tht involves opening two image on two different JInternalFrme and then selcting region of interest from both the images and thn i have to calculate the percentage of matching.plz cud any body help ...
Hi,I was wondering if anyone could help me to make the java game War. I have these two classes, the Deck class and Card class:import java.util.*;public class Deck {// Instance Variablesprivate Card[] theDeck = new Card[52];// Set up random number generator (an instance variable because we use ...
the way i want the code to work is to always fire the bullet up at a speed of -15 when the spacebar is pressed but after the first bullet, there are a ton of glitches and when u press the spacebar the bullet just moves in the direction that the plane is going and at the same speed. any ...
is there an event in java for holding down a key? i know there are ones for pressing it and releasing it. i am already using those. but i need one for if im holding the space bar down. plz help
600 byte By
aljabria at 2007-11-27 2:43:14
i have hw , so i would like to get some sot of ideasthe hw isDevelop an a lgorithm for finding the median of a list of numbers using the couting method 1234567894325618107for this algorithm, assue that the numbers in the list are uniqe(no duplicates) and that the length of the list is an odd ...
does anybody hav ideas on how to pause a game. i cant figure it out. thx.
251 byte By
Dydraa at 2007-11-27 2:46:48
Hi everybody!!!!!!!I am doing an MMORPG and I need some help:The game has real time combat, so i need someone to teach me, how to make a simple fighting game. You know: punch, kick, and button combination.Please help me ^_^
Hello,I am currently trying to write a Tetris clone but I am having trouble rotating a 4x4 grid around the centre point.I am using the standard formula for rotating around the z axis using a 5x5 gridx' = cosine(90)*(x-2) - sine(90)*(y-2) + 0y' = sine(90)*(x-2) + cosine(90)*(y-2) + 0The -2 is ...
i tried to use keyListener and ended up deleting what i had cuz it wasn't working. i dont understand the tutorial. i dont understand how i can add a keyListener. i dont think i hav a component to add it to. can anyone plz help me?import java.applet.*;import java.awt.*;import java.util.*;import ...
580 byte By
dodida at 2007-11-27 2:52:10
I have defined a tree of database classes, extended from the root class R. Now I want to define a caching database class A, so that for any two subclasses, B and C, of R, I can use 'a = new A(new B(), new C())' to create a database instance that works like B and all changes to B are backed up ...
Hello, as some of may already know, recently I have been working on a 2D real-time game. This is my first attempt at this kind of project and sadly I have been disappointed by the trickiness this involves. In fact, I am writing a project similar (idea-wise) to Vermin ExTerminator ...
I am trying my hand at the hutter prize ( http://prize.hutter1.net/)My current compression algorithm sorts an array of Comparable Objects every main cycle.-This array of objects can potentically increase by one object per cycle.-Each object's comparision value can change per cycle, however its ...
1009 byte By
Japhetha at 2007-11-27 2:59:43
I have a client and server for a game and I can send string messages perfectly fine. However, I made an enum type for different types of messages and I would like to be able to send the enum type along with my string message somehow. Is this possible and is it worth the effort? I know that I ...
i tried putting sound into my game but it will not work. any ideas?i have something like this.try {blastSound= getAudioClip(new URL("fire.au"));debrisSound= getAudioClip(new URL("debris.au"));explodeSound = getAudioClip(new URL( "explode.au"));fireSound= getAudioClip(new ...
Hi all, im pretty new to all this and im trying to code a hangman proggie (no gui) and ive totally hit a brick wall with it, any chance someone could give me a pointer what im doing wrong with this? t'would be much appreciated.[b]main class:[/b]public class hangMain{public static void ...
Hi there, I am currently working on a distributed clients-server system where a GUI resides on the clients whereas the programmer programs to server-side dummies like the GUI would be running local.Therefor I map between client-side-Implementation and server-side-dummy using ...
i am helping a friend out and hav a bug.the way its supposed to work is to move the bullets up if they arent to negative 10 in pixels. if they are, then the plane can use it when the mouse is clicked. when i comment out if (bulletsPlaced = true){for (int i = 0; i < maxBullets; ...
1212 byte By
Japhetha at 2007-11-27 3:10:45
I have a server that has a main loop listed below:while (listening){new ServerThread(serverSocket.accept()).start();}The only way I have to stop the server is to manually close it, because the serversocket.accept() method blocks until a connection is made. I would like to be able to execute ...