jwenting 1,905 duckman Team Colleague

If you don't even know how to use your classpath you shouldn't be using an IDE at all.
For an IDE, you normally set the included libraries for a project in the project options.
RTFM about how to do that.
As to Netbeans, scrap that piece of junk.

jwenting 1,905 duckman Team Colleague

The Sun compiler is the ONLY official one for the language.
There are others that are certified to be correct but the Sun package (which you claim doesn't work...) is the standard.

Anything that doesn't compile with that should not compile with anything.

jwenting 1,905 duckman Team Colleague

Formal education is invaluable.
Just picking up some source you don't know the first thing about whether it's well designed and programmed or not and thinking you can learn the language from that is just silly, it won't work.

Learning from a GOOD book can work, IF you can bring the discipline to do it properly and IF you can recognise which is the GOOD book (rather than the cheap book that looks nice). Problem is that unless you have that formal education and/or a lot of experience you won't know how to recognise a good book and if you do you're unlikely to be interested in beginners' books...

jwenting 1,905 duckman Team Colleague

Correct. Buy Head First Java and work your way through that.
The only thing which gets close in quality is the official Sun tutorial.

jwenting 1,905 duckman Team Colleague

Java will initialise all elements of an array to null when you create the array itself.

Your Details (ALWAYS, ALWAYS, ALWAYS capitalise classnames) class should have a public setName(String name) method.
You should indeed also initialise the array elements yourself.

jwenting 1,905 duckman Team Colleague

please don't do peoples' homework for them. It prevents them from learning and turns them into lazy bastards who cause professionals to have to work overtime while they themselves lounge in front of the television...

jwenting 1,905 duckman Team Colleague

Runnable is used in multithreading.
The run() method is used by a Thread instance when the thread is running. You never call it directly!

jwenting 1,905 duckman Team Colleague

So, you've laid out your entire algorithm.

Now all YOU have to do is translate that to Java. Noone here is going to do your homework for you, but if you get stuck after making a good start we'll be happy to give you a hand in completing it.

jwenting 1,905 duckman Team Colleague

yes you need a loop.

jwenting 1,905 duckman Team Colleague

get another school, one that uses something that's remotely modern.

jwenting 1,905 duckman Team Colleague

Unless myMethod() is static it can only be called on an instance of the class it is defined in.

jwenting 1,905 duckman Team Colleague

KEY_LOCATION_LEFT (and RIGHT) are only applicable if there's more than one key for the normal key event (VK_ ).
For example the Ctrl keys.
If you press the left Ctrl key, you will get VK_CONTROL and KEY_LOCATION_LEFT both to indicate you pressed the left Ctrl key.
If you press the right Alt key, you get VK_ALT and KEY_LOCATION_RIGHT.

If you press the - key on your numeric keypad you get VK_MINUS and KEY_LOCATION_NUMPAD, if you press - on the main keyboard you get VK_MINUS and (I think) KEY_LOCATION_STANDARD
STANDARD just means there's no special location to pass (so no RIGHT, LEFT, or NUMPAD). I'm not certain what happens if there's only 1 key for a given code, you'll either get STANDARD or UNKNOWN (as the definition of UNKNOWN talks about "not known or irrelevant").

jwenting 1,905 duckman Team Colleague

This also posted in the spyware forum but as there's people not going there and this is serious enough to take notice:

A serious security leak has been discovered in various version of Norton Antivirus.
http://xforce.iss.net/xforce/alerts/id/187

This allows anyone with the right skills to take total control over your computer.
All users should install the patch from Symantec ASAP or switch to another product.

jwenting 1,905 duckman Team Colleague

nowhere. It's well worth the money. Once you're through with it it makes a fine paperweight, or you can use it to replace that pack of paper you're using to make your screen stand taller :)

jwenting 1,905 duckman Team Colleague

And the crucial question: do you have permission from your boss to pilfer his customer data?
I'd think you're trying to steal from your boss here, that data is not yours for the taking without permission (which would require permission from each individual customer in many countries).
And if you do have permission, your boss likely has means to export the data.

jwenting 1,905 duckman Team Colleague

Given the transfer speed you'd need an hour or more to upload that gigabyte even on a 2MB SDSL connection.
Just buy a 1GB flashdrive, they're dirtcheap and a lot faster.
Your ISP will love you, which may mean no disconnects due to going over your datalimit :)

