jwenting 1,905 duckman Team Colleague

You will need the current directory in your classpath either statically (through the CLASSPATH environment) or dynamically through the -classpath compiler flag.

And no, I'm not going to kill you. I'm all out of rope for the noose :)

jwenting 1,905 duckman Team Colleague

Would work similarly.

jwenting 1,905 duckman Team Colleague

JB Foundation can do it, but I use JB2005 Developer myself.
Working professionally on web applications I need good JSP, XML, and other editors which the foundation edition doesn't provide.

There are several plugins for building user interfaces for Eclipse but I didn't find the ones I tried much good.

jwenting 1,905 duckman Team Colleague

It's not all that common or there would have been a component for it.
Delphi includes a component that does more or less what you want maybe but only in the highend versions.
I've found it occasionally useful, but certainly don't miss it.

Your best bet might be to create a custom JPanel derivative containing your own input fields for each field, and another JPanel derivative to display a number of these in some way.

jwenting 1,905 duckman Team Colleague

Memory is never allocated at compile time!
At most a default value to be used during initialisation is set if that value is different from the default the language dictates.

So the memory for your static member is allocated during class initialisation by the classloader.
When the class is unloaded (which can happen, but is not guaranteed to, when there are no more references to it) that memory also is freed (which could lead to more memory being freed if the static member contains a reference to another object).

Remember that it is possible to have more than one instance of a static member in a single application!
While most people will never encounter this, it bears remembering just in case.
Static members are unique per Class instance. Each classloader loading a class will have its own Class instance for that class and thus its own set of static class members.
Unless you're working with distributed applications, some web applications, or custom classloaders, you're unlikely to have to bother about that though.

jwenting 1,905 duckman Team Colleague

I wonder how many of those 50.000 members are really members and how many just post a question and then are never heard from again.
On most boards I visit I'd say at most 10% of the membership base are really active. That would mean at most 5000 active members here (active meaning visiting more than once a week on average over a prolonged period).
Given the worldwide and rather young (my guess from the style and language use of many posts) audience here I think many won't have the funds to make it (and would likely not get parental permission to travel to NYC on their own even if they could get the funds).
Those people may also be less than inclined to admit that, and therefore not vote.

Overall I don't think you should expect more than a few hundred people at most, Dani, and that's an optimistic estimate.

As I already said I would come myself if I could but that's unlikely in the extreme (though maybe if I could combine it with my planned (but unconfirmed) trip to DC in September I might be able to make it).

jwenting 1,905 duckman Team Colleague

Would love to but it's just too expensive. I've already got an invitation to DC for September and 2 trips to the US in a year are more than I can afford (in both time and especially money).

Living in Europe a flight to the US and back costs something like $800-$1200 depending on destination and dates...

jwenting 1,905 duckman Team Colleague

I do use JBuilder, but only for prototyping and as an editor.
Love the code completion and class template features, makes coding a lot faster by removing a lot of the boilerplate work.

But, and that's the point, I do know how to do those things by hand and often do when working on other machines (like our Unix servers).
Unless and until you can do that you shouldn't use such tools.

jwenting 1,905 duckman Team Colleague

Ah, you want to swap the meaning of row and column, that's all?

No, I don't think that's easily possible.
You might be able to subclass JTable but I don't think that'll work.

Or you would have to create something yourself, probably along the lines of the TDbCtrlGrid in Delphi.

jwenting 1,905 duckman Team Colleague

He seems to think that there is some way that each column is a record in its own right, rather than a collection of values taken from a specific field one from each row.

There is no such thing, the entire idea is counter to what a tabular representation of data means.

jwenting 1,905 duckman Team Colleague

http://www.fred.net/tds/noodles/noodle.html


And someone's response to the above:

Whoa, man. This guys' conclusions are all wrong. There is absolutely no reason why Noodleous Doubleous should be construed as a separate species, when it should be patently obvious that the Penne and Rigatoni are simply conducting their mating ritual.

