Forum: Java Aug 30th, 2009 |
| Replies: 5 Views: 22,034 you could try to write one yourself.
a bit like:
[Code=Java]
if ( mousePressed() ){
while(mousePressed() ){}
System.out.println("mouse is pressed");
}
[Code]
logic |
Forum: Java Jun 10th, 2009 |
| Replies: 3 Views: 232 and what kind of exception does your program give? |
Forum: Java Jun 10th, 2009 |
| Replies: 9 Views: 376 open book exam means you're allowed to take a book for aid on the exam, normally, you don't get the questions up front. even if you're not that good at java and even if it was just a one hour... |
Forum: Java May 20th, 2009 |
| Replies: 6 Views: 3,239 hijacking a thread without even showing a bit of own code is not the best way to start, I'm afraid.. |
Forum: Java Apr 7th, 2009 |
| Replies: 5 Views: 361 IOException -> Input-OutputException. (http://java.sun.com/javase/6/docs/api/java/io/IOException.html)
since I don't know the AudioStream class, and since you don't specify what packages you're... |
Forum: Java Mar 25th, 2009 |
| Replies: 10 Views: 6,346 |
Forum: Java Mar 24th, 2009 |
| Replies: 4 Views: 298 would depend...
several colleges and firms have a clause in their contracts that states that, if you write it using their hardware (a pc in a lab at college, a laptop from work, ...) the code (and... |
Forum: Java Mar 23rd, 2009 |
| Replies: 12 Views: 434 but if you do that, don't use:
switch(choice){
case 1: //your code
break;
case 2: // your code
break;
case 3: // your code
break;
} |
Forum: Java Mar 23rd, 2009 |
| Replies: 7 Views: 341 just a few remarks:
you're calling the calcarea - method with a parameter, but you have no parameter calcarea that takes parameters
it should take the parameter 'double radius'
like this:
... |
Forum: Java Mar 19th, 2009 |
| Replies: 4 Views: 427 since he states he's a newbie on the entire programming part, I doubt he's already been given classes in programming over a network. maybe he just means some kind of a chat-simulation where only the... |
Forum: Java Mar 16th, 2009 |
| Replies: 2 Views: 738 and you could do the next:
int[] evens = new int[25];
// as Verruckt pointed out, you don't need one of size 50
int location = 0;
for ( int i = 2; i < 50; i = i + 2){
evens[location] = i;... |
Forum: Java Mar 13th, 2009 |
| Replies: 4 Views: 907 maybe you don't know much (yet) but this is exactly the reason you are given assignments like this, to get to know the syntaxis and regulary used methods and to create your own implementation of... |
Forum: Java Mar 13th, 2009 |
| Replies: 9 Views: 861 you can instantiate the class, but that won't help your.
if you would do this:
import Messages;
public class TestClass{
public static void main(String args[]){
Messages message = new... |
Forum: Java Mar 11th, 2009 |
| Replies: 31 Views: 1,868 and since you're working with String-objects, make sure they're valid numeric values before you try to compare them :) |
Forum: Java Mar 11th, 2009 |
| Replies: 9 Views: 861 public void showInputPrompt(String showFrame, String messageToUser, String dialogTitle, int infoStyle
{
JOptionPane.showInputPrompt(showFrame, messageToUser, dialogTitle, infoStyle);
}
what... |
Forum: Java Mar 10th, 2009 |
| Replies: 4 Views: 1,244 I think he's trying to get a servlet running, not sure though |
Forum: Java Mar 5th, 2009 |
| Replies: 7 Views: 487 look at this (http://www.daniweb.com/forums/thread99132.html)
I would recommend not to start with an IDE since their 'utilities' may make it easy to develop, but that doesn't mean it's a better way... |
Forum: Java Mar 2nd, 2009 |
| Replies: 15 Views: 7,997 |
Forum: Java Mar 2nd, 2009 |
| Replies: 8 Views: 368 if this is one line, how do you think to convert this to a number?
>> Smith 12 14 15 12 16 -1
I'm pretty sure Smith is not a decimal value. you'll need to split up this line in an array... |
Forum: Java Feb 27th, 2009 |
| Replies: 10 Views: 702 got English out the way too?
have you got some code of yourself you can show us, or are you just freeloading on your classmates? |
Forum: Java Feb 27th, 2009 |
| Replies: 5 Views: 952 that depends
...
is it supposed to work only for your player, does it have to be compatibel with (for instance) winamp, ... ?
if it just has to be for your own player, you can always create a... |
Forum: Java Feb 26th, 2009 |
| Replies: 4 Views: 763 make sure your classpath/project libraries contain all the info/jars your application needs. |
Forum: Java Feb 26th, 2009 |
| Replies: 6 Views: 345 also, wonder why he wants this. isn't he just asking us to write an application for him so he can rip off someone elses htm/jsp/php/asp/... code, with al that goes with it? |
Forum: Java Feb 25th, 2009 |
| Replies: 3 Views: 678 so ... Joseph from London, who's advertising auto insurances in California ...
you might want to go trough the next steps to find the answers:
1. make an analysis of your problem
2. try to code... |
Forum: Java Feb 21st, 2009 |
| Replies: 2 Views: 352 where/how do you obtain this output?
since you have trouble getting it copied, I take it it is not from the same application as you are working on?
personally, I can't say I have ever (tried to)... |
Forum: Java Feb 21st, 2009 |
| Replies: 3 Views: 2,239 'java code'
see? I just wrote it for you.
this is the kind of application you should be able to write within about ten minutes.
run a thread, let it constantly refresh a JLabel (if you're... |
Forum: Java Feb 21st, 2009 |
| Replies: 2 Views: 224 I once had to do something similar with a piece of code for the company where I did my internship, and they wanted me to use some scheduling functionallity in Windows.
Didn't work with .jar files,... |
Forum: Java Feb 21st, 2009 |
| Replies: 4 Views: 763 what kind of media files are you trying to play and do you have everything needed to play 'm installed?
can you be a bit more specific about what goes wrong, what errors you get, post the relevant... |
Forum: Java Feb 20th, 2009 |
| Replies: 8 Views: 639 then why not look for the help you need inside the class? if you're planning on never programming again, will it be such a drama if you don't ace this class?
we're not being arrogant here, we're... |
Forum: Java Feb 19th, 2009 |
| Replies: 6 Views: 613 i'm not really a maven connaisseur myself, but I don't think this is specified or aranged in the pom.xml |
Forum: Java Feb 19th, 2009 |
| Replies: 1 Views: 285 [/B]why would this not be possible?[B]
because this will make you learn anything? since you're looking specifically for downloading without manual interaction, I take it you've already got... |
Forum: Java Feb 19th, 2009 |
| Replies: 6 Views: 613 and your question there is: how to set settings in the pom.xml
...
you might want to clearify a bit. what is it you try to put in the pom.xml?
which pom.xml are we talking about, the one... |
Forum: Java Feb 18th, 2009 |
| Replies: 4 Views: 976 where lies the problem? in declaring the array and filling it?
char [] row = new char[5]; // is the same as any other array declaration
for ( int i = 0; i < row.length; i++)
row[i] = 'A';... |
Forum: Java Feb 18th, 2009 |
| Replies: 5 Views: 328 and what are the errors you are getting?
what is it that you don't understand? getting a random element, or storing it in the new array?
I just briefly glanced at your code, and I'm not entirely... |
Forum: Java Feb 18th, 2009 |
| Replies: 5 Views: 306 1. start off with some lineair developing in Java, to get to know the syntaxis
2. learn to think in an OO way, and learn how to code that in Java
3. now you can think about writing such applications |
Forum: Java Feb 16th, 2009 |
| Replies: 7 Views: 421 why using a double for the population instead of Integer or BigInt?
think it is possible to have a 0.5 person walking around in there? |
Forum: Java Feb 16th, 2009 |
| Replies: 6 Views: 1,561 with Peter on this one, not to mention this point you seem to have missed:
tell how to run it??? if you don't know how to run a web application written in Java, how the hell are you going to... |
Forum: Java Feb 15th, 2009 |
| Replies: 3 Views: 851 NetBeans makes it quite easy to make Swing GUI's, but I would recommend you to start without NetBeans, if you don't have the basic understanding of the working yet.
NetBeans will generate a bunch... |
Forum: Java Feb 15th, 2009 |
| Replies: 6 Views: 1,852 just because you play an audio file doesn't mean you have to open a visible player.
now, if you want to play a .wav or .au file, or something similar, you don't need to install JMF or anything... |
Forum: Java Feb 13th, 2009 |
| Replies: 7 Views: 2,388 and, preferably, what you tried so far |