jwenting 1,905 duckman Team Colleague

well, it's a rather simple means. Determining in advance what the rules are and finding a simple calculation will do is far easier than trying all possible options and seeing if they fit and coming to the same result ;)
Can't get faster too than that in this case.

jwenting 1,905 duckman Team Colleague

Good thing you didn't ask what I have used over time, or I'd have to wear out my mouse ;)

jwenting 1,905 duckman Team Colleague

Corporate licensing schemes depend largely on the company.
We have one where people are allowed to use certain programs at home on a company license.
Previous company we could get pretty much anything on the MSDN, being an MSP made that possible (though I've a feeling now that they may have been a bit more free in handing out licenses than was really allowed).

jwenting 1,905 duckman Team Colleague

You can't execute Java code from a Javascript function directly.
All you can do is have the Javascript generate an Http request to a servlet which can execute the Java code for you and optionally return something which your Javascript could then use to generate content for your page.

It is tricky, but it can be done. Can't tell you how we solved it as the code is not mine to give away.

jwenting 1,905 duckman Team Colleague

yes, I check whether the pattern matches the string at all, not how many different matches there are.
That would mean taking the total number of permutations of the parts of input defined by the wildcards.
With 1 character that's 1 permutation, with 2 you're up to 2, with 3 it's 6, so with n you're up to n! options.
With long input that can quickly get very large indeed.

jwenting 1,905 duckman Team Colleague

Unless the matrix is square you won't be able to handle that, as arrays are immutable in size.

| 1 2 3 |
| 4 5 6 |
== [[1,2,3],[4,5,6]]

Can't be put in the same array as

| 1 4 |
| 2 5 |
| 3 6 |
== [[1,4],[2,5],[3,6]]

You're going to need some temporary storage anyway if you could get away with it (which you can with square matrices).
dest[i,j] = org[j,i] For each i,j;
Therefore you're going to have to store the value you're replacing until you've a place to put it (which is easy as you can quite readily figure out as you're effectively swapping valued in that scenario).

jwenting 1,905 duckman Team Colleague

probably the typical "it's not Windows so it must be good" ;)

jwenting 1,905 duckman Team Colleague

That's not part of the POP3 protocol.

jwenting 1,905 duckman Team Colleague

What you get depends on what you want to do with it now and in the future.
I've pondered getting a Mac on the side myself for image processing and just to have one ;) but thought why bother.
PC works well enough for that for my purposes and I need it for other things as well (development work, testing, and I'm active in the MS Flightsim community) and have a big investment in Windows software already.

I'm actually more likely to get a SparcStation (Sun Solaris) now than a Mac, and use that specifically for Java development.

But first a new PC at some point, maybe spend my vacation money this year on a new nice Alienware ;)

jwenting 1,905 duckman Team Colleague

say your pattern is something like "AB*cd*F*", you'd start by checking whether the string begins with "AB".
If it does, check whether in the substring you get when removing AB from the front of the data you have "cd" at some point.
If it does, remove everything up to and including that "cd" and check for an "F" in the rest.
If that's found, return true. If at any point indexOf() returns -1 (not found) return false.

Something like

public boolean matcher(String data, String[] pattern, boolean startsWith) {
	int idx = data.indexOf(pattern[0]);
	if (idx == -1 || (idx > 0 && startsWith)) {
		return false;
	}
	String newdata = data.substring(idx);
	String[] newPat = new String[pattern.length()-1];
	for (int i=1; i<pattern.length; i++) {
		newPat[i-1] = pattern[i];
	}
	return matcher(newdata, newPat, false);
}

should do the trick.
Mind I've not tested this, and I've excluded the needed bounds checking for brevity.

jwenting 1,905 duckman Team Colleague

You've not done a lot have you?
Any JDBC tutorial or book will tell you how to do your thing.

jwenting 1,905 duckman Team Colleague

shoot the project lead for his decision making ;)

indexOf will tell you where a substring resides (if anywhere). Call repeatedly on the parts of the string that aren't wildcards and check whether the returned values are in order.
Should be quite efficient, leaving the biggest trick the splitting of the pattern into chunks to feed into your search function.

