Search Results

Showing results 1 to 40 of 95
Search took 0.01 seconds.
Search: Posts Made By: cms271828
Forum: Java Feb 24th, 2009
Replies: 3
Code Snippet: Farenheit to Celcius
Views: 18,299
Posted By cms271828
Hi, looking at your code, I can see only 0 as answer

When you do 5/9, your dealing with ints, so thats 0.

I think you should do 5.0/9 or 5/9.0 or (double)5/9 or 5/(double)9, or or just...
Forum: Windows Vista and Windows 7 Nov 25th, 2008
Replies: 2
Views: 802
Posted By cms271828
Hi, I haven't tried it yet, I've been trying a new hard drive that I have. So far the same occurence has not happened, and hopefully won't (touch wood).

I can't see how reinserting graphics card...
Forum: Windows Vista and Windows 7 Nov 23rd, 2008
Replies: 2
Views: 802
Posted By cms271828
Hi, I'm hoping someone can help me with this problem.

Over last couple of days, when I start up computer, it gets to the windows screen, and the blue bar thing just goes round and round, and it...
Forum: Java Aug 17th, 2008
Replies: 3
Views: 8,223
Posted By cms271828
I don't get it, its pretty pointless, but does show how to draw things.

I'm building a 3D chessboard which should be useful, but its too big to fit as a code snippet.
Forum: Java May 20th, 2008
Replies: 2
Code Snippet: Colour Cube Faces
Views: 5,551
Posted By cms271828
Whats the problem?

It should work fine
Forum: Java Jan 25th, 2008
Replies: 10
Views: 2,854
Posted By cms271828
Forum: Java Jan 25th, 2008
Replies: 10
Views: 2,854
Posted By cms271828
A couple of ideas..

A chess game (Will take a long time, I've done one)
A checkers game, similar to chess, but easier
Connect 4

Build a 3D rubiks cube
Or build a program where you can view...
Forum: Java Jan 25th, 2008
Replies: 2
Views: 830
Posted By cms271828
Code is too big to post, I think I've fixed it, I just use requestFocus() on the JMenuBar, after removing the JInternalFrame.
Forum: Java Jan 25th, 2008
Replies: 2
Views: 830
Posted By cms271828
Hi, I have an application, that has a JFrame.
Added to the JFrame's contentPane is a JDesktopPane.

I use JMenuItems in the JMenu (in JMenuBar) to add, and then remove a JInternalFrame inside the...
Forum: Java Nov 22nd, 2007
Replies: 3
Views: 672
Posted By cms271828
Seems like a simply program, why would it take so long?

Theres only 8!=40,320 positions to look at then test.

If you put a queen in each column, then first queen has 8 options, next has 7, and...
Forum: Java Nov 17th, 2007
Replies: 2
Views: 1,453
Posted By cms271828
Hi

I'm writing a chess program,
http://www.colin-java.co.uk/JChess2
So I might be able to help a little, you would obviously need alpha-beta pruning.
I guess you would use iterative deepening...
Forum: Java Nov 16th, 2007
Replies: 1
Views: 6,345
Posted By cms271828
Its simple, I don't see the point for all that code, and I'm not sure why your class is called LinkedList, theres already a LinkedList in the java.util package.
I've just written the code below,...
Forum: Java Oct 30th, 2007
Replies: 5
Views: 6,227
Posted By cms271828
Nice program, but not very fun.
If you could make some mad coloured images that would be more fun.
Still good though, does what it says on the tin!
Forum: Java Oct 27th, 2007
Replies: 5
Views: 1,934
Posted By cms271828
You can do either, but initialising a 3D array in one go can be a little daunting, depending on what your putting in.

You could just initialise all your double arrays, then do...
String[][][]...
Forum: Java Oct 26th, 2007
Replies: 10
Views: 5,270
Posted By cms271828
Thanks, I asked in javaranch too, they said the same thing.
Seems a bit unusual to do this though, I was trying everything to get it to work, then I printed out some data from 'conn' and it worked....
Forum: Java Oct 25th, 2007
Replies: 10
Views: 5,270
Posted By cms271828
Ok, it works, but this is bonkers, if I miss out the line...
conn.getContentType();

Then it wont work, but it always works with it.

I've added the class below, if anyone wants to try it,...
Forum: Java Oct 25th, 2007
Replies: 10
Views: 5,270
Posted By cms271828
Ok, I got it to work!
Forum: Java Oct 25th, 2007
Replies: 10
Views: 5,270
Posted By cms271828
Thanks very much!

I'll have a look at the code shortly.
Its nice to get some good comments instead of vague comments that dont help.

Thanks
Forum: Java Oct 25th, 2007
Replies: 10
Views: 5,270
Posted By cms271828
I don't want to use signed applets, they are annoying.
I know I can use php, but doesn't seem theres any code on the internet to show this except for scraps of random bits of code which doesn't help.
Forum: Java Oct 25th, 2007
Replies: 10
Views: 5,270
Posted By cms271828
Hi, I'm looking to update a MySql database from an applet.
The 2 roots I was thinking were:
Applet->php->database
Applet->servlet->database

But my webhost doesn't allow servlets/jsp, so I would...
Forum: Java Oct 23rd, 2007
Replies: 3
Views: 4,797
Posted By cms271828
Yeh, currently I'm adding the jmf.jar to the build path, but its not really adding it, its just adding the path of the jar file.

I'm trying to make the project portable, so users can just...
Forum: Java Oct 23rd, 2007
Replies: 2
Code Snippet: Colour Cube Faces
Views: 5,551
Posted By cms271828
This program generates the 6 faces of a colour cube.
The faces are displayed in a JPanel, and they are also saved to C:/Faces as PNG files.
So non-windows users might have to alter code slightly.
Forum: Java Oct 23rd, 2007
Replies: 3
Code Snippet: Colour Box GUI
Views: 7,389
Posted By cms271828
Interesting, but not very fun.
But nicely constructed, and a good tool for beginners to look at to get a flavour of guis.
Forum: Java Oct 22nd, 2007
Replies: 4
Views: 2,422
Posted By cms271828
I don't get it, are you using normal dice with 1-6 on?
Forum: Java Oct 22nd, 2007
Replies: 4
Views: 2,422
Posted By cms271828
I haven't read the code, but perhaps something like this...
You have an array of length 6 eg dice[].
Each time you get a 1, you do dice[0]++;
Each time you get a 2, you do dice[1]++;

In...
Forum: Java Oct 22nd, 2007
Replies: 3
Views: 4,797
Posted By cms271828
Hi, I'm building an application and I want to it to play mp3 files.
I have it working, basically by installing JMF2.1.1e, and then I add its jmf.jar file to the build path of the project within...
Forum: C++ Oct 17th, 2007
Replies: 5
Views: 750
Posted By cms271828
Yes, you are correct, I did do a CLR project.

I just tried..

#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!\n";
}
Forum: C++ Oct 17th, 2007
Replies: 5
Views: 750
Posted By cms271828
Hi, I just downlaoded Visual C++, the
Microsoft Visual C++ 2005 Express Edition.

