Search Results

Showing results 1 to 40 of 153
Search took 0.01 seconds.
Search: Posts Made By: cosi
Forum: Mac Software Oct 18th, 2004
Replies: 1
Views: 5,271
Posted By cosi
I don't use Safari much, so I took it out of my dock soon after getting my machine. However, the safari dock icon still manages to make it back onto my dock every now and then. Has anyone else...
Forum: Java Oct 14th, 2004
Replies: 7
Views: 5,054
Posted By cosi
Hi Kumar,

Attempt to do your homework yourself, and then we can help you along the way. We do not do homework for you here.


Ed
Forum: Upcoming News Stories Oct 11th, 2004
Replies: 4
Views: 1,527
Posted By cosi
What kind of project do you have in mind?
Forum: Troubleshooting Dead Machines Oct 8th, 2004
Replies: 3
Views: 4,432
Posted By cosi
What kind of hard drive is this? SCSI? ATA? SATA?
Forum: C++ Oct 8th, 2004
Replies: 3
Views: 4,342
Posted By cosi
You have to turn terminal local echo off. This is often specific to what kind of terminal you are using. Are you using the windows command prompt?


Ed
Forum: Java Oct 8th, 2004
Replies: 5
Views: 3,010
Posted By cosi
Hi,

Your program seems very sequential. In Any programming language it is generally bad form to have an extremely long function, so we can do better by dividing the task here into many functions...
Forum: Java Oct 8th, 2004
Replies: 7
Views: 6,655
Posted By cosi
I assume you are talking about a JList that you have populated with Strings?

Try a System.out.println(List2.getSelectedValue()). This will provide you with useful debugging information by...
Forum: Java Oct 8th, 2004
Replies: 7
Views: 6,655
Posted By cosi
The problem here is that you are calling FileInputStream.open() on a directory (D:\Sample_pics). Append a filename to the end.


Ed
Forum: Java Oct 8th, 2004
Replies: 2
Views: 2,008
Posted By cosi
It looks like you renamed the class. Either change all references to DataSet to DataSet3 -OR- change all DataSet3 to DataSet

//Make it like this:
class DataSet
{
public DataSet()
...
Forum: Java Oct 8th, 2004
Replies: 7
Views: 10,336
Posted By cosi
A JFrame can have a JApplet as content. Simply make the class a JApplet, and add the main function like what you see here:

Hope this helps!

Ed


// from http://www.devx.com/tips/Tip/16650...
Forum: Java Oct 8th, 2004
Replies: 1
Views: 3,502
Posted By cosi
Use a progress bar. The problem with simply telling the user "please wait" is that sometimes the user gets impatient and just thinks that the process failed. Most of the time the user will simply...
Forum: Java Oct 8th, 2004
Replies: 4
Views: 11,183
Posted By cosi
Don't have the .class at the end.

Just run the line
java ChatClientApplication

Hope this helps. ;-)


Ed
Forum: Java Oct 8th, 2004
Replies: 2
Views: 7,068
Posted By cosi
Which XML Parser are you using? Please post a code snip.
Forum: Java Oct 8th, 2004
Replies: 1
Views: 2,508
Posted By cosi
What error are you getting?

I strongly recommend you to reorganize the StringToken section of code I've attached below because it is easy to make a logical error the way you have coded it. It is...
Forum: Java Oct 8th, 2004
Replies: 2
Views: 3,734
Posted By cosi
Hi,

You don't have to modify the classpath if you put those jar files in your JAVA_JRE_DIRECTORY/ lib/ext. What Servlet server are you running? There are also standard locations in servlet...
Forum: Java Oct 8th, 2004
Replies: 2
Views: 3,595
Posted By cosi
Hey OurNation,

Yes it is possible.

The straightforward way to find the difference in time is to simply use Date().getTime()...
Forum: C Oct 8th, 2004
Replies: 3
Views: 6,610
Posted By cosi
Hi Ray,

it looks like your caculator is in RPN (a.k.a. Reverse Polish Notation) mode.

In order to relect the same sequence of operations in C, you should convert to standard notation:

