jwenting 1,905 duckman Team Colleague

That's correct.
You fell into the well known trap of starting a longrunning operation from the AWT eventhandler thread.
Start it from another thread and pass it a reference to the label.

jwenting 1,905 duckman Team Colleague

It's terribly badly written code, don't bother looking into it.

jwenting 1,905 duckman Team Colleague

I've seen some cases where it makes sense.
Mainly it would be one form that's completely made up of hidden components and is sent with background requests to generate on-demand content that's not shown when the page is first generated, and another with visible components that the user can actually fill the fields of.
But for most things you encounter when learning at least you'll never need things like that.

jwenting 1,905 duckman Team Colleague

Please share the non-scriplet way for us uneducated folks.

Any decent book about JSP will teach you to use JSTL and/or JSF instead of scriptlets.

Of course many books you get cheap or find pirated online are old ones from before JSTL even existed, or written by people who don't care about teaching things properly but only want to get rich quick selling books to schools.

jwenting 1,905 duckman Team Colleague

Any company that bombards you with unrequested mail is a company I'm wary of.
Makes me think of spammers...

jwenting 1,905 duckman Team Colleague

How are you going to use those classes if you don't have them?
And to have them they have to be in the ear.

jwenting 1,905 duckman Team Colleague

You can extend JPanel, it's not a final class.

jwenting 1,905 duckman Team Colleague

I waited to buy one until Apple released them in the only colour that's any good: black.
All the others are either too flashy or too dirty, and the iconic white makes you look like a typical "me2" person who bought an iPod just because it's supposedly "kewl" to have one.

Why an iPod (Nano)? After looking at everything available and reading a lot of reviews, it turned out to be the best value for money.
Decent battery life, good form factor, reasonable price.

I don't care one bit about DRM, as I don't give out copies of what I buy to others (and therefore am not bothered by DRM restricting me from doing that).
If others want to have that music, they can buy their own.

jwenting 1,905 duckman Team Colleague

NEVER use JSP scriptlets. They are the single worst part of the system and should never have been introduced.

jwenting 1,905 duckman Team Colleague

if you need to justify your decision not to use the bridge driver, read the documentation that comes with the JDK. It contains an excellent reason.
There are of course many more, but that one alone should be sufficient for anyone.

jwenting 1,905 duckman Team Colleague

you do however need to deploy them as part of a valid web application which DOES require at least a basic web.xml and the correct directory structure.
Tomcat comes with quite good documentation and examples.

jwenting 1,905 duckman Team Colleague

it's homework. Same question pops up on Sun's (and other) forums with clockwork regularity every few months (just about the length of an introductory Java course).
Expect questions about printing a diamond of asterisks in a week or two, when the next group learns about loops.

jwenting 1,905 duckman Team Colleague

start your own threads, kid.
And read some tutorials... What you want is
a) well described
b) inappropriate for doing in Java (unless you're using a database engine that uses Java stored procedures maybe).

jwenting 1,905 duckman Team Colleague

only n00bs think like the OP...

jwenting 1,905 duckman Team Colleague

well actually i am from turkey, so these values change greatly...
i think you can work 40k-60k as a software engineer in turkey.
in europe you can earn way more than that, double may be.
i am not sure about USA.

oh? 60K what would that be, and per what?
If Turkish Lira per month, yah, you can get more in Europe.
If USD per month, forget it (especially as an entry level salary).

For experienced people (5-10 years), expect between 30 and 45K Euro per month (outside London, which pays more because of the extreme cost of living).
For entry level positions, 20-25K at most (I started at something like 12.5K 10 years ago).

jwenting 1,905 duckman Team Colleague

"syntax error <1,1>: unknown symbol: Cout" ;)

jwenting 1,905 duckman Team Colleague

and don't expect you will learn sufficient C++ to become a proficient game programmer form "Thinking in C++".
You'll need a lot more than that.
Add "C++ for Game Programmers" to the list (ISBN 1584502274), and "The C++ Programming Language (3rd Edition)" (ISBN 0201889544) at the very least.
Another book anyone who's serious about software development should read is "Agile Software Development, Principles, Patterns, and Practices" (ISBN 0135974445).