jwenting 1,905 duckman Team Colleague

So it's your homework indeed and we're not here to do it for you.
There's ample documentation about how to write javadoc online and included with the JDK documentation, read it.
Or buy a book about the subject and read that.

jwenting 1,905 duckman Team Colleague

JSP is part of the JEE (J2EE) platform.
A JSP page is equivalent to an ASP page though far nicer, especially if you (as you should) use JSTL or JSF (yah, more acronyms!).
JBoss is simply a J2EE compatible application server, overkill for a JSP application.
Javabeans are equivalent to ActiveX components in ASP, acting as DTOs, DAOs, etc.

Get O'Reilly's JSP book to get yourself started, or HeadFirst Servlets and JSP.

jwenting 1,905 duckman Team Colleague

why can't you use regexp? It's the natural choice.
If not that you're going to have to use some form of system using indexOf() and keeping track of all the numbers that's returning from repeated calls.
Could probably be written quite efficiently using recursion.

jwenting 1,905 duckman Team Colleague

Thread.sleep() comes to mind.

jwenting 1,905 duckman Team Colleague

A JScrollPane will not be in any way visible itself unless and until there is a need to display the scrollbars (or you've done something to explicitly show those always).

jwenting 1,905 duckman Team Colleague

The total data size is a good number, or take an estimate of the total time needed.
How often you update is up to you, after each Xth read operation would be good (where X is a number you decide on based on performance).
Updating after every read might cause too great a performance hit but you could start with that and then reduce the update frequency until everything seems to perform nicely and still not be jerky.

jwenting 1,905 duckman Team Colleague

The Sun tutorials are a good place to start, they're meant for people with no prior knowledge (if you start from the beginning) ;)

Or better yet get yourself a Good Book like HeadFirst Java (2nd edition) by Kathy Sierra and Bert Bates.

jwenting 1,905 duckman Team Colleague

The regexp package is part of the core JRE distribution since 1.4.0 so there is no additional installation or download required.

jwenting 1,905 duckman Team Colleague

Write a parser to turn the input into a regular expression and run that on the dataset.

jwenting 1,905 duckman Team Colleague

DX and OpenGL aren't mutually exclusive, both have their use.

jwenting 1,905 duckman Team Colleague

you will need to supply the runtime components (jarfiles) with your application.

jwenting 1,905 duckman Team Colleague

I don't get any...

jwenting 1,905 duckman Team Colleague

Not sure how and if you can set a custom icon on a jarfile. You'll have to search for that.
The Java plugin is the browser plugin which is (usually) installed as part of the installation of the Java runtime environment (and uses the JRE internally).

jwenting 1,905 duckman Team Colleague

Used to have one. Didn't replace it when it broke as I hardly ever used it.

They DID however bring me a nice job writing software for them, so they can be useful :)
The customer loves the productivity gain they got from giving their field force PDAs with custom software for their timekeeping and accounting/billing.
No longer do the off-site staff have to drive to the main office every morning to pick up their work orders, if they have the required spare parts in their trucks they can drive directly from their homes to the worksite now saving time and gas.

jwenting 1,905 duckman Team Colleague

That's easy to do in Assembly. There's a single command to shut down the system, issue that and your machine will stop dead in its tracks ;)
I leave it up to you to look it up in a manual as I don't have an Asm manual with me.

jwenting 1,905 duckman Team Colleague

Swing superceded AWT, it's far more powerful, faster (if programmed properly), and looks better.

There are several third party libraries as well, most well known of them being SWT.
Problem with most of them is that they're incomplete, not platform independent, yield poor performance, and/or are poorly tested.

jwenting 1,905 duckman Team Colleague

The first 2 commands aren't needed.
You could have just created the manifest file yourself, everything in it except that single line is just comments and not needed.

jwenting 1,905 duckman Team Colleague

the double quotes are supposed to be there.
ALL attributes in html and xml files should always be quoted.

jwenting 1,905 duckman Team Colleague

complicated? A single line in a config file (which is what the manifest is) is complicated?

jwenting 1,905 duckman Team Colleague