asin...
Forum: Java Oct 6th, 2004
Replies: 3
Views: 6,242
Posted By cosi
Check the Java Almanac entry for StringTokenizer (http://javaalmanac.com/egs/java.util/ParseString.html)---it is very useful!


String aString = "555-555-55555";
StringTokenizer parser = new...
Forum: Java Oct 6th, 2004
Replies: 4
Views: 11,183
Posted By cosi
To implement an interface (in this case ActionListener or ItemListener), you must write all the functions that the interface provides. One such function you're missing is...
Forum: C++ Oct 5th, 2004
Replies: 1
Views: 22,058
Posted By cosi
Trace the execution of your code.


// here let's say that hours = 23
calculate(hours, minutes);
void calculate(int& h, double& m)
...
if(h>12 && h<=24)
{
h=h-12; // Now...
Forum: C++ Oct 5th, 2004
Replies: 3
Views: 7,176
Posted By cosi
I don't quite understand what you are asking. If you could clarify, I can give you a better answer. There is an excellent tutorial on opening and reading/writting files here...
Forum: Java Oct 5th, 2004
Replies: 7
Views: 6,655
Posted By cosi
Ok. Sorry last post. I just noticed this problem of yours. Using the "\\" is very bad. That is a platform dependent file separator. Instead consider using File.pathSeparatorChar...
Forum: Java Oct 5th, 2004
Replies: 7
Views: 6,655
Posted By cosi
This is where your cast problem is. You should never cast an object to a type that it does not inherit or implement. Instead you should just create a new file object.

f = new File(l); // where l...
Forum: Java Oct 5th, 2004
Replies: 7
Views: 6,655
Posted By cosi
Whoa... long convoluted question ;-). I hope I understand what you are asking. You simply want to copy the array of files to a particular directory?

If you simply want to move the file, try...
Forum: Java Oct 5th, 2004
Replies: 2
Views: 1,901
Posted By cosi
Hey Rishi,

Yes do look at the JVM specs (http://java.sun.com/docs/books/vmspec/). Sun provides the book for download in html form for free. :)

How much of an engineer are you? If you are...
Forum: Java Oct 5th, 2004
Replies: 11
Views: 3,910
Posted By cosi
Rentro,

You it it right on. Java actually has a substring function.
String substring(int beginIndex, int endIndex)
// Returns a new string that is a substring of this string.
See...
Forum: Java Oct 5th, 2004
Replies: 1
Views: 2,528
Posted By cosi
Struts by itself does not do XML. This article (http://www.javaworld.com/javaworld/jw-02-2002/jw-0201-strutsxslt.html) at JavaWorld shows how to use XML in struts. I recommend you read up...
Forum: Java Oct 5th, 2004
Replies: 2
Views: 2,529
Posted By cosi
Hi,

Sun's tutorial about WindowListeners might be helpful:
http://java.sun.com/docs/books/tutorial/uiswing/events/windowlistener.html

Another good source of examples is the Java Almanac:...
Forum: Java Oct 2nd, 2004
Replies: 1
Views: 1,541
Posted By cosi
I assume you mean to do this in Java? I don't quite understandy your question. Please explain it again.


Ed
Forum: Java Oct 2nd, 2004
Replies: 3
Views: 8,820
Posted By cosi
What do you mean by quality? Quality can be a very subjective measure. Or do you mean most bang for your buck quality == most frames per second and large resolution per megabyte of compressed data?...
Forum: C# Oct 2nd, 2004
Replies: 28
Views: 71,967
Posted By cosi
This is absolutely not true! I haven't done bluetooth in C# before, but I've done it in C/C++ and am familiar with the bluetooth protocol. You need to just do a device inquiry over sdp (Service...
Forum: Java Oct 1st, 2004
Replies: 2
Views: 2,261
Posted By cosi
This isn't a Java question. You must register with a service like DynDNS (http://www.dyndns.org/) if you have a dynamic IP (which most likely you have, static IP is usually the more expensive...
Forum: Java Sep 18th, 2004
Replies: 16
Views: 4,644
Posted By cosi
psylocke,

Another suggestion: Since you have so many related variables (i.e. Label peglbl1, peglbl2, peglbl3) it may make your code neater if you used arrays.

Instead of multiple Label...
Forum: Java Sep 18th, 2004
Replies: 3
Views: 2,570
Posted By cosi
I don't want to solve your homework for you. Start thinking about how you will solve it and post your ideas/code snippets/pseudocode here. Then people will help you.


Ed
Forum: Java Sep 17th, 2004
Replies: 3
Views: 2,570
Posted By cosi
Tell us what it is you think you need to do with this code, and try to solve it yourself. you should just put the small snippet of code that shows how you would like to solve the problem, then we...
Forum: Java Sep 15th, 2004
Replies: 3
Views: 2,129
Posted By cosi
Hi,

I don't see where you call print 6 times. Did you paste the wrong code?

Next time, Please put your code in [ CODE ] [ / CODE ] tags.


Ed
Forum: Java Sep 15th, 2004
Replies: 4
Views: 2,499
Posted By cosi
Hi Paul,

The problem is that javac is not in your path. To add it to your path, first find where javac is. For me this is in C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin. Yours may be different. ...
Forum: Java Sep 15th, 2004
Replies: 4
Views: 2,499
Posted By cosi
oops... I accidentally hit submit. see my next post
Forum: Java Sep 14th, 2004
Replies: 4
Views: 7,059
Posted By cosi
What's the point of downloading the source code? you aren't going to present an extension to the IDEs are you?

The source code for any of those projects will be mammoths if you are new to Java...
Forum: Java Sep 14th, 2004
Replies: 6
Views: 6,701
Posted By cosi
What are the errors you're getting? When are you getting them? at compile time or run-time?
Showing results 1 to 40 of 153

 


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

©2003 - 2009 DaniWeb® LLC