If you get more into it, you may want to get something like "Numerical Recipes in C++", "Physics for Game Programmers", and titles like that. Highly specialised tomes about specific topics.

jwenting 1,905 duckman Team Colleague

Your book is outdated, period.
Those features were introduced into the language several years ago. If you don't use current reference literature, expect to get out of date information.

jwenting 1,905 duckman Team Colleague

Package your enterprise application as an ear file, with the jars in the required directory structure, and it's all taken care of.

Do NOT put everything in the app server's lib directory.

jwenting 1,905 duckman Team Colleague

You really need to read a modern beginner's tutorial on Java and an introductory text on regular expressions if you can't answer those questions.
They're so basic any ultimate beginner's text should explain them.

By indicating you don't know what it is, you indicate you lack even basic knowledge, which just a few quick answers here won't provide (you'll just get stuck on the next question, and have to ask again, while doing some study of your own will give you the entire picture).

jwenting 1,905 duckman Team Colleague

do you have any grasp of how Servlets and JSP work, where what is executed and when?

And there's no need to be so agressive, it's not going to make people more eager to help you.

jwenting 1,905 duckman Team Colleague

if you don't do your homework you are not going to learn the stuff you need to know during your tests well enough to pass them.

Whether homework is taken directly into account or not I think depends on the teacher (or school), it did when I went to school with some teachers giving negative marks for not doing your homework, others just being stricter on grading your tests if you didn't do your homework.

If you're too lazy to do your homework, you should pay the price. And that price is generally a lower grade on your tests because you don't know your stuff.
If kids that don't do their homework still pass their tests there's usually something wrong with those tests.

jwenting 1,905 duckman Team Colleague

has education really gotten so bad over the last decade that EVERY single "student" has only bad teachers?

Somehow I can't believe that, more likely the teachers are just as good but the students have gotten worse (a phenomenon I observed when I was a senior student, and seems to have gotten worse and worse as time went by).

Maybe if you'd actually paid attention in class you'd have learned something...

If you've gotten an assignment to write a game, your teacher will have taught you (or at least attempted to) everything you need to know, or certainly enough that you should be able to figure the rest out for yourself with the help of your books and the library/internet search engines.

John A commented: Agree 100% - joeprogrammer +6
jwenting 1,905 duckman Team Colleague

Without a good businessplan you're never going to get anywhere.
Maybe it's different in India but in the real world you're not going to get any investors (let alone staff) by just saying you want to "make game programs".

Find out if there's an opening in the market where you could make money, write a business plan on how you plan to exploit that opening, with that try to get some bankloans to start a business.
Write some more documents like an initial design, try to find staff willing to risk their life savings working for you on the almost certainty that they'll loose their jobs when you go bankrupt in a few months, get them set up to create the technical specs, etc. etc.
By that time your marketing people should have put a nice package together to confront venture capitalists for investment funds.
You'll need that too to build your hardware and software infrastructure and pay your staff.

jwenting 1,905 duckman Team Colleague

Don't try to force your design into a single layoutmanager.
Layer your layout.
You could for example place a panel in the region of the gridbag that you want those two components to appear, set that to gridlayout, and place the components in the cells of that grid.
These cells can be individually configured to have different alignment properties.

jwenting 1,905 duckman Team Colleague

and on what grounds do you recommend the two IDEs that are considered almost universally to be at the very bottom of the pile when it comes to quality, usability, and everything else except crappiness?

jwenting 1,905 duckman Team Colleague

try something like a search engine.
Or a book on probability theory.
And why don't you want to use the built-in random number generator? That very fact tells me that it IS in fact homework, as every realistic project first tries to find an existing component to do something like that as it saves a lot of time and effort and is far more likely to work correctly than something you write yourself.

jwenting 1,905 duckman Team Colleague

what do you think will happen?
Have you even tried it?

And no, we're not going to read your assignment that you attached as a word document.

If something doesn't work as you think it should, tell us what it does, what it should do, and we may be able to tell you where you made a mistake.

jwenting 1,905 duckman Team Colleague

at least he didn't forget the 'e' in 'help', got to give him credit for that ;)

jwenting 1,905 duckman Team Colleague

Tesla only showed in theory that it should be possible, he didn't have the technology to make it practical.
It's only now, with micro electronics and new materials that it's becoming feasible and economical.
Up until recently it might have been possible but the power requirements of the receiver would have been higher than the transmitted wattage.

jwenting 1,905 duckman Team Colleague

most people code most C# and C++ GUI code by hand as well ;)

And VB isn't programming...

jwenting 1,905 duckman Team Colleague

they call any test an exam now...

there are calls to abolish failing grades because it's "bad for the morale of the kids", instead to tell them they "almost passed" or something like that.

jwenting 1,905 duckman Team Colleague

spam without an attempt to lead you to a place where they either sell you some snake oil or try to steal you credit card details?

Would be the most inefficient spam in history ;)

