Scrabble board to board.
Is it best to communicate between two scrabble boards on separate computers by creating a cloud with a SQL table, simulating the board. And every time I move is made you contact the server and update the local board? ...
Is it best to communicate between two scrabble boards on separate computers by creating a cloud with a SQL table, simulating the board. And every time I move is made you contact the server and update the local board? ...
Hello, I am trying to use Jama package in my code in Linux. In my Main class, I am trying to use Matrix class. Here is my Main class: import Jama.*; class Main { public static void main(String[] args) { Matrix A = new Matrix(3,5); } } I am not using any IDE, my makefile is: JC = javac -classpath $(CLASSPATH):jars/Ja...
Hello I have smallish personal project consisting of the following Eclipse workspace. + +-MyApp // this is just a vanilla Java Application +-MyWebApp // this Dynamic Java Web Application (Tomcat) +-MyCommonStuff // these are common classes // Ex. Database access code & business classes This is all well and good when I...
I'm using Apache Mina 1.1.7 and Java 1.6. The server sends a sequence of three messages to the client in loop. Sometimes two sets of messages overlap. For example, I am expecting: ++ recv: MSGHEAD ++ recv: message body 1 ++ recv: . ++ recv: MSGHEAD ++ recv: message body 2 ++ recv: . but I get this instead: ++ recv: MSGHEAD ++ recv...
I have the code of a simple game, where an AgentInterface must be implemented in order to create an agent controller for one of the characters in the game. GameState is a class the implements GameStateInterface, and an object that implements this interface can be passed to the agent, so the agent can read and analyze the data from game s...
is it possible to generate valid XHTML in tapestry 4.1.x ? i specifically need the shell to generate the proper XHTML headers and can work around the actual body content - ie only use specific components that render valid tags/structure. thx. ...
I'm trying to debug a locally running java web start application. There is a call failing that I am trying to get a stack trace for, but it appears that nothing is ever getting printed out anywhere. The app just appears to be doing nothing. Thanks! ...
Hi friends, probably this is a lack of attention issue, if so, forgive me, but I can't see what I'm doing wrong, it took me all the afternoon, I need you help. I'm doing a JSF + JPA + RichFaces app, it's pretty simple. I did the JPA project, tested, then the JSF project, tested, everything is working fine, but then when I pasted the Ric...
I am running the JHAT memory profiler. This example shows information attached to a single object: https://hat.dev.java.net/doc/examples/object.html This info includes a section "object allocated from". When I run jhat, I get everything except the "object allocated from" section. Why? I can't see any setting that controls this. Enviro...
I'm currently working on a daemon that will be doing A LOT of different tasks. It's multi threaded and is being built to handle almost any kind of internal-error without crashing. Well I'm getting to the point of handling a shutdown request and I'm not sure how I should go about doing it. I have a shutdown hook setup, and when it's call...
In Swing you can get "the other Component involved in this focus change" from this: getOppositeComponent. There does not seem to be a similar call in SWT, does anyone have a workaround or fix for this? TIA ...
Hello there. I'm a first year programmer. I'm trying to create a squircle. (square with round corners). So far i have managed to get. I have been given the constants of a,b and r. If anyone could help i would be really thankful. I'm a total noob to this. So be nice :) package squircle; import java.awt.*; import javax.swing.*; import ...
Hi.. I have windows vista OS.. I Installed JMF to work with it.. but it seems I'm having some conflicts between Sound and JMF.. because after I installed JMF my projects that use Sound.. midi.. sequences.. are giving exceptions that they don't have some sound classes and so.. and when I removed JMF every thing went OK !! so what I'm gonn...
Output of: javap -s SomeClass public org.someapp.SomeClass$_data data; Signature: Lorg/someapp/SomeClass$_data; Definition of SomeClass in Java: class SomeClass { private class _data { byte[] something = new byte[1234]; } public _data data; } Definition of native function in Java: public static native int Na...
I am using the Stanford Natural Language processing toolkit. I've been trying to find spelling errors with Lexicon's isKnown method, but it produces quite a few false positives. So I thought I'd load a second lexicon, and check that too. However, that causes a problem. private static LexicalizedParser lp = new LexicalizedParser(Constant...
I'm writing a Java program, and I want a function that, given a string, returns the number of Google hits a search formed from that query returns. How can I do this? (Bonus points for the same answer but with Bing instead.) For instance, googleHits("Has anyone really been far even as decided to use even go want to do look more like?") w...
In Java, how do I convert an array of strings to a array of unique values? If I have this array of Strings: String[] test = {"1","1","1","2"} And I want to end up with: String[] uq = {"1","2"} ...
I'm making a program that opens a previous saved file through serialization and want to create a new one, however, data stays in. How can I make the program forget the data? ...
In a three-tier/multitier architecture (UI/Logic/DAO/Domain model), can services be considered as belonging to the business logic layer or are they situated as something separate ? ...
I have this Hash Set code and when I try to run my compile method on it I get the Null Pointer Exception: null error on it. Here is the code: private void initKeywords() { keywords = new HashSet<String>(); keywords.add("final"); keywords.add("int"); keywords.add("while"); keywords.add("if"); ...