Let's examine each pasta's physical characteristics.
The Penne is small, has a smooth carapace, and two pointed ends: all features designed to facilitate penetration.
The Rigatoni is larger (so to protect her brood, similar to the red-tailed hawk), has a ribbed outside to ward off wayward Penne (since it would be evolutionarily unfavorable to pass on such incompetent genes), and is just the right size to sheath the Penne.
The Rigatoni is oriented vertically, while the Penne is at a 45° angle. This allows the Rigatoni to remain in place and conserve nutrients for the gestation period, while the more aerodynamic Penne needs to come to the female, undoubtedly a goal attained only after fighting off all other competing Penne in the area. The fact that all Rigatoni were oriented the same way (and likewise the Penne) suggests the pasta have either a genetic or societal aversion to same-sex relations, as such unions would not bear offspring. The bubbles coming from the dorsal end of the Rigatoni clearly indicates the Rigatoni's willingness to mate and serves much the same purpose as cats caterwauling, or cows balling.

Further, let's examine the conditions under …

kAtHicKa commented: This is hilarious!!! +1
jwenting 1,905 duckman Team Colleague

Didn't know you had any left to loose? ;)

jwenting 1,905 duckman Team Colleague

What you're trying to do is not something any grid control in any language will give you.

A column by definition is merely a placeholder for all values of a particular field per row.
You can get those values easily by iterating over each row and taking that particular field.

There is no single record in a column, therefore what you're trying to retrieve doesn't even exist.

To get the class of a cell simply take the class of its column, it will always be the same (or a superclass) of the class of the actual data in the cell you're looking at.

jwenting 1,905 duckman Team Colleague

a static variable, by definition, is a variable, declared at the start of the program, that does not change its value throught the execution of the program.

Wrong. You're referring to a final member.
A static member is allocated one instance per Class Object rather than one instance per class instance.
It is initialised at class loading time which can be at any point after JVM startup, and after that can be altered as required (depending on access control of course).
It can also be made final in which case it cannot be changed once initialised to a value.

It will take up the same space as an instance member of the same data type would, but whereas instance member are declared once per instance static members are declared only once per classloader.

jwenting 1,905 duckman Team Colleague

Shame, a common look for the entire site makes it look a lot more professional.
I'd prefer that colour to be blue though (but then I don't like yellow :) ).

Overall it looks a lot more professional than the old layouts, job well done overall.

jwenting 1,905 duckman Team Colleague

While natural events like hurricanes may cause rapid depreciation in some areas, it may yield sharp increase in prices in areas not affected by such events as people try to get away from the disaster prone areas to the proverbial high ground.
Those people will possibly want to give whatever is asked for property, and close out on mortgages they can only barely afford to pay on.

In the medium to long term this could cause them to have to sell at a loss compared to the then-current prices, but by then the market will have likely caused prices to increase enough that they're still selling at a higher price than what they themselves initially paid.

That's the situation as it was at the end of the .com boom when many people in IT lost their jobs and their houses and migrations started to areas where there still were jobs available.

jwenting 1,905 duckman Team Colleague

he does look rather puzzled...

jwenting 1,905 duckman Team Colleague

Personally I hate GridBagLayout :)

But don't use a single layout manager, experiment with combining them. You can place containers inside containers, using different layout managers for each as required.

jwenting 1,905 duckman Team Colleague

There's thousands of people doing that, millions of resources on the net about it.
Just use a search engine instead of sitting here waiting for someone to do it all for you.

jwenting 1,905 duckman Team Colleague

And a very bad day for Indonesia too: http://dog-pundit.blogspot.com/2005/10/horrific-murders-of-christian-school.html

Don't click if you have a weak heart, pictures are extremely disturbing.

3 Christian schoolgirls beheaded on the way to school through a Muslim neighbourhood. Heads were found several kilometers away.

jwenting 1,905 duckman Team Colleague

Personally I'd go for a Sun UltraSparc if I could afford a G5. They cost about the same and are real Unix systems which are just perfect for Java development.

If I wanted it for image processing I'd likely go for the G5 or P4, they're both good at it, and you'd get better value for money with the P4.

For gaming the Mac and UltraSparc are pretty much useless.

As a fashion statement you can't beat the Mac.

To create Windows applications there's only one choice really, and it's not the same choice as for creating Mac applications.

jwenting 1,905 duckman Team Colleague

I'd start with getting a spelling and grammar checker. You seem to be in desperate need of one.

jwenting 1,905 duckman Team Colleague

It would be fine.

That was sarcasm :cheesy:

jwenting 1,905 duckman Team Colleague