anyway, an electric toothbrush doesn't transmit electricity (or receive it) through thin air.
It's got a built in rechargeable battery which is charged when you connect it to the base station.

Wireless transmission of power is indeed possible, and has been proposed as a means to make it possible to have solar power stations in space which transmit their generated power to downlink stations on the ground from which it can be distributed onto the powergrid.
But there's this little problem of all those high energy beams of power tearing through the atmosphere. If one were to loose focus you'd have serious problems, it could potentially evaporate everything in its path (at the very least it would be like being hit by a bolt of lightning that just doesn't stop).
Not many people want to live inside a microwave over for some reason...

Low power transmission through wireless grids has also been proposed and is in fact used in many places.
The security gates in shops which raise an alarm if you get near them with tagged items are an early application.
The keycards you only have to hold near a detector for doors to open are another.
They contain RFID chips, which get just …

jwenting 1,905 duckman Team Colleague

You might want to upgrade to a more modern SOAP layer, like Axis 2 or JSWDP 2.1, which are FAR faster than the one you're using.

If the problem is indeed internal in the SOAP layer (and not caused by network latency) that should help.
Mind that this can cause you to have to make changes in your WSDL files, which could be problematic if there are applications already using the services (they'd probably have to regenerate their stubs and be recompiled).

jwenting 1,905 duckman Team Colleague

You don't.
Use a proper architecture and let a servlet handle the actual login (or better yet, have a servlet let some business logic component like an EJB handle it) and just forward the results to the JSP.

It becomes a simple matter of some JDBC code (best hidden behind a layer like Hibernate, iBatis, or Spring JDBC), for which there are many tutorials available.
The JDBC driver documentation will tell you the specific data to input into the system to get a connection to your database (driver class, URI format, etc. etc.).

jwenting 1,905 duckman Team Colleague

Way too little data to make any kind of estimate.
It depends on the size and scope of the application, what you want to new application to do and look like (web app, terminal application, client/server solution, etc. etc.), what mainframe you're thinking of, what database engine(s), etc.

But it likely won't be cheap. In most cases you'd effectively have to start from scratch, using the functional requirements of the existing system as a basis for the initial design.
That way you can also avoid duplicating the inevitable mistakes and crud that have built up over the years of maintaining the old application.
And of course you'd need to build a dataconversion that takes data from all the individual databases running now and consolidates all that into the new mainframe database. That program alone (which will hopefully need to run only once after a few test cycles) can cost several man months to develop (I should know, I've written several of them).

IMO you do NOT want to offshore business critical systems. You need to keep the knowledge about your critical systems in-house so you can always have a reliable pool of people to do maintenance. Those people will be far more motivated to work overtime or come in in the wee little hours or weekends if there is an emergency than some guy or gal in the far east or eastern Europe whose only connection to your company is the name on a sheet …

jwenting 1,905 duckman Team Colleague

In fact most real projects DO code a lot of Swing code by hand, simply because most GUI builders produce such terrible results or results that aren't portable between environments (they put in their own classes which people on the team using other tools won't have, and sometimes are stupidly disallowed from distribution with the application).

