Forum: Java Sep 7th, 2008 |
| Replies: 6 Views: 1,764 guess what, you never fill the array from which the dropdown is filled... |
Forum: Java Sep 7th, 2008 |
| Replies: 6 Views: 1,764 What exactly "isn't happening"?
Check the generated html. Is the data there but isn't it shown?
If it is your html generation is at fault. If it isn't, you are almost certainly having an error in a... |
Forum: Java Aug 28th, 2008 |
| Replies: 4 Views: 1,266 they shouldn't, but that doesn't mean they don't...
It all depends on how the website was programmed. |
Forum: Java Aug 17th, 2008 |
| Replies: 7 Views: 1,340 you never add the menubar to the window... |
Forum: Java Aug 16th, 2008 |
| Replies: 5 Views: 1,236 The garbage collector is very smart. There's hardly ever a need to use the provided commands to SUGGEST it runs.
If you think you need to, you almost certainly have an error somewhere in your code... |
Forum: Java Jun 21st, 2008 |
| Replies: 12 Views: 2,094 That's his worst problem, but not the immediate one.
The immediate one is failing to take into consideration the requirement to add the application classes to the classpath he uses to attempt to run... |
Forum: Java Jun 21st, 2008 |
| Replies: 4 Views: 871 VB is a mess. In fact anything that mixes display logic with business logic is a mess...
At least in Java you will be eased into doing things the right way, in VB that's almost impossible. |
Forum: Java Jun 20th, 2008 |
| Replies: 4 Views: 871 write a thesis about why it's irresponsible to use VB for serious software development, and submit that with a C# application :)
There is a pretty decent book "C# for Java programmers" that... |
Forum: Java Jun 10th, 2008 |
| Replies: 4 Views: 515 It's also no longer supported, and I think not even Y2K compliant in places.
There is NO reason to use it. |
Forum: Java May 18th, 2008 |
| Replies: 12 Views: 1,645 use a regular expression to search for any unwanted characters and return an error if any are found. |
Forum: Java May 18th, 2008 |
| Replies: 12 Views: 1,645 do your own input validation. Relying on Exceptions being thrown on bad input is usually not a good idea. |
Forum: Java May 12th, 2008 |
| Replies: 8 Views: 1,558 set up a KeyListener to it which refuses to allow anything you don't want. |
Forum: Java May 12th, 2008 |
| Replies: 7 Views: 4,684 no, we're not going to do your homework for you, thread hijacking homework kiddo. |
Forum: Java May 1st, 2008 |
| Replies: 4 Views: 1,869 Learn to interpret compiler errors, if you don't you'll never succeed.
And no, we're not going to guess what "error" you're getting. You tell us and we MAY tell you what it means. |
Forum: Java Apr 27th, 2008 |
| Replies: 7 Views: 856 the input will always be a String, as all input from the screen is read as Strings.
And as a single method call will reverse a String, this is really no problem at all :) |
Forum: Java Apr 19th, 2008 |
| Replies: 4 Views: 1,592 nope. It was all that needed to be said. |
Forum: Java Apr 19th, 2008 |
| Replies: 4 Views: 1,592 |
Forum: Java Apr 19th, 2008 |
| Replies: 7 Views: 4,068 if you programmed it correctly it won't be "going all over the place" but following a highly predictable path dictated by it's starting position and energy vector.
So you change those and it will... |
Forum: Java Apr 16th, 2008 |
| Replies: 8 Views: 3,808 if you're really spent 2 days searching for an answer to this and haven't found it you're extremely incompetent.
This question must have been asked by kids who don't know what they're doing, how to... |
Forum: Java Apr 13th, 2008 |
| Replies: 3 Views: 578 You might want to learn basic Java syntax before you start messing with network programming.
The Java tutorial (which can be found on Sun's Java site) explains things nicely, or get yourself an... |
Forum: Java Apr 11th, 2008 |
| Replies: 6 Views: 668 tell us what you think is wrong, and we may tell you whether you're right. |
Forum: Java Apr 6th, 2008 |
| Replies: 6 Views: 1,084 In fact every code you write is executed in a thread.
So your code is ALWAYS multithreaded, with threads internal to the JVM running next to it (things like the garbage collector, class loader,... |
Forum: Java Apr 6th, 2008 |
| Replies: 6 Views: 1,084 Internally, the JVM has a thread scheduler.
How it works depends on the hardware and operating system architecture it's implemented on (so may differ) but generally it will be preemptive. |
Forum: Java Mar 20th, 2008 |
| Replies: 11 Views: 1,149 not declaring them is the ultimate in abstraction, but I'm sure your course material doesn't mean that when it talks about abstract classes and does mention what they actually are. |
Forum: Java Mar 16th, 2008 |
| Replies: 3 Views: 1,825 public void actionPerformed(ActionEvent e) {
JFileChooser fileChooser = new JFileChooser(".");
int status = fileChooser.showOpenDialog(screen);
... |
Forum: Java Mar 15th, 2008 |
| Replies: 1 Views: 696 nothing, classes aren't synchronised. |
Forum: Java Mar 15th, 2008 |
| Replies: 8 Views: 923 yes, anything to which there are no more references will be deleted by the garbage collector at some point. No need to keep track of that yourself and do things like malloc, calloc, and realloc. |
Forum: Java Mar 15th, 2008 |
| Replies: 8 Views: 923 and references are always passed by value (unlike pointers in C which can be passed by reference) and cannot be manipulated by something like pointer arithmetic. |
Forum: Java Mar 14th, 2008 |
| Replies: 6 Views: 617 1) read the manual.
2) ditch Notbeans after deciding on reading the manual that it's no better than Eclipse.
3) buy IntelliJ and use the import wizard to import your entire Eclipse project. |
Forum: Java Mar 12th, 2008 |
| Replies: 5 Views: 693 that would be one resultset per statement, not per connection. |
Forum: Java Mar 8th, 2008 |
| Replies: 15 Views: 1,595 no, but if you want to send email apart from through some web interface you will need to have access to some SMTP server which will authenticate you either by your network address or by some other... |
Forum: Java Mar 8th, 2008 |
| Replies: 15 Views: 1,595 so you have no smtp server that will allow you to connect to it and serve as your spam relay.
How surprising. |
Forum: Java Mar 8th, 2008 |
| Replies: 15 Views: 1,595 Yahoo (as does any self respecting mailserver who doesn't want to be blocked as a spam relay by the entire world) doesn't allow connections by just about anyone.
And a kid from trying to write his... |
Forum: Java Mar 7th, 2008 |
| Replies: 17 Views: 1,907 Learn to read and interpret error messages, and learn how to fix them.
We're NOT here to do all your work for you, not now and certainly not forever. |
Forum: Java Mar 2nd, 2008 |
| Replies: 7 Views: 11,531 |
Forum: Java Feb 22nd, 2008 |
| Replies: 7 Views: 848 no, it's not correct. Read a manual for your operating system. |
Forum: Java Feb 22nd, 2008 |
| Replies: 7 Views: 848 classpath problem. Only thing that can lead to that error. |
Forum: Java Feb 20th, 2008 |
| Replies: 13 Views: 1,335 MissingCodeTagError, redo from start. |
Forum: Java Feb 16th, 2008 |
| Replies: 32 Views: 3,404 at first glance you probably have some missing braces somewhere. Everything points to some things being defined in the wrong scope, causing it to not be visible where you think it is. |
Forum: Java Feb 16th, 2008 |
| Replies: 12 Views: 1,442 private void diceRoll() {} |