yes, the user only has to accept the certificate.
For you it's more involved as you have to create it.
There's a tool included to make test certificates but for real use you're going to need an external party like Thawte which will cost money (I'd not trust a self-signed applet...).

jwenting 1,905 duckman Team Colleague

wouldn't current company define need and opportunity? ;)

jwenting 1,905 duckman Team Colleague

There's tons of books about the subject but nothing's better than some professional training if at all possible followed by some serious coaching by an experienced architect/analyst.

Try Sun's OO-226 course, it's excellent. I'm sure there are others but that's the one I have experience with and it taught me a lot.

jwenting 1,905 duckman Team Colleague

Java has pretty decent OpenGL libraries available, search for those.
Or you can go straight for painting things on a canvas using Java2D but why take the hard way?

jwenting 1,905 duckman Team Colleague

When you use the appletviewer you're not restricted by the security limitations imposed on applets.
When you run it in a browser you are so restricted.

One of those restrictions is the inability to access any data that doesn't reside in the same location as the applet itself (which includes locations on your own harddisk when running it from there which are outside the classpath of the applet).

Yes, you do need a signed applet with a valid security certificate that is authorised by your users.

jwenting 1,905 duckman Team Colleague

whenever ;)
Day, night, both, neither, depending on need and opportunity ;)

jwenting 1,905 duckman Team Colleague

I'd say there's a big distinction between the webmaster, the web developer, the content provider, the editor, and all other roles for most non-trivial websites.
As the site grows the webmaster will more and more have a supervisory role as a manager with business responsibility rather than being actively involved in the development process itself.

jwenting 1,905 duckman Team Colleague

I hope you're sending the form to a servlet.
If so, indeed simply get the values using request.getParameter(), and send them to the database using whatever mechanism you decided to use for that (Hibernate, JDO, direct JDBC, or whatever).

jwenting 1,905 duckman Team Colleague

have you tried setting the background of the JScrollPane? Might require a custom JScrollPane descendent to draw it, I never attempted anything of the kind.

jwenting 1,905 duckman Team Colleague

Your program is not responding because it's locked in a loop waiting for something to happen.
On the other side the exact same thing is happening, preventing that instance from sending a response.

Read up on network programming and multithreading.

jwenting 1,905 duckman Team Colleague

No different than you create any piece of software.
Start by gathering requirements, than write the use cases, expand those into a full functional design.
From that work out the technical requirements and the technical design.

Then start implementing that technical design, test it to the functional requirements, package it, and ship it.

jwenting 1,905 duckman Team Colleague

You should be able to defer the code from what I wrote.
It's simple really.

List map = new ArrayList();
// loop through files
while (files.hasNext()) {
  map.add(files.next());
}

or something like that.
That's of course not complete code but should serve as a starting point ;)

jwenting 1,905 duckman Team Colleague

In Java everything (except primitives) is a class.
A Java program is a collection of classes, one of which has a main method (or rather an entry point for a JVM, which is usually a main method).
Of course for many small programs (especially the kind you're likely writing as a student) there will be only one class.

Each class will have a constructor (even if you don't write one, in which case one will be provided by the compiler), which replaces the typical method provided with many C structs to initialise them.

You're really going to have to get to grips with OO principles. It's a rough road but a worthwhile one.

jwenting 1,905 duckman Team Colleague

If you'd tried noone's mock you, but as it is you're just a whining little kid asking to get his homework done for him.
That's not just stupid, it's against the rules for this forum.

jwenting 1,905 duckman Team Colleague

Merry Christmas to you too, and a good new year.

jwenting 1,905 duckman Team Colleague

read the filenames into a List, generate a sequence of random numbers, et voila.

jwenting 1,905 duckman Team Colleague

Do your own homework kid.

If you don't know what a constructor is, read some tutorials or maybe it's time to open those course instructions for a change and maybe pay attention in class instead of browsing nekkid women on the web.

jwenting 1,905 duckman Team Colleague

if you have an RMI server running and registered with the RMI registry the client should be able to find it unless there's a firewall blocking it (which should never happen when both are on the same machine).

jwenting 1,905 duckman Team Colleague

learn to do things outside your IDE.
RMI works just fine if you program it correctly, so should CORBA (if you have all the correct services running etc. etc.).