And of course, if you don't learn how to do things, you never learn.
OP wants to learn how to write Swing code, but all you tell him is not to bother and use a graphical tool to plug things together.

jwenting 1,905 duckman Team Colleague

that could be it (though I'd expect a more graceful error message were that to happen). But more likely a method in your DLL overwrites some memory belonging to the JVM, causing it to fail, or runs into an infinite loop (you didn't post the entire error message, which might shed more light on things).

jwenting 1,905 duckman Team Colleague

start small, learn the individual technologies and see what their strengths and weaknesses are, then combine the strengths so you aren't bothered by the weaknesses ;)

In reality noone talks about "beans", they're just objects you use to pass data along.
That doesn't mean noone uses them, but they're so prevalent it makes no sense to treate them differently from other things (the BDK is dead and burried for years).

In a professional environment you'd use JSP solely for displaying data provided to those JSPs by servlets via objects set in the request or session. Those JSPs should use JSTL or JSF, no scriptlets at all.

The servlets may call EJBs to perform business logic, themselves doing nothing but forming a layer that translates between the JSP and the EJB and channeling data to the proper places, or they may contain business logic as well (usually delegated to helper classes).

In reality most people don't use raw servlets and EJBs directly, instead using frameworks to put everything together.
Spring is an excellent (and popular) framework.
Struts used to be popular but has pretty much lost its appeal by now (and rightly so).
Hibernate is also much used.

jwenting 1,905 duckman Team Colleague

uh, WHAT do you want?
Your rant makes no sense at all.

jwenting 1,905 duckman Team Colleague

Why not use netbeans GUI builder?

because then you never learn to do it yourself, let alone do it properly.

jwenting 1,905 duckman Team Colleague

and no, it's NOT urgent.
And we don't know what "ecery" means.

jwenting 1,905 duckman Team Colleague

a problem in your native library is the most likely cause.

jwenting 1,905 duckman Team Colleague

no, endl should be the standard way to do things.
\n is not portable, it's a throwback to C.

jwenting 1,905 duckman Team Colleague

those idiots still at it?
They've been saying at least once a year for the last decade that humanity (meaning the USA) is on the brink of destroying the world.

They're a bunch of far left loonies, noone but the equally far left press takes them seriously.

jwenting 1,905 duckman Team Colleague

yes it's possible and no we're not going to tell you how to do it as it is (as you've already been told) extremely bad to do so.

It is in fact one of the reasons PHP is frowned upon by people who are serious about writing software rather than quickly hacking something together in the hope noone will ever have to change it.

jwenting 1,905 duckman Team Colleague

and no, you won't be able to send an email using the server entered by the user of the page.
Any mailserver worth anything at all will block any attempt by anyone who's not on the same domain (and/or has proper credentials) to send anything.

And no, I'm not going to help you do that in a JSP for the simple reason you shouldn't.
Use a servlet.

jwenting 1,905 duckman Team Colleague

jsp:setProperty does not set the value in the bean, it rather sets a bean as a variable that can be accessed from scriptlet code on the JSP.

Completely deprecated with the introduction of JSTL and now JSF.

jwenting 1,905 duckman Team Colleague

YUGH!!!!!!

You don't properly close your database resource, you use String concatenation all over the place, you have massive scriptlets in a JSP, you place business logic in a JSP, you don't use code tags.

And you don't seem to understand what you're doing.

Of course it stores all null values when you call the page as those request parameters won't have been set.
And most likely the error on subsequent calls is a primary key violation from trying to insert another null value (I guess you declared username to be unique).

jwenting 1,905 duckman Team Colleague

Hotspot is a technology employed by the Sun JVMs.

Client and server VMs have different optimisations. Generally the server VM will be faster but at the expense of using more memory.