It's no more difficult than in any other high power language once you know what you're doing.
It does take some learning though, as the programming paradigms that underlie the Swing toolkit are quite different from what you'd expect from for example Delphi or Visual C++.
Especially the layout manager concept (instead of absolute positioning and sizing of controls) seems to have many people baffled for a while, but it's vital for the proper functioning of a GUI application in a multi-OS environment.
After writing applications using Turbo Vision for DOS it's a breeze though :)

jwenting 1,905 duckman Team Colleague

Avoid eBay like the plague. Most of what you find there is crap, overpriced, or scams.

Most times I find a site I trust and will use whom they recommend.
Never shop at sites that don't list a physical address and contact information that can be tracked down if you get suspicious about something.
Never shop at sites that only accept Paypal or money orders/checks.
Never shop at sites that don't use SSL for their payment processing.

And me being me I usually compare dozens of options before deciding on one, usually taking weeks to decide on a purchase (especially a first purchase from a retailer).
Make that first purchase a small one. If something goes wrong not a lot will be lost.

jwenting 1,905 duckman Team Colleague

1) don't use Vector. Unless you KNOW you need it specifically there are better alternatives like ArrayList.
2) that line shouldn't throw a deprecation warning as you're not using any deprecated methods.
What you should get is a warning about unsafe operations as you're not using a Vector with a specific type of entry set through generics.
So your deprecation warning is something else...

jwenting 1,905 duckman Team Colleague

And what's your question?
I'm not going to proofread and debug all your code to figure out what's wrong with it and then supply a corrected version, but we're willing to point you in the right direction if you ask pointed questions.

jwenting 1,905 duckman Team Colleague
<c:if test="${not empty urldata}"><a href="<c:out value='${urldata}'/>"><c:out value="${urldescription}"/></a></c:if>

Now isn't that a simple and clean bit of code?
Learn to use JSTL and ditch those scriptlets. They're 7 year old technology and no longer recommend.
In fact on any new project I ban the use of scriptlets, dictate JSTL is used exclusively.
Any JSP containing scriptlets gets thrown back to the programmer for rework.

jwenting 1,905 duckman Team Colleague

Please translate that... Use English in the hope that people understand you, not some form of secret language.

jwenting 1,905 duckman Team Colleague

I don't think office type applications (wordprocessors, spreadsheets) work well in a browser environment.
The client is too restrictive.

For your other question: D&D is built in these days, just read some books on Swing.
Charting components are to be found all over the web, search engines are your friend.

jwenting 1,905 duckman Team Colleague

Better believe it, I get PMs to that effect several times a month just on this site.

jwenting 1,905 duckman Team Colleague

Game programming is a very specialised field that takes years of study to get right. Many many young people think it's a glamorous field to start out in and get burned out quickly (if they're lucky, some turn up dead and that's no exaggeration).
It's a highly complex, extremely high stress, environment I'd not recommend to anyone who doesn't have years of experience and knows the industry.

Start by creating a REALISTIC project idea using the knowledge you have already about what APIs are available and what they can offer you.
Work that out into a design document detailing what the application should be able to do (workflow, etc.), maybe including some rough user interface drawings.
Flesh that out into a technical design before you start coding.
At any stage if something looks to be over your head, reconsider (but first try to figure out how to do it anyway of course) your ideas.

jwenting 1,905 duckman Team Colleague

Indians especially. Asking us to do their work which they then use to convince our bosses that they're better than us...

jwenting 1,905 duckman Team Colleague

What's considered excentric changes over time. An 18th century dandy might fit right into polite early 20th century society for example.
And if you were to walk around today in a Roman style toga you'd be considered more than a little bit excentric (outside an SCA meeting at least) while in Rome 2000 years ago you'd have been wearing the height of fashion.

Myself, I prefer to not wear shoes if I can avoid it. People don't seem to mind but you get some weird looks (and questions if you're not cold) when temperatures drop to below 25C :)
Yet in the 1960s and early '70s noone thought twice about it, and in many parts of the world it's quite normal (Australia, Hawaii, South Africa, parts of the US, and of course most of Africa and large parts of Asia).
To quote one author "2/5 of the population take off their shoes whenever they can, while 3/5 suffer in silence"...

jwenting 1,905 duckman Team Colleague

You need them both. Either on its own will not work to produce a 1.4 classfile (the target flag alone MIGHT work if you're very careful, the source flag alone certainly won't).

