Search Results

Showing results 1 to 28 of 28
Search took 0.01 seconds.
Search: Posts Made By: Cleo123
Forum: C Jul 24th, 2009
Replies: 3
Views: 767
Posted By Cleo123
Okay, thanks for that, that was a stupid mistake, lol, I have not really got any experience with C++. I'm compiling it from the terminal window with g++ instead now.

If you don't mind, I have a...
Forum: C Jul 24th, 2009
Replies: 3
Views: 767
Posted By Cleo123
Hi everyone, I'm new to C and have been given a C program to complete but found it includes many versions of the titled error for each class file.

Can anyone please explain why it occurs and how I...
Forum: Java Dec 1st, 2008
Replies: 5
Views: 376
Posted By Cleo123
Sorry...Null Pointer Exception - Exception in thread "main"
Forum: Java Dec 1st, 2008
Replies: 5
Views: 376
Posted By Cleo123
I'm not sure if I'm doing this correctly but up to now I get an exception error. Can you see why? :



public void countHeap(){
System.out.println("input data:");
for (int i = 0; i <...
Forum: Java Nov 29th, 2008
Replies: 3
Views: 751
Posted By Cleo123
Thanks for the input, I really appeciate it although I have kept the same vector I already have and used your for vector method which was really beneficial; the canvas now paints more than one...
Forum: Java Nov 29th, 2008
Replies: 3
Views: 751
Posted By Cleo123
Hi all,

Background:
I am dealing with graphical objects on a canvas in which the user draws four lines and out of these four lines I get the top left corner, bottom right corner and figure out...
Forum: Java Mar 25th, 2008
Replies: 8
Views: 1,154
Posted By Cleo123
I've solved it, never mind! Thanks anyway - The empty text was set to null so I just changed null to "" and it worked. I wish the java website said that it made a difference!
Forum: Java Mar 24th, 2008
Replies: 8
Views: 1,154
Posted By Cleo123
Thanks, I got source is cmdSaveSettings so that means theres something wrong with my second if statement?
Forum: Java Mar 24th, 2008
Replies: 8
Views: 1,154
Posted By Cleo123
Sorry I don't understand, message saying program is inside ActionPerformed?

From what I got from that was

JOptionPane.showMessageDialog(add.ActionListener.this)

but thats not even the...
Forum: Java Mar 24th, 2008
Replies: 8
Views: 1,154
Posted By Cleo123
Forum: Java Mar 24th, 2008
Replies: 8
Views: 1,154
Posted By Cleo123
I'm trying to show a dialog message if the user clicks a button and a text field is empty.


Action listener -

if(event.getSource() == cmdSaveSettings)
...
Forum: Java Mar 24th, 2008
Replies: 4
Views: 1,670
Posted By Cleo123
I had to repaint after the animation because after the animation played my grid which was painted before hand disappears and I didn't know why so I just added it again which stopped this happening....
Forum: Java Mar 23rd, 2008
Replies: 9
Views: 943
Posted By Cleo123
The most illogical thread I've EVER read. Making a virus and then creating an Anti-virus for FREE. Developing a virus at all is kind of silly, not to mention running the code on your main computer.
Forum: Java Mar 22nd, 2008
Replies: 4
Views: 1,670
Posted By Cleo123
That's the thing, I already tried bufferGraphics and it did work for everything apart from the animation. The code I have for it is:


// The object we will use to write with instead of the...
Forum: Java Mar 22nd, 2008
Replies: 4
Views: 1,670
Posted By Cleo123
I have had to repaint a couple of times because of a moving shape I have added to my program whenever the mouse is clicked. I also have a moving shape that follows the mouse over a grid as well which...
Forum: Java Mar 21st, 2008
Replies: 0
Views: 488
Posted By Cleo123
This is a connect four game and I'm trying to show the counter falling. What I have so far is this which is in a for loop:



while(fallingCounter == true && x[j][i] < playerTurn)
...
Forum: Java Mar 21st, 2008
Replies: 2
Views: 1,297
Posted By Cleo123
lol yes I have the right name, I've looked at for a long time and row2 is a panel:

row1 = new JPanel();
row2 = new JPanel();

pNorth.add(row1, BorderLayout.NORTH);
...
Forum: Java Mar 20th, 2008
Replies: 2
Views: 1,297
Posted By Cleo123
Hi, I've followed the example in my lecture notes and it doesn't work! I want to add an image to a label and then add that label to my sub north panel. I want to do this with creating a new...
Forum: Java Mar 19th, 2008
Replies: 7
Views: 817
Posted By Cleo123
Thanks a lot guys, it now work and returns 24. If I took the static out it says a non static method cannot be referenced from the static method - makes sense - must be from static to static. I didn't...
Forum: Java Mar 16th, 2008
Replies: 7
Views: 817
Posted By Cleo123
Thanks a lot, return methods kind of represent the value of the method then...But what should I do when the fact(4) statement prints 'at recursiveTest.fact(recursiveTest.java:31)' ?

That's all of...
Forum: Java Mar 16th, 2008
Replies: 7
Views: 817
Posted By Cleo123
I have been trying to write simple return statements and print the result of the return. I have read books such as O-Reily and have used examples but find that the examples don't work either so I...
Forum: Java Feb 28th, 2008
Replies: 10
Views: 1,145
Posted By Cleo123
import mypackage.*;

import java.awt.event.*;
import java.awt.*;
import javax.swing.event.MouseInputListener;
import java.awt.event.MouseEvent;

import javax.swing.*;
import java.awt.Color;...
Forum: Java Feb 27th, 2008
Replies: 10
Views: 1,145
Posted By Cleo123
I'm a little lost now. When I get rid of extends JComponent it doesn't like "pCenter.add(mycounter);" but even when I have got that it's not doing anything; not even letting a circle appear. I...
Forum: Java Feb 27th, 2008
Replies: 10
Views: 1,145
Posted By Cleo123
I'm using panels as my container...Will panels work for this? I've replaced the code with your paintComponent code...Still no errors but not working. I've tried placing the actual circle to the...
Forum: Java Feb 27th, 2008
Replies: 10
Views: 1,145
Posted By Cleo123
Update for anyone still willing to help:
I've stopped getting the error for the class now but still no moving circle. Heres what I did to get rid of my error. My MouseMove code looks just the same...
Forum: Java Feb 27th, 2008
Replies: 10
Views: 1,145
Posted By Cleo123
This is what I had for my class circle component excluding your if statement:


package mypackage;
import java.awt.*;
import java.awt.Graphics2D;
import java.awt.Graphics;
import...
Forum: Java Feb 27th, 2008
Replies: 10
Views: 1,145
Posted By Cleo123
I'm trying to make a circle appear from a class I've developed to move following the x co-ordinate of the mouse. I've done that part correctly, it's just loading the class...Can anyone tell me why it...
Forum: Java Nov 27th, 2007
Replies: 0
Views: 1,289
Posted By Cleo123
There isn't exactly anything wrong with my code, it's fine although the order isn't correct, I think, which makes my shapes appear behind the center panel. I'm not sure how to correct this as I've...
Showing results 1 to 28 of 28

 


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

©2003 - 2009 DaniWeb® LLC