Search Results

Showing results 1 to 40 of 690
Search took 0.03 seconds.
Search: Posts Made By: stultuske ; Forum: Java and child forums
Forum: Java Aug 30th, 2009
Replies: 5
Views: 22,034
Posted By stultuske
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
Posted By stultuske
and what kind of exception does your program give?
Forum: Java Jun 10th, 2009
Replies: 9
Views: 376
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
start a new thread?
Forum: Java Mar 24th, 2009
Replies: 4
Views: 298
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
I think he's trying to get a servlet running, not sure though
Forum: Java Mar 5th, 2009
Replies: 7
Views: 487
Posted By stultuske
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
Posted By stultuske
Forum: Java Mar 2nd, 2009
Replies: 8
Views: 368
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
make sure your classpath/project libraries contain all the info/jars your application needs.
Forum: Java Feb 26th, 2009
Replies: 6
Views: 345
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
'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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
[/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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
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
Posted By stultuske
and, preferably, what you tried so far
Showing results 1 to 40 of 690

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC