This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!

Marcel de Jong

Ranch Hand
+ Follow
since May 27, 2002
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marcel de Jong

I want to keep up to date with Java and related technologies.

For example, say there is a new library for JSF which makes life even more easier for development, where would you have a good chance to hear about it?
9 years ago

everything changes quit fast, sometimes its hard to keep up-to-date with the latest technology.

What does one do to keep up-to-date? Any suggestions for a good website?

Thanks in advance.
9 years ago

I have a question about the CharsetDecoder. According to some searches (searches)
the following code should work:

I am expecting a CharacterCodingException, which is what I want, but unfortunately
no exception is thrown.

Does any one know why the exception isn't thrown and how I can rewrite the code
so that an exception will be thrown.

BTW: The Euro sign is not part of the (cp437 encoding)

Thanks in advance.
11 years ago

Or at least according to the following:

European Championship 1988, played in Germany, exit Germany in semi finals
European Championship 1992, played in Sweden, exit Sweden in semi finals
European Championship 1996, played in England, exit Engeland in semi finals
European Championship 2000, played in the Netherlands, exit Holland in semi finals.
European Championship 2004, played in Portugal, exit Portugal in semi finals?

Germany champion in 1980 and 1996 = 16 year difference.
France champion in 1984 and 2000 = 16 year difference.
The Netherlands champion in 1988 and 2004 = 16 year difference.

There is one theory which is good for Portugal:

1964 Organizer: Spain. Winner: Spain.
1984 Organizer: France. Winner: France.
2004 Organizer: Portugal. Winner: Portugal.

Anyhow, I just hope for a good game by both Portugal and Holland.

[ June 29, 2004: Message edited by: Marcel de Jong ]
14 years ago
I maintain a web application which uses Data Access Classes generated by VisualAge for Java 3.5. The web application use the generated classes to modify the database.
Now, there is going to be a database change and I need to figure out how to generated the Data Access classes.
I have imported the sources into my workspace and am ready to generate the DAC. But I cannot figure out how to generate them.
Does anybody know how to generate those classes?
Thanks in advance,
How about Hillary Clinton, she was a female president.
15 years ago
Hi Capablanca,
how about reducing the original number with it reverse? This should always result in zero (0). If not, you don't have a palindrome.
15 years ago
I'm using WSAD 5.0 and get the following error when checking out a project from CVS into WSAD 5.
The error is:
Problems encountered performing checkout
Reason: java.lang.NullPointerException encountered while running
Does anyone have an idea how to fix this?
I would write that piece of code like this:

Where the method findFlightUtil(criteria, modelName) throws a DataNotFoundException, or another user defined exception.
In this way you don't need you success variable and in my option its more readable.
We always hear "the rules" from the female side. Now here are the rules from
the male side.
These are our rules! Please note... these are all numbered "1" ON PURPOSE!
1. Learn to work the toilet seat. You're a big girl. If it's up, put it
down. We need it up, you need it down. You don't hear us complaining about
you leaving it down.
1. Sunday = sports. It's like the full moon or the changing of the tides.
Let it be.
1. Shopping is NOT a sport. And no, we are never going to think of it that
1. Crying is blackmail.
1. Ask for what you want. Let us be clear on this one: Subtle hints do not
work! Strong hints do not work! Obvious hints do not work! Just say it!
1. Yes and No are perfectly acceptable answers to almost every question.
1. Come to us with a problem only if you want help solving it. That's what
we do. Sympathy is what your girlfriends are for.
1. A headache that lasts for 17 months is a problem. See a doctor.
1. Anything we said 6 months ago is inadmissible in an argument. In fact,
all comments become null and void after 7 days.
1. If you won't dress like the Victoria's Secret girls, don't expect us to
act like soap opera guys.
1. If you think you're fat, you probably are. Don't ask us.
1. If something we said can be interpreted two ways, and one of the ways
makes you sad or angry, we meant the other one.
1. You can either ask us to do something or tell us how you want it done.
Not both. If you already know best how to do it, just do it yourself.
1. Whenever possible, please say whatever you have to say during
1. Christopher Columbus did not need directions and neither do we.
1. ALL men see in only 16 colors, like Windows default settings. Peach, for
example, is a fruit, not a color. Pumpkin is also a fruit. We have no idea
what mauve is.
1. If it itches, it will be scratched. We do that.
1. If we ask what is wrong and you say "nothing," we will act like nothing's
wrong. We know you are lying, but it is just not worth the hassle.
1. If you ask a question you don't want an answer to, expect an answer you
don't want to hear.
1. When we have to go somewhere, absolutely anything you wear is fine .
1. Don't ask us what we're thinking about unless you are prepared to discuss
such topics as baseball, the shotgun formation, or monster trucks.
1. You have enough clothes.
1. You have too many shoes.
1. I am in shape. Round is a shape.
1. Thank you for reading this; Yes, I know, I have to sleep on the couch
tonight, but did you know men really don't mind that, it's like camping.
15 years ago
my sister is going to get married and I want to write some kind of manual for the "rules to handle women" for my future brother-in-law.
I'm thinking of:
- When a woman say yes, she means no
- When a woman say no, she means yes
Do you know any other "rules"
Thanks in advance,
15 years ago
Instead of using java.awt.TextField try using javax.swing.JTextField.
TextField doesn't have a method called setToolTipText, but JTextField does.
Anothertip is this link.
15 years ago
So it is possible?
can you tell me how to do it?

first of all "Happy New Year" to every one. ;-)
I've tried using unload, and it is working. However, it does it every time I unload the page. It also fires when I leave the page via a link. Thats what I don't want. I only want to popup to show when the user exits the page via:
- a new URL in the addresbar
- exiting the browser
Any ideas?
is it possible to open a new window when the user closes the browser or when they type in a new URL in the address bar?