This game is cool. However, I was stuck in Room 5 (Riddle) and was forced to look for answers because the game has a bug.

The question is: You have 10 lit candles. All of a sudden a gust of wind put out 7 of them. How many lit candles are left?

Now … the answer in the game is 7. Which is wrong. It should be 3, right?

I have no idea why they made 7 the correct answer. This bug really got me stuck. Even the walkthrough editor said so himself that the game’s question may had been worded incorrectly.

Now this, is the best code snippet I found in Java that can auto adjust the JTable row height regardless what kind of renderer component is used.

I had been using some short code snippet that sets a JTextPane or JEditorPane content, then getting the height. However, when my content was full of HTML tags, the height returned really messed my JTable.

This code I found in Stack Overflow by user camickr really is the best solution for auto adjusting all rows heights of a JTable based on content.

The best and easiest way to have your app determine if the device is a smartphone or a tablet is to place a boolean value in a specific value file such as res/values-xlarge.

Then, in the folder res/values, you can add the same XML code but with a false value.

In your Android code, you can get the value with this code:

Related Posts Plugin for WordPress, Blogger...