Forum: Java May 2nd, 2006 |
| Replies: 3 Views: 3,943 Re: help with setting background color!!! The problem is in the paintComponent method of your MyPan class.
It should look like this:
public void paintComponent(Graphics g)
{
super.paintComponent(g);
g.drawString("Hello India",50,50);
} |
Forum: C++ Apr 9th, 2006 |
| Replies: 4 Views: 2,965 |
Forum: C++ Apr 9th, 2006 |
| Replies: 4 Views: 2,965 |
Forum: C++ Apr 9th, 2006 |
| Replies: 4 Views: 2,965 Windows GUI - problem with dialog box Hi all
I'm experimenting with win API gui stuff, and I've run into a problem with dialog boxes. Currently, when the "Show DialogBox" option in the menu is pressed, the dialog box pops up.
I then... |
Forum: C Feb 27th, 2006 |
| Replies: 1 Views: 3,426 |
Forum: C++ Feb 26th, 2006 |
| Replies: 12 Views: 7,073 |
Forum: C++ Feb 26th, 2006 |
| Replies: 12 Views: 7,073 |
Forum: C++ Feb 26th, 2006 |
| Replies: 12 Views: 7,073 |
Forum: C++ Feb 25th, 2006 |
| Replies: 12 Views: 7,073 |
Forum: C++ Feb 25th, 2006 |
| Replies: 12 Views: 7,073 |
Forum: C++ Feb 24th, 2006 |
| Replies: 1 Views: 3,236 |
Forum: C++ Feb 24th, 2006 |
| Replies: 12 Views: 7,073 |
Forum: C++ Feb 24th, 2006 |
| Replies: 12 Views: 7,073 |
Forum: Computer Science and Software Design Nov 2nd, 2005 |
| Replies: 2 Views: 4,044 |
Forum: Computer Science and Software Design Oct 30th, 2005 |
| Replies: 2 Views: 4,044 |
Forum: Java Oct 25th, 2005 |
| Replies: 2 Views: 2,634 |
Forum: Java Oct 25th, 2005 |
| Replies: 2 Views: 2,634 |
Forum: PHP Oct 9th, 2005 |
| Replies: 6 Views: 1,550 Re: PHP question regarding Forms LOL yeah. I tried to do it for myself afterwards, and ran into some troubles again. I'm probably going to have to take a few peeks at my homework to figure it out. :lol: |
Forum: Perl Oct 9th, 2005 |
| Replies: 2 Views: 3,908 |
Forum: Perl Oct 9th, 2005 |
| Replies: 2 Views: 3,908 Creating objects in Perl Hi all
Sorry, I didn't know where to post my perl programming question.
I'm having a problem creating objects in perl. I found a piece of code on the internet, that gives an example of classes and... |
Forum: PHP Oct 8th, 2005 |
| Replies: 6 Views: 1,550 Re: PHP question regarding Forms Excellent. Thank you so much, zippee. I had tried something along those lines, with trying to get the value of the button, but I messed it up somehow, so I thought it didn't work with buttons at... |
Forum: PHP Oct 8th, 2005 |
| Replies: 6 Views: 1,550 PHP question regarding Forms Hi all
Here is a PHP question I have to answer.
Now the thing I'm having a problem with is...
When the form is submitted and the page reloads, how do I determine which button was pressed/which... |
Forum: Computer Science and Software Design Sep 27th, 2005 |
| Replies: 4 Views: 5,269 Re: Question about binary tree & heaps For the Binary Tree Question, I know that the equation is true, from having tried examples of it.
e.g. from the following sketch, the sum would be: 1/8 + 1/8 + 1/4 + 1/2 = 1.
And the equality is... |
Forum: Computer Science and Software Design Sep 27th, 2005 |
| Replies: 4 Views: 5,269 Re: Question about binary tree & heaps Here is my answer to the first one.
a)
struct heap{
int maxsize; //maximum size of the heap
element[] table; //array containing elements of the heap
int last; ... |
Forum: Computer Science and Software Design Sep 27th, 2005 |
| Replies: 4 Views: 5,269 Question about binary tree & heaps Hi all
Here are two questions from my Algorithms & Complexity Theory assignment.
1. A complete binary tree is a binary tree in which every level, except possibly the deepest, is completely filled.... |
Forum: JavaScript / DHTML / AJAX Sep 4th, 2005 |
| Replies: 3 Views: 6,942 |
Forum: JavaScript / DHTML / AJAX Sep 4th, 2005 |
| Replies: 3 Views: 6,942 Javascript event & color change problem hi all
I'm having an odd problem with Javascript. I created a table with a single row and a single column (and gave all of them IDs). Then I use onclick events to pick up mouseclicks and call the... |
Forum: Computer Science and Software Design Aug 24th, 2005 |
| Replies: 5 Views: 6,656 |
Forum: Computer Science and Software Design Aug 23rd, 2005 |
| Replies: 5 Views: 6,656 Re: Algorithms Question (Bisection Method & Sqrt) 'ellos
Thanks Rashakil.
I tried implementing it that way. We then had to compare the efficiency (number of iterations) of the BissectionSQRT method with that of another sqrt method. I tried this,... |
Forum: Computer Science and Software Design Aug 21st, 2005 |
| Replies: 5 Views: 6,656 |
Forum: Computer Science and Software Design Aug 21st, 2005 |
| Replies: 5 Views: 6,656 |
Forum: Java Jun 13th, 2005 |
| Replies: 5 Views: 3,603 |
Forum: Java Jun 12th, 2005 |
| Replies: 5 Views: 3,603 |
Forum: Java Jun 12th, 2005 |
| Replies: 5 Views: 3,603 |
Forum: Java Jun 11th, 2005 |
| Replies: 4 Views: 1,353 |
Forum: C++ May 13th, 2005 |
| Replies: 4 Views: 8,005 |
Forum: C++ May 13th, 2005 |
| Replies: 4 Views: 8,005 class toString() functionality in C++ ...? It's easy enough in Java. How is it done in C++?
for e.g. I have a class called Relation, that has a name field (just a string) and then a vector of strings.
I want to specify that wherever I type... |
Forum: Java May 6th, 2005 |
| Replies: 15 Views: 4,415 |
Forum: Java May 6th, 2005 |
| Replies: 15 Views: 4,415 Re: two Java GUI problems - please help Sorry, my bad. I seem to have added the code to one append point and not the other. oops.
The point being... the original code worked! Thanks DeepZ. Much appreciated. |
Forum: Java May 5th, 2005 |
| Replies: 15 Views: 4,415 Re: two Java GUI problems - please help hi...
I tried this. It seems to have helped just a little, because instead of never showing new text, the scroll pane now remains just one text line behind i.e. the newest line of text appended is... |