And if you think you'd use that to swap pirated stuff with your friends around the world, that's illegal (and without doubt a violation of your GMail TOS)

jwenting 1,905 duckman Team Colleague

that all depends on the environment you're working in...

In javamail you could do something like message.setContent(content, "text/html");

jwenting 1,905 duckman Team Colleague

comment out the line, save and compile, uncomment.
Backspace over the period and retype, see if that clears it.

Sometimes it doesn't see that you're at work on the line still and (of course, as it's incomplete) reports a compiler error on it which prevents codeinsight from launching.
The procedure outlined above usually does the trick.

Of course it is possible that you actually have a typo in your own code, are you certain the form is indeed called form1 (lowercase f) for example?

P.S. there's a newer version available here: http://www.borland.com/products/downloads/download_cbuilderx.html C+ Builder 6 is an old product (plus the personal version of CBuilderX is I believe free of charge instead of a trial).

jwenting 1,905 duckman Team Colleague

Win2K does not itself support CD burning as does XP.
You need to install the CD burning software that came with your drive (or purchase another package elsewhere).

jwenting 1,905 duckman Team Colleague

maybe if you were to display a bit more maturity and at least attempt to speak normal, syntactically correct English, you'd be able to understand better what others try to communicate to you (plus those others would better understand what you try to communicate to them).

Just playing dumb isn't going to help you...

jwenting 1,905 duckman Team Colleague

no, applets aren't normally allowed to access anything on the client machine.

Signed applets can, IF the user allows them (which I personally wouldn't unless the signing authority was a well known one and even then only if the applet ran on a site I implicitly trust and the applet is a required part of the user experience on that site).
Effectively what this boils down to is that you should not use a signed applet unless you're in an intranet environment.

jwenting 1,905 duckman Team Colleague

I'm a bookworm.
Get yourself this: http://www.amazon.com/exec/obidos/ASIN/0072226846
Even if you don't plan the certification it's a great resource on all the nitty gritty details of the language which you never thought you wanted to know ;)

jwenting 1,905 duckman Team Colleague

there is a possibility of an InterruptedException (depending on where it was raised etc.) causing a lock to break.

I'd have to look up the exact scenarios, they're rather obscure but I should know them (still need to solidly revise that part of my exam prep book ;) ).

jwenting 1,905 duckman Team Colleague

remove the = sign in your -cp=..... parameter.

jwenting 1,905 duckman Team Colleague

Several possibilities come to mind:
1) your domain name registration expired, causing the DNS records to be lost
2) your hosting contract expired, causing the hosting company to take the site offline
3) your server is not running (maybe it crashed and noone noticed? I've seen it happen)
4) there's something wrong with the DNS records causing them to point to an incorrect location
5) someone broke into your server and took the site offline for some reason.

jwenting 1,905 duckman Team Colleague

If you get the exception when trying to write the font, it seems like the getFont() method in JTable somehow causes an attempt to repaint the user interface with incorrect settings.

It may be good to check out the official bug database and/or dive deep into the sourcecode for Swing and AWT.

jwenting 1,905 duckman Team Colleague

no, the executeUpdate threw an SQLException.
If there's no more detailed information given, you got to hope your database server has a log somewhere.

jwenting 1,905 duckman Team Colleague

You can pass a Runnable to a Thread.
Something like this will work

// rest of your code ...
public static void main(String[] args) {
  test t = new test();
  class R1 implements Runnable  {
    test tt;
    public R1(test t) {tt=t;}
    public void run() {tt.test1();}
  }
  class R2 implements Runnable  {
    test tt;
    public R2(test t) {tt=t;}
    public void run() {tt.test2();}
  }
  class R3 implements Runnable  {
    test tt;
    public R3(test t) {tt=t;}
    public void run() {tt.test3();}
  }
  new Thread(new R1()).start();
  new Thread(new R2()).start();
  new Thread(new R3()).start();
}

There are more elegant solutions using the reflection API.

jwenting 1,905 duckman Team Colleague

