3,927 Posted Topics
Re: Posting this in the Java forum would probably get you an answer sooner. | |
Re: Then read the help file for that editor on how to include libraries on the classpath. | |
Re: Sure, take a look at [URL="http://java.sun.com/javase/6/docs/api/java/lang/Process.html"]Process[/URL] and [URL="http://java.sun.com/javase/6/docs/api/java/lang/ProcessBuilder.html"]ProcessBuilder[/URL]. | |
Re: This line from the JTable API explains your issue[quote]Note that if you wish to use a JTable in a standalone view (outside of a JScrollPane) and want the header displayed, you can get it using getTableHeader() and display it separately. [/quote]. You probably want a scroll pane anyway if the … | |
Re: [QUOTE=BestJewSinceJC;753962]The API says something about blocking. What exactly is blocking, when will it happen, and how will it affect the fact that I want the whole file to be read in at once?[/QUOTE] Blocking in that context means that code execution will halt (or wait) until one of the conditions … | |
Re: You can use a Scanner or the String.split() function. | |
Re: [QUOTE=~s.o.s~;753731]No, it isn't, really. If you are still concerned about calling the same method again and again, instead of having your class maintain the state or cache the `red' value, shove the responsibility to the invoked method instead.[code] private void mutate() { int red = color.getRed(); // some complicated, multi … | |
Re: First thing: try taking "public void moveTriangle" method out of the toString() method. | |
Re: Sure. Your first mini-project is to find and use the forum search feature to locate the thousands of "final year project" threads that are already littered throughout these forums. | |
Re: This was also mentioned by myself and s.o.s. two days ago in your other post about the char array... :P | |
Re: You're better off using the Timer anyway to avoid repaint issues and stalling the AWT event thread. Here's a simple example of the label with a timer:[code=java]import java.awt.EventQueue; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.Timer; public class TimerExample extends JFrame { final String[] words = {"The", "cat", … | |
| |
Re: Take a look at the [URL="http://java.sun.com/javase/6/docs/api/java/util/concurrent/Callable.html"]Callable[/URL] interface, which can return a value and throw Exceptions. | |
Re: You don't want a while() loop in the mouseListener. You want to increment a counter each time a point is collected until you have recorded the required number of points for your polygon. You may only want to draw the points themselves until you have the entire polygon specified. You'll … | |
Re: [QUOTE=Ancient Dragon;478608]Yes, I like to [URL="http://www.bassresource.com/fish/bass_fish.html"]eat bass [/URL]too :)[/QUOTE] Caught quite a few nice bass about a week ago. Don't like to catch drum though :) | |
Re: That's because you only declared those variables locally in the calculateperimeter() method and they have no scope in your calculatearea() method. | |
Re: Do you actually have a question then? Because every question answered in any thread in any of these forums represents someone taking some time to guide someone else. | |
Re: Rather I would say the error is from calling methods that do not exist on the Thread class. | |
Re: If they are rectangular arrays and not jagged, meaning the number of elements in each dimension remains constant, you can simply stripe them into lines with a plain old loop and read them back out by the dimension offsets. This array: 123 456 789 Can be written like this: 123456789 … | |
Re: That has nothing to do with trying to use a class constructor that does not exist, which is what you are doing right here[code]Lottery lot = new Lottery(userNumbers);[/code] If you make changes to the code, repost it using [noparse][code][/code][/noparse] tags, because it's just a mess with all the formatting removed. | |
Re: Seems to me you would put the code to carry out the operations you've been instructed to perform for each of those menu options. Perhaps if you can post some code and ask more specific questions, someone here can help you out. They won't write it for you though. | |
Re: Use a [URL="http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html"]Swing Timer[/URL]. | |
Re: Please see the forum rules regarding "chatroom speak". | |
Re: And your problem is going to persist if you can't describe it more clearly and post the relevant code. Dropping the "IM-speak" wouldn't hurt either. We aren't your "peeps" and this isn't a chat room. | |
Re: Please do not start multiple threads for what is essentially the same issue and use [noparse][code] [/code][/noparse] tags (you can type them or use the button on the editor pane) around all code if you want anyone to bother to read it. | |
Re: Why did you create a new thread for this when you already have one on the same question? Animation: [url]http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html[/url] GUI: [url]http://java.sun.com/docs/books/tutorial/uiswing/index.html[/url] Here is another great source on animation: [url]http://letmegooglethatforyou.com/?q=java+animation+tutorial[/url] | |
Re: "Doesn't work" is a little thin on the problem description as well. | |
Re: Agreed. You haven't supplied nearly enough detail for anyone to offer suggestions. Being "familiar with Core Java" says very little about what concepts you do know and a four word project title doesn't adequately describe what you intend to accomplish or how you plan to go about it. | |
Re: [QUOTE=joshSCH;673426]Hey, The Dude- Do you do anything except post links? Damn.. you definitely need to get a life. What a pathetic dumbass.[/QUOTE] Says the pathetic troll... | |
Re: It can't be applied if "board" does not implement ActionListener. | |
Re: First, use [noparse][code] .. [/code][/noparse] tags around any code that you post. Secondly, don't put all of your update logic in the paint() method. Do that in your animation loop, or better yet, another method called by your animation loop. The paint() method should just paint the ball(s) and paddle … | |
Re: Well, now is a good time to learn about them (actually Lists): [url]http://java.sun.com/docs/books/tutorial/collections/index.html[/url] | |
Re: You have to write code for everything in Java - that's pretty much the point. What you write really depends on what you are trying to do, which you failed to adequately explain. What do you want to "skip blank spaces" in? What are you wanting to do with the … | |
Re: I think this poster is just starting threads to stamp their sig links. | |
Re: An FFT would isolate it very easily. [URL="http://www.google.com/search?hl=en&q=c%2B%2B+FFT&btnG=Search&aq=f&oq="]There a a lot of implementations already available in C++.[/URL] | |
Re: I seriously doubt it, since you didn't bother to post any code or even what language you are writing it in. | |
Re: A [URL="http://www.fsf.org/news/esp-bilski"]recent Federal Circuit court ruling[/URL] may be the end of software patents in the US. Of course, we'll have to wait to see how the patent lawyers and lobbyists fare in fighting it off. | |
Re: Perhaps you should post in the Perl forum. This is the Java forum. | |
Re: Try calling startTask() before you set the dialog visible. You may also want to glance at this article on a modal progress monitor: [url]http://www.javalobby.org/java/forums/t53926.html[/url] | |
Re: It would really help if you posted a little more information about the nature of the two "programs". Separate JVMs? Concurrently executing threads? You question is a little too unclear to give an answer. | |
Re: [QUOTE=AdventureX;739666]This is the start of the class - is this going along the right lines? We do not know where to go from here. . . [CODE]class LectureTheatre { public static void main(String[] arguments) { private int maxOccupancy; private int layoutStyle; private String lectureTheatreName; } } }[/CODE][/QUOTE] No. Take main() … | |
Re: [url]http://www.catb.org/~esr/faqs/smart-questions.html[/url] | |
Re: If you have a specific question, ask it. Otherwise, do your own homework. | |
Re: Take a look at [url]http://www.cokeandcode.com/[/url] for Java game programming tutorials. |
The End.