3,927 Posted Topics

Member Avatar for zikojam
Member Avatar for stultuske
0
68
Member Avatar for Narayan15

Then read the help file for that editor on how to include libraries on the classpath.

Member Avatar for ~s.o.s~
0
324
Member Avatar for Grub

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].

Member Avatar for Grub
0
193
Member Avatar for navinlearns

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 …

Member Avatar for Ezzaral
0
102
Member Avatar for BestJewSinceJC

[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 …

Member Avatar for BestJewSinceJC
0
91
Member Avatar for musham
Member Avatar for mrjoli021
Member Avatar for VernonDozier

[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 …

Member Avatar for VernonDozier
0
143
Member Avatar for star100
Member Avatar for TAboy24
Member Avatar for Ezzaral
0
211
Member Avatar for vlpkiranmayi

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.

Member Avatar for stultuske
0
352
Member Avatar for jbennet

This was also mentioned by myself and s.o.s. two days ago in your other post about the char array... :P

Member Avatar for ~s.o.s~
0
143
Member Avatar for nyalex

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", …

Member Avatar for nyalex
0
296
Member Avatar for Blackeagle
Member Avatar for Ezzaral
0
158
Member Avatar for Tyster

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.

Member Avatar for Tyster
0
143
Member Avatar for cproud21

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 …

Member Avatar for Ezzaral
0
171
Member Avatar for Lardmeister

[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 :)

Member Avatar for ddanbe
0
478
Member Avatar for Sgtplank

That's because you only declared those variables locally in the calculateperimeter() method and they have no scope in your calculatearea() method.

Member Avatar for stephen84s
0
310
Member Avatar for naina_gill

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.

Member Avatar for vandenzergen
0
254
Member Avatar for shubhang

Rather I would say the error is from calling methods that do not exist on the Thread class.

Member Avatar for Antenka
0
321
Member Avatar for jbennet

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 …

Member Avatar for ~s.o.s~
0
110
Member Avatar for koa636

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.

Member Avatar for Ezzaral
0
115
Member Avatar for -Observer-

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.

Member Avatar for verruckt24
0
107
Member Avatar for animefun2

Use a [URL="http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html"]Swing Timer[/URL].

Member Avatar for Ezzaral
0
1K
Member Avatar for vskumar19
Member Avatar for anez247

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.

Member Avatar for Ezzaral
0
103
Member Avatar for krhillery

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.

Member Avatar for krhillery
0
167
Member Avatar for nikhath

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]

Member Avatar for Ezzaral
0
35
Member Avatar for Nicoleoo
Member Avatar for Ezzaral
0
76
Member Avatar for nikhath

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.

Member Avatar for Ezzaral
0
76
Member Avatar for The Dude

[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...

Member Avatar for debasisdas
1
216
Member Avatar for krhillery
Member Avatar for Ezzaral
0
276
Member Avatar for Dan Bois

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 …

Member Avatar for Ezzaral
0
66
Member Avatar for nouryn

Well, now is a good time to learn about them (actually Lists): [url]http://java.sun.com/docs/books/tutorial/collections/index.html[/url]

Member Avatar for Ezzaral
0
165
Member Avatar for laki234

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 …

Member Avatar for ~s.o.s~
0
147
Member Avatar for Nick Evan
Member Avatar for kimax
Member Avatar for jbennet
0
128
Member Avatar for Lukezzz

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]

Member Avatar for Lukezzz
0
187
Member Avatar for ariesangel

I seriously doubt it, since you didn't bother to post any code or even what language you are writing it in.

Member Avatar for Ezzaral
0
75
Member Avatar for tiger86

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.

Member Avatar for jbennet
0
146
Member Avatar for Samudra2008
Member Avatar for VernonDozier

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]

Member Avatar for VernonDozier
0
173
Member Avatar for BestJewSinceJC

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.

Member Avatar for BestJewSinceJC
0
93
Member Avatar for AdventureX

[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() …

Member Avatar for vee_liang
0
114
Member Avatar for nidhi89
Member Avatar for The Dude
Member Avatar for praveen_dusari
Member Avatar for jbennet
0
71
Member Avatar for Alexpap
Member Avatar for Maishai
Member Avatar for khalidmehmood

Take a look at [url]http://www.cokeandcode.com/[/url] for Java game programming tutorials.

Member Avatar for Ezzaral
0
104

The End.