jwenting 1,905 duckman Team Colleague

If you add the -source 1.4 flag you will NOT get 1.4 compatible classfiles. All that does is flag 5.0 only features as errors in the code, effectively ensuring whether it would compile using a 1.4 compiler.
You also need to add the -target 1.4 flag.

jwenting 1,905 duckman Team Colleague

Do you own homework, looser.

jwenting 1,905 duckman Team Colleague

The JSE is WAY too bulky as it is.
If anything a LOT should be removed from it, not added.

Things to be removed to addon APIs:
Swing
XML
RegExp
SOAP (which will be a standard API from JSE6)
AWT

jwenting 1,905 duckman Team Colleague

I think it's fishing for someone to create something using JDBC and JSP and send it to him via email so he can pass it off as his own in a homework assignment.

That's not just stupid, against forum rules, and immoral, it's also extremely impolite and against all commonly accepted nettiquette.

If it's indeed in an advanced course it should be able to write something like that itself, and if not it should have no need to ask for something like that but rather learn to write it itself.

jwenting 1,905 duckman Team Colleague

can anyone tell me the solution to this problem>??????? :twisted: :eek: :surprised :o

No, your task is to find the solution so you'd better go out and do your own homework. :evil: :) :eek: :twisted:

jwenting 1,905 duckman Team Colleague

I don't have a wet T-shirt :)

jwenting 1,905 duckman Team Colleague

One hint: name your fields in your classes to read what they actually mean.
When I read your code I assumed initially that you started out with a single rabbit because of the name of that field.

jwenting 1,905 duckman Team Colleague

compareTo is used for sequential placement of Objects. It's mainly useful in conjunction with sorted collections.
equals is used to simply check for logical equality.

In case of Strings compareTo will tell you which of the Strings being compared would come first in a case sensitive dictionary, equals would simply tell you if the two String references contain the same data.

But it's quite possible to define the methods in your own classes to have quite different behaviour (though not often recommended for the obvious reasons).
Most useful when defining them for your own classes is to compare only part of the fields in the objects, for example in case of objects representing database records you'd only want to compare the fields representing the primary key for the database table.

implementing compareTo is really only useful in combination with implementing the marker interface Comparable which is an indicator to sorted Collections that the compareTo method can be used to sort object instances of the class (if not a Comparator class is expected instead).

jwenting 1,905 duckman Team Colleague

A JTextPane will use a filter to format the text. That filter will probably (I've not tried) also be applied when retrieving the text.
Try a JEditorPane instead (maybe just casting it to JEditorPane and asking for the text will be enough), or try getting the text through the model instead of directly.

jwenting 1,905 duckman Team Colleague

I counted 19 grammatical and spelling errors (including some nonexistent words and acronyms) in that 3 lines of text.
That's probably a new record for this site.

jwenting 1,905 duckman Team Colleague

From his own ramblings (rather than the stuff he copied word for word from his assignment, do they get those in electronic form nowadays?) it appears he needs some English language lessons first to understand the wording of the assignment...

And his reaction to people who tell him to show some effort show me he has some serious attitude problems as well.

jwenting 1,905 duckman Team Colleague

Well said. Whatever problems there may be will be extremely localised. But as usual the naysayers and doom thinkers are out in force to destroy something.
In part this is of course fueled by traditional TelCos and cable companies who stand to loose a lot of their power over communications technology if this goes ahead, in part by environmentalists who are constantly trying to make anything having to do with energy look bad.

Dutch railways have I know been running comm signals over their powerlines for years now with no ill effects anywhere.
These aren't shielded either, and are a lot closer to the ground.
Radios, cellphones, everything works fine in trains.

jwenting 1,905 duckman Team Colleague

Do your own homework, we're not here to teach you that you can sit back on your lazy arse while others do your job for you.

jwenting 1,905 duckman Team Colleague

Weird, I first read about this in a scientific journal describing a pending experiment in the UK.
Never heard what happened with it but that was about 1996, well before current broadband technologies had matured to the point where they were mainstream and cheap enough for any but the most affluent companies and universities to afford them (most people at the time, if they had internet access at all, were connecting through 28k8 modems and paying by the second).

jwenting 1,905 duckman Team Colleague

uh, not anywhere I have visited (though some of those places had probably outlawed the word itself, but that's another story).