Tim Moores

Saloon Keeper
+ Follow
since Sep 21, 2011
Tim likes ...
Android Firefox Browser Mac OS X Safari Tomcat Server VI Editor
UK / DE
Cows and Likes
Cows
Total received
144
In last 30 days
1
Total given
12
Likes
Total received
1056
Received in last 30 days
23
Total given
463
Given in last 30 days
12
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tim Moores

Have you tried anything?
4 hours ago
It's hard to say what should be changed because mIndex is not otherwise used. If I had to guess, it should be used to select the question initially, with a default value of 0 if none has been saved before.
4 hours ago
You should change it so it does what you want it to do :-}
1 day ago

Randy Tong wrote:I guess is because you declared them as global, so the value not changing ?


It's not global, it's an instance variable - which is what is needed here. But changing a variable does not update any GUI elements that may depend on it.
1 day ago
Line 87 sets the question text, so that needs to be repeated whenever the index changes.

I think you also need to change line 87 so that it actually uses the index. Otherwise the index variable (and saving its state) is pointless.
1 day ago
Yes, that updates the index, but as I said, it doesn't do anything with that index, so it's no wonder the GUI doesn't get updated.
1 day ago

Jeanne Boyarsky wrote:Does one-jar work without Ant/Maven?


It does, and the process is described on its home page.
1 day ago
I see code that updates the index of the question, but I see no code that would use that index to display another question...?
1 day ago
If an unpacking step is acceptable I don't understand the point of a fat jar. You can simply create a zip with all jar files, unpack it, and double click the main jar file. The others can be referenced via that jar file's manifest.
2 days ago
Create two classes (and likely two jar files) - one containing unprotected methods, and the other containing protected methods. Then only deploy the public one to the outside world.
2 days ago
Either don't expose that service to the outside world (split them up into two parts, internal and external), or require authentication for restricted methods.
2 days ago


Thread thread = new Thread();


Should this read "new NewThread()", or is that a typo?
2 days ago
As you can see on https://coderanch.com/wiki/659681/Book-Promotions-Winners-Page, the list of winners has recently been sent to the publisher. So the ball is in their court now, meaning for the time being, it's out of our hands. Just wait patiently :-)

As to paper vs ebook, I don't know.
2 days ago
Is the server up and running? If not, the code will eventually time out in line 14 (and throw an exception to that effect). I just tested it, and it timed out after more than a minute.
2 days ago