Forum: Java May 11th, 2009 |
| Replies: 15 Views: 636 Ok, so you were able to post your homework, but how about explaining what the problem is you're having? |
Forum: Java Sep 21st, 2008 |
| Replies: 2 Views: 643 I would do something like this:
if (!(option == JOptionPane.YES_OPTION))
stop = true;
I have no idea what the values are for the constants, so always better to use the constant name... |
Forum: Java Aug 22nd, 2008 |
| Replies: 8 Views: 1,615 Platform games are generally tile-based. So use a 2D array to store your map tiles. You only draw the tiles that are visible within the viewport (what the play can see on the screen). You'd... |
Forum: Java Mar 21st, 2008 |
| Replies: 2 Views: 3,180 You probably need to add the labels to a jpanel then add that panel to the scroll pane. |
Forum: Java Mar 17th, 2008 |
| Replies: 6 Views: 3,305 A server awaiting incoming connections may use an infinite loop, often in another thread. |
Forum: Java Feb 13th, 2008 |
| Replies: 2 Views: 989 Might try asking in a Javascript forum under web development. |
Forum: Java Feb 11th, 2008 |
| Replies: 2 Views: 1,322 You're also apparently too lazy to google search as well.
http://sourceforge.net/projects/vcard4j |
Forum: Java Jan 23rd, 2008 |
| Replies: 10 Views: 1,929 In Windows, there might be a way of accessing those components by using the Window ID handle or something. I'm not entirely sure here, this is just a guess. |
Forum: Java Jan 15th, 2008 |
| Replies: 8 Views: 1,342 Do you have the jacob.dll in your system32 folder? (not that that has anything to do with this error)
This is what I found with google searches:
Not entirely sure what that would have to do... |
Forum: Java Jan 14th, 2008 |
| Replies: 8 Views: 1,342 Are you using iTunes on Windows? Did you run the example script that is suppose to get iTunes playing songs? JACOB files in the correct locations? |
Forum: Java Jan 10th, 2008 |
| Replies: 19 Views: 1,745 Alright Jimmy, what is the goal here? Once you've built this 4x4 matrix, what do you have to do with it?
Here's a simple 4x4 matrix created with the pattern you just showed above.
int[][]... |
Forum: Java Jan 8th, 2008 |
| Replies: 19 Views: 1,745 I think what bugs me more than the lack of effort in describing the problem is the lack of effort in proper writing style. The Internet is not an excuse for poor grammar; feels like I'm reading posts... |
Forum: Java Jan 3rd, 2008 |
| Replies: 6 Views: 954 Careful rajatC, with Strings you must compare them with the equals() method, as == is intended for primitives and String is an object.
JTextField guessI = new JTextField();
String g = new... |
Forum: Java Nov 5th, 2007 |
| Replies: 14 Views: 1,772 What happens? Does it print anything at all, wrong data or just blank? Any errors?
Also, if you wrap your code inside code tags, it'll be a lot easier for us to read it. [c o d e] my code here[/c... |
Forum: Java Nov 1st, 2007 |
| Replies: 14 Views: 1,772 To clarify, a constructor will have the same name as the class and not define any return type. If it does not have the same name as the class, then it is just a method and must have a return type... |
Forum: Java May 16th, 2007 |
| Replies: 6 Views: 1,177 total + 1000 doesn't do anything. as you haven't defined a place for it to store the result of the addition. If you wanted total to equal itself plus 1000, how would you write it out on paper? |
Forum: Java Apr 16th, 2007 |
| Replies: 8 Views: 1,892 Having a little trouble spelling words?
Obviously he hasn't done any code yet, otherwise he would already know what language he needs help in.
Pick a language to use, start working on the... |
Forum: Java Feb 12th, 2007 |
| Replies: 6 Views: 2,952 This method would take the ball's coordinates from its center, its radius, and a Block object. It'll return true if they're overlapping.
public boolean overlap(int bx, int by, int radius, Block... |
Forum: Java Dec 1st, 2006 |
| Replies: 2 Views: 1,058 The charAt method returns a character and you're trying to assign it to a String variable. Fixing that should prevent the second error.
You can turn a character into a string by adding a blank... |
Forum: Java Aug 20th, 2006 |
| Replies: 2 Views: 12,787 This should help out. For dynamic data changes look at the list model.
http://java.sun.com/docs/books/tutorial/uiswing/components/list.html |
Forum: Java Aug 11th, 2006 |
| Replies: 10 Views: 3,949 You need to use generics on your collections with 1.5 to avoid this error.
Instead of:
ArrayList myList = new ArrayList();
Use:
ArrayList<MyObject> myList = new ArrayList<MyObject>(); |
Forum: Java Jul 9th, 2006 |
| Replies: 9 Views: 4,765 well split() does take a regular expression, so why not just use that?
It looks for 2 or more spaces to be the delimiter.
String s = "BATHROOM TOI 48157 Y DOVE BWASH MCDAMIA... |
Forum: Java Jul 7th, 2006 |
| Replies: 9 Views: 4,765 Is each data chunk given a certain amount of space to be written in and just filled in with blank spaces to pad a smaller value? |
Forum: Java Apr 25th, 2006 |
| Replies: 3 Views: 889 We can help you out, but we're not going to do your homework for you. Give it a try yourself first, then when you get stuck you can ask us specific questions about your problems. |
Forum: Java Apr 23rd, 2006 |
| Replies: 5 Views: 2,668 sounds ok, in theory. I have a 5.1 and 7.1 audio cards, they both have either the 1-digital out that connects to all the speakers at once through another system, or uses 1-plug for front and 1 for... |
Forum: Java Apr 22nd, 2006 |
| Replies: 5 Views: 2,668 I don't believe you can, sound cards don't use different ports for speakers and headphones. Plug in headphones and I'm pretty sure the speakers get shut off. |
Forum: Java Apr 21st, 2006 |
| Replies: 18 Views: 12,991 We know absolutely nothing about your project, nor have you even tried explaining it. We can't offer help on such a vague post. |
Forum: Java Apr 19th, 2006 |
| Replies: 18 Views: 12,991 Either schools are teaching programming at a much younger age these days, or English class is ignoring grammer.
Alright sree22, you want us to give you details on YOUR project, with absolutely no... |