Its not the same as C, I opened a command prompt project, and I have to use...

Console::WriteLine(L"Hello...
Forum: C++ Oct 17th, 2007
Replies: 5
Views: 750
Posted By cms271828
Hello there, I come from a Java background, and I am a very able with java.
I would like to try C++ to build a chess engine, since my java chess engine lacks the performance that can be obtained...
Forum: Java Oct 13th, 2007
Replies: 5
Views: 5,457
Posted By cms271828
I doubt its impossible, the information is on the OS, I think its possible, if it wasnt, why have an assignment on it.
Forum: Java Oct 13th, 2007
Replies: 6
Views: 2,472
Posted By cms271828
Another point to note...
If you do not call super(...) in your constructor, then it is called automatically for you on the default no-args constructor of the super class.

So supposing in super...
Forum: Java Oct 13th, 2007
Replies: 6
Views: 2,472
Posted By cms271828
Ok, this is easy...

If you dont have any constructors in your class, then you automatically get the default one for free...
Book()

You have a constructor..Book(a,b,c)
So therefore, you do...
Forum: Java Oct 13th, 2007
Replies: 6
Views: 2,472
Posted By cms271828
Hmmm, I don't get it

In your Book2 class, you've got:

super(bookTitle, itemNumber, bookUnits, bookPrice);

but when I look at java.awt.print.Book,
the only constructor I see is Book().
...
Forum: Java Oct 6th, 2007
Replies: 2
Views: 536
Posted By cms271828
Question is a little vague, but I think you mean:

int x=5;
String y=""+x;

So y is "5"

To reverse this, you could grab the character...

int x=y.charAt(0);
Forum: Java Oct 5th, 2007
Replies: 4
Views: 2,177
Posted By cms271828
I think your parameters for ArrayList.add(..)
are back to front.
The index comes first.
I've never really used ArrayList to be honest, I like LinkedList, but they are pretty similar.

So you...
Forum: Java Oct 4th, 2007
Replies: 17
Views: 3,008
Posted By cms271828
If you use an IDE like eclipse, you can JAR it there, by right clicking on project, then 'Export'

If you want to convert into an exe file, its probably easiest to use a tool like......
Forum: Java Oct 3rd, 2007
Replies: 4
Views: 2,177
Posted By cms271828
Your question is a little vague,
I guess you want a button to generate then open a JFrame.
I can't answer your question specifically, but perhaps the following will help.
1. Use arrays or...
Forum: ASP.NET Jun 28th, 2007
Replies: 4
Views: 1,210
Posted By cms271828
Hi, I'm new to C# ASP.NET too.

I don't understand what Visual Studio is.
Is Visual Studio actually an IDE that you can use to do things, or...
Is it a collection of 6 technologies...
1. Visual...
Forum: ASP.NET Jun 28th, 2007
Replies: 13
Views: 1,712
Posted By cms271828
Thanks I see it.

Now I need a database to try with it.
If you have one, could you email it to me?

colin.shuker@tiscali.co.uk

Or point me to where I can find one.

Thanks
Forum: ASP.NET Jun 28th, 2007
Replies: 13
Views: 1,712
Posted By cms271828
Hi, I've installed:

Microsoft Visual C# 2005 Express

Microsoft Visual Web Developer

SQL Server 2005 Express


How am I supposed to use sql server?
Showing results 1 to 40 of 95

 


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

©2003 - 2009 DaniWeb® LLC