See you soon in the virus and trojan forums when you come crying about having been compromised by something that SP2 fixes, looser (or luzer as you'll probably understand better).

jwenting 1,905 duckman Team Colleague

Say after me: you can not access hardware on the client machine from a serverside application or script.

You CAN print from your serverside application to any printer which is attached to the server (if PHP supports that...), but never to the client.

jwenting 1,905 duckman Team Colleague

there is no createStatement() method taking a String...

What's the returnvalue you get from executeUpdate()? That's the number of records the database reports inserted.

If it's 1 and afterwards you don't see them appearing, autocommit may be off on the database.
Either do an explicit commit or set autocommit to on.

jwenting 1,905 duckman Team Colleague

Well, what's stopping you?
You want to write it, so I guess you're not asking us to do it for you?

jwenting 1,905 duckman Team Colleague

Virusses don't cause hardware to fail.
My best informed guess would be you have either a bad cable (maybe it's become partially disconnected?), your powersupply isn't up to the load (you say it can handle it for a while until your machine starts to get hot, this might be because the powersupply is critical and starts to fail when it needs to run more fans), or (most seriously) one of your harddisk controllers is dead or nearly so.

Try disconnecting one of the drives and reseating the IDE connector on the remaining one.
If that works OK and the drive stays online, bring the other one back and see what happens.

jwenting 1,905 duckman Team Colleague

No, that compares two Strings. Here the problem is to detect whether a single word is repeated several times inside a single String.

jwenting 1,905 duckman Team Colleague

Are you getting any errors?
Unless you have a DSN named exactly the same as the table you're trying to update that may be your problem.

Also remember that (unlike SQL standard...) MSAccess I think uses case sensitive table and field names.
The most correct form of the insert statement would also include the field names in the statement to ensure that they're in the order you want.
Furthermore you may or may not need to add a semicolon to the SQL statement. Officially it shouldn't be needed but some drivers and databases aren't as nice as others :)

So your SQL should be INSERT INTO Coffeebreak (Name, ID_NUM, Pay) VALUES ('Bob', 24, 23)

jwenting 1,905 duckman Team Colleague

String has a split function that's more efficient than StringTokenizer.
But for your problem take a look at regular expressions, they were invented for things like that.
There's a set of functions "indexOf" in String which you can use to look for the starting index of a substring in a string.

jwenting 1,905 duckman Team Colleague

mode 13 hex ONLY works under DOS in 16 bit mode. It cannot be entered in Windows in any mode.

jwenting 1,905 duckman Team Colleague

the "featured threads" section could be less prominent. I find myself mostly ignoring it, just scrolling past it or using the sidebar directly to get to the forum I want.

jwenting 1,905 duckman Team Colleague

You insert looks right.
For remove you should really make a small drawing on paper on what you need to do.
Find the record to remove, and set the next of the record before it to the record next of the record you want to remove is pointing to.
That's all.
And oh, do remember to pass back a reference to an item still in the list from the remove function. Else the program using the list might loose the list if you remove the point where the program hooks into the list, which would have you effectively delete the entire list except the item you want to remove from it.

In a circular linked list it's impossible to find items based on an index. After all, there is no starting point!
You could give each item an index number and loop through the list from some point (you need to keep a reference to something in the list after all somewhere or the whole thing gets impossible to reach).

jwenting 1,905 duckman Team Colleague

A grid layout will give each element in it the exact same horizontal and vertical size.
If you don't want that (for example you want some controls to take up less space, think of a group of very short labels) you will have to use another layout manager that offers more flexibility like GridBagLayout.
Those are of course harder to use because of that greater flexibility.

You can still not control size directly but you can now say that your slider can run across multiple columns.

jwenting 1,905 duckman Team Colleague

yes you do. Your lock doesn't get released until after you leave the synchronised code (and sometimes not even then, but those are abnormal situations).
As you are calling your method from within synchronised code your lock gets retained.

jwenting 1,905 duckman Team Colleague

a P.S.: be careful with indentation and braces.
Having it poorly done (like in your code, with braces not lined up and indenting with both tabs and spaces interspersed) can make code a lot harder to read.
I had to reformat your code to be able to quickly see how it is structured.

jwenting 1,905 duckman Team Colleague
public int countLiveNeighbors (int i, int j)
    {
    	int limit = 21 - 1;
    	int count = 0;
    	for (int ii = i - 1; ii <= i + 1; ii++)
    	{
      		for (int jj = j - 1; jj <= j + 1; jj++)
      		{
			if (ii == i && jj == j) continue;
			if (ii < 0 || ii > limit) continue;
			if (jj < 0 || jj > limit) continue;
			if (CellIsAlive (ii, jj) == true) count++;
      		}
    	}
    	return count;
    }

looks correct.
Your actual problem is over here:

for (int i = 0; i < 21; i++)
      {	
        	for (int j = 0; j < 21; j++)
        	{
          		numberOfNeighbors = countLiveNeighbors(i, j);
          		if (CellIsAlive(i, j))
	 	{
	    		if (numberOfNeighbors == 2 || numberOfNeighbors == 3)
	      			nextBoard[i][j] = true;
	  	}
	  	else // cell is dead
	    		if (numberOfNeighbors != 3 || numberOfNeighbors != 2)
	     			nextBoard[i][j] = false;

        	}
}

This doesn't take into account that cells can come alive if they're dead.
While you ARE taking celldeath into account on life cells, you're not taking cellbirth into account therefore your simulation will either die quickly or reach a single stable and unchanging state.

change

else // cell is dead
	    		if (numberOfNeighbors != 3 || numberOfNeighbors != 2)
	     			nextBoard[i][j] = false;

to take that condition into account.
Remember that the default values for an array of booleans are all false, so setting them to false is not needed.
But explicitly setting …

jwenting 1,905 duckman Team Colleague

Of course to make that possible you first have to ensure your actual data is decoupled from your TableModel!

That's however easy to achieve using composition, effectively using the TableModel as a Decorator or Adapter pattern around the data.

jwenting 1,905 duckman Team Colleague

My experience with Swing is rather limited and mainly theoretical.
I'm only now really starting to read up on it in preparation for the SCJD certification I'm planning to work towards over the next half year or so.

I guess you have a class derived from AbstractTableModel which you use to display your data?
You would have to make another class derived from AbstractTableModel which displays the same data in a different way.
That would enable you to combine the display of several columns into one.
To merge rows together you'd do something similar I guess.

You may need to explicitly tell the application to redraw the JTable, you'd need to try that.

jwenting 1,905 duckman Team Colleague

You'd have to replace the TableModel with a different one I think.
Or maybe just changing the underlying datastructures holding the header and row information on the fly and notifying the table would do the trick.

jwenting 1,905 duckman Team Colleague

Controls will always take up all available room in a layout manager. That's guaranteed by the AWT API (on which Swing builds).
So your answer is no, you can't prevent the sliders from changing their size.

jwenting 1,905 duckman Team Colleague

For some reason becuase reason it doesnt seem to be working

huh? What are you trying to say here?

What isn't working and why isn't it working.
What is it doing and what is it supposed to be doing?

jwenting 1,905 duckman Team Colleague

lol, i meant the harder way I guess not the best. Is there a way of telling where a period should be by using some type of regular expression or string method?

Also, is this the best way for capitalizing the first Character in a string?

String s = "im a non capitalized sentence!";
char c;
c = s.charAt(0);
Character.toUpperCase(c)
s = s.replaceFirst(s.charAt(0),c)

Ah, you want a harder way?

String theString = "Hello World";
String theNewString = ((new StringBuffer(theString)).append(".")).toString();

A more efficient way to capitalise your first character would be to turn your String into a char array, capitalise element 0 in that, and then turn it back into a String.
Saves a few string operations.

String theString = "hello world";
char[] theArray = theString.toCharArray();
theArray[0] = Character.toUpperCase(theArray[0]);
String theOtherString = new String(theArray);
jwenting 1,905 duckman Team Colleague

no, there's no need.

String literals aren't affected by garbage collection, and anyway calling System.gc() isn't guaranteed to do anything :)

The only reason to use it is to hint the JVM that now would be a nice time to clear up memory before you start a resource intensive operation (either CPU or RAM), but otherwise it's pretty useless.