Win a copy of Spring in Action (5th edition) this week in the Spring forum!

Maarten Vergouwen

Ranch Hand
+ Follow
since Jan 12, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Maarten Vergouwen

The core of your problem I think is that you don't really want the body to move in the same direction as the head at all -- you want it to follow the same _path_ as the head.

Therefore, you should log the path the first segment (head) travels, and make the other (body) segments travel the same path.
14 years ago
Just out of curiosity (too lazy to try it), but would creating a batch file to run these commands, then executing the batchfile through the exec work?
14 years ago
I dont know what you are developing, but if you use a DB you might want to explore the possibility of letting the database handle XML generation for you.
I've recently seen this done in MS SQL Server, and it was incredibly easy to do. Instead of writing Java code, just put the functionality into a SP. Has the added advantage of not needing a new software release of something has to change in retrieval of the resultset etc.

rgds,
Maarten
14 years ago
I've sort of grown to like NetBeans to be honest (it takes all kinds....)
I've sort of grown to like NetBeans to be honest (it takes all kinds....)
14 years ago
You havent made a sumo object, you've just coded the class.

You need something along the lines of:



then you can execute a method with you sumo object as as argument

14 years ago
Thank you for your help Rachel.
After seeing your bit of code work fine, my error turned out to be far more elementary than I'd feared (unreachable code because of a careless comment.... highly embarrasing ).

rgds,
Maarten
14 years ago
I'm having trouble getting a JScrollpane to do what it is supposed to do, ie enable scrolling.

What I want to do is add scrolling to a JList. I have coded the following:


jScrollPane1 = new javax.swing.JScrollPane();


Then I add items to the list using:


When I then add items to the list, I see them added just fine, but once the entire list is filled on screen, no scrollbar appears though items continue to be added.

Can anyone tell me what could be wrong?

tia,
Maarten
14 years ago
Hi,

does anyone knwo where I can get a JDBC driver for Sql Server 7.0?

Microsoft apparently doesnt believe in supporting the customers that have no need to upgrade, as they only offer the 2000 drivers for download.



Thanks in advance,
Maarten
Are you running the JAR from inside an IDE?
If so, you might experience different behaviour when running it outside the IDE, since some IDEs (like NetBeans) have their own path settings which they apply.
Hence, when you run it from the IDE it works fine, and when you run it outside it suddenly cant find all of the files (or viceversa).
14 years ago

Originally posted by kit james:

In terms of development speed, difficulty, and performance compare the dot Net ?


Development speed: For windows platform, .NET is a bit easier to develop (depends a bit on what you want to do). However, the difference in most cases isnt that big plus Java has its cross-platform ability which makes it superior in my view.
Difficulty: Java and C# have about the same learning curve imho.
Performance: Difficult one. I can say that in my experience there isnt much difference, which is true, but only a really independant thorough test would prove it either way. And since those tests are very expensive, the chances of them being truly independant are about 0.
14 years ago
by setting the height and width? the getPreferredSize returns a Dimension object, which is basically a combination of height and width anyway.
Try using an absolute layoutmanager and manually set the size of the canvas and see what happens.
14 years ago

Originally posted by Mike JOSEPH:

1. Is it feasible or risky to develop an application that is targeting a mass market using Java?
2. Are there any situations where Java should not be used?
3. Can anyone point me to guidelines for developing for the desktop using Java?
Thank you in advance for taking the time to answer these questions.
Mike


1. I'd say it is definately feasible. Warren's point about a VM not being available is important, but can be circumvented by packaging your product in a good installer which also installs a VM if necessary.
2. For cross-platform business applications (which is what your question is about if I understand correctly), I cant really think of anything.
Perhaps if you need it to work with certain other products that do not support Java.
3. There is a Swing Trail or something like that on Sun's website. It gives a decent quick overview of what is available in Swing.
[ March 10, 2004: Message edited by: Maarten Vergouwen ]
14 years ago
Sun's SL275 course culminates in building a chat application; I'm sure you could find the source files somewhere of someone who has done the course (perhaps even Sun).
It's not exactly what you want (doesnt use servlets), but you could take it as a starting point perhaps.
[ March 03, 2004: Message edited by: Maarten Vergouwen ]
14 years ago
'void' is the declaration equivalent of 'page intentionally left blank' so to speak.
You explicitly declare that no, there is no return value, and no, it is not because you forgot about it.
[ March 01, 2004: Message edited by: Maarten Vergouwen ]
14 years ago