Search Results

Showing results 1 to 40 of 175
Search took 0.02 seconds.
Search: Posts Made By: kahaj
Forum: Java Oct 7th, 2009
Replies: 1
Solved: Variable Issue
Views: 143
Posted By kahaj
*shakes head at self* I just need sleep. I forgot to set the value of ddOption and dddOption to 0 when declaring them. Did that & it works great.
Forum: Java Oct 7th, 2009
Replies: 1
Solved: Variable Issue
Views: 143
Posted By kahaj
For some reason, line 67 is saying, "variable ddOption may not have been initialized. However, on lines 80 & 93, that variable is used and works just fine. Any idea of what's wrong here? (I...
Forum: Java Oct 6th, 2009
Replies: 1
Solved: Applet Drawing
Views: 178
Posted By kahaj
I figured this one out on my own. Thought I'd post the code in case someone searches something to this effect up in the future. Just have to put the line color first, then the fill color.


...
Forum: Java Oct 6th, 2009
Replies: 1
Solved: Applet Drawing
Views: 178
Posted By kahaj
How would I draw a shape in an applet and have the border one color with the fill a different color?
Forum: Java Oct 4th, 2009
Replies: 4
Views: 295
Posted By kahaj
Yes, thank you! I meant to comment that out so I wouldn't forget to add it after I ensured that the rest of it was working correctly.
Forum: Java Oct 3rd, 2009
Replies: 4
Views: 295
Posted By kahaj
I just finished this project, thought I had it done, but on line 1, it's telling me, "incorrect Package". What am I missing here?


import java.awt.*;
import java.awt.event.*;
import...
Forum: C# Oct 3rd, 2009
Replies: 6
Views: 499
Posted By kahaj
Under the .NET tab, I don't have anything that begins with "Microsoft Office" listed.
Under the COM tab, there are numerous "Microsoft Office..." options, but none contain "word.dll". Closest I...
Forum: C# Oct 3rd, 2009
Replies: 6
Views: 499
Posted By kahaj
Man, I hate to sound like such a newb to C#, but I am what I am. I've tried a few different things and cannot figure out where to add WORD.dll in order to use it in my file.
Forum: C# Oct 3rd, 2009
Replies: 6
Views: 499
Posted By kahaj
I've been trying to look up an answer to this online, before having to post it to the board. All I've managed to do with what little info I've dug up is to confuse myself.

How does one go about...
Forum: C# Sep 27th, 2009
Replies: 6
Views: 428
Posted By kahaj
I figured out the issues I was initially having. Now, for some reason that I cannot figure out, the call that I'm attempting to make from ArrayWork.cs to ArrayInformation.cs is not working. I've sat...
Forum: C# Sep 27th, 2009
Replies: 6
Views: 428
Posted By kahaj
I'm attempting to construct an array of user defined information. For the life of me, I cannot figure out how to place the user's input into the array or how to disallow more than 5 values to be...
Forum: Java Sep 22nd, 2009
Replies: 6
Views: 362
Posted By kahaj
Here's the code I have so far:

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



public class NotepadInJava //implements ActionListener
{
Forum: Java Sep 22nd, 2009
Replies: 6
Views: 362
Posted By kahaj
I'm sure once I've dealt with menus more, they'll be easier. But right now, they're really a pain in the butt.

Here are the changes I made:

import javax.swing.*;
import java.awt.*;
import...
Forum: Java Sep 22nd, 2009
Replies: 6
Views: 362
Posted By kahaj
I'm using documentation on sun.com to try and learn Java. I was trying a simple Notepad type program but cannot get the menus to display. I'm receiving no errors and cannot figure out what I've...
Forum: C# Sep 22nd, 2009
Replies: 3
Views: 263
Posted By kahaj
Okay, thanks for the tips.
Forum: C# Sep 21st, 2009
Replies: 3
Views: 263
Posted By kahaj
When you know that a value will be very small (single digit), wouldn't it make sense to use Int16 instead of Int32? It seems that the least amount of memory required for every variable would be...
Forum: C# Sep 17th, 2009
Replies: 1
Views: 164
Posted By kahaj
I'll post my code after my questions.

1. Near the very end, I have DisplayIntroMessage() called for the event that the user desires another order. Is this all that I need to do to restart the...
Forum: Java Sep 17th, 2009
Replies: 4
Views: 185
Posted By kahaj
Oh man, I'm really sorry. Not only did I only post babbling instead of addressing my issue, I don't even have all of the pertinent code. To make it worse still is the fact that it is in the wrong...
Forum: Java Sep 16th, 2009
Replies: 4
Views: 185
Posted By kahaj
Just thought of this: If the user opts for a second, third, etc. order, what is the easiest way to store the total from their prior order(s) to add them all together once they're finished?
Forum: Java Sep 16th, 2009
Replies: 4
Views: 185
Posted By kahaj
I know that I don't have this just right, but I'm not sure how to get it just right. I've tried several different things and have been unsuccessful in all of them. Any tips?

Also, by using...
Forum: Java Sep 16th, 2009
Replies: 3
Views: 276
Posted By kahaj
Thanks for your help. It's working great now.
Forum: Java Sep 16th, 2009
Replies: 4
Views: 224
Posted By kahaj
Okay, what options are available to center items within a JFrame? I thought for sure that the setAlignmentX/Y would work for it. I don't understand why they're not working.
Forum: Java Sep 15th, 2009
Replies: 3
Views: 276
Posted By kahaj
I'm having some trouble getting the times to show up correctly. inputTime is running fine, but neither displayStandardTime nore displayMilitaryTime is displaying. I've been playing with this for a...
Forum: Java Sep 15th, 2009
Replies: 4
Views: 224
Posted By kahaj
Okay, I changed that. For whatever reason, it's not showing the text area at all now. Here's how it looks now (I commented out any location-oriented lines just to try and "dumb" it down and figure...
Forum: Java Sep 15th, 2009
Replies: 4
Views: 224
Posted By kahaj
I'm toying around with Java trying to familiarize myself with the basic GUI stuff. I can't get my program or my text field inside of it to center on the screen.

For the Simple... file, I've...
Forum: Java Sep 9th, 2009
Replies: 2
Views: 191
Posted By kahaj
I'm attempting to learn Java. I'm finding it to be frustrating and quite foreign from most other languages. I have something here typed exactly as the book has it. According to the book, it should...
Forum: C# Sep 4th, 2009
Replies: 1
Views: 207
Posted By kahaj
How would I nest a do...while loop in an if...else statement.

I'm trying to require the user to input a value of 5 or less. If not, then THIS takes place WHILE the var is > 5.
Forum: C++ Jan 29th, 2009
Replies: 10
Views: 556
Posted By kahaj
Thanks for all of your help on this.
Forum: C++ Jan 27th, 2009
Replies: 10
Views: 556
Posted By kahaj
Rashakil, it closes on me before it ever displays the sum.

Acient D, I'm using Dev C++ on Win XP.
Forum: C++ Jan 27th, 2009
Replies: 10
Views: 556
Posted By kahaj
Before the sum is given, the program closes. What's causing this?


#include <iostream>

//function main
int main()
{
//var declarations
int number1;
Forum: Perl Aug 5th, 2008
Replies: 1
Views: 776
Posted By kahaj
When a page is generated and has a form in it, can the form's action be to access a subroutine elsewhere in the script?
Forum: Perl Aug 2nd, 2008
Replies: 14
Views: 1,612
Posted By kahaj
Never mind. Stupid question. Just disregard my last post. *rolls eyes*
Forum: Perl Aug 2nd, 2008
Replies: 14
Views: 1,612
Posted By kahaj
Should I use JavaScript for this?

Since I'm generating an HTML page, I can't incorporate Perl directly into it, can I? I don't know if it makes a difference that the page is generated by Perl...
Forum: Perl Jul 30th, 2008
Replies: 14
Views: 1,612
Posted By kahaj
Can I access a subroutine when a button is clicked on a form with a generated page?
Forum: Perl Jul 30th, 2008
Replies: 14
Views: 1,612
Posted By kahaj
First of all, it is not homework. I'm trying to learn Perl. No one is an ace when they first start learning something. I don't want anyone to write the script for me: I wouldn't learn anything...
Forum: Perl Jul 29th, 2008
Replies: 14
Views: 1,612
Posted By kahaj
I'm trying to access a cgi script when a form is submitted. With that script, I want to display a page that basically says, "Is this info correct?" and show them what they entered. Then, if they...
Forum: JavaScript / DHTML / AJAX Jul 22nd, 2008
Replies: 11
Views: 2,104
Posted By kahaj
TnWb, I really do appreciate this. Don't think that I don't. But at the same time I'm trying to learn just how the isNaN function works so that I understand how to use it. Unfortunately, the book...
Forum: JavaScript / DHTML / AJAX Jul 20th, 2008
Replies: 11
Views: 2,104
Posted By kahaj
Or would this be correct?


var zipCheck = isNaN(zip);
else if (zipCheck == true) {
window.alert("Please enter a valid zip code.");
return false;
}
Forum: JavaScript / DHTML / AJAX Jul 20th, 2008
Replies: 11
Views: 2,104
Posted By kahaj
Also, would this be correct use of the isNaN() function?


else if (isNaN(document.forms[0].elements[6].value))
window.alert("Please enter a valid Zip Code.");
}
Forum: JavaScript / DHTML / AJAX Jul 20th, 2008
Replies: 11
Views: 2,104
Posted By kahaj
I'm trying to make sure I understand what I'm doing here since some of this is entirely new to me. I've come up with the following code to check for a valid email address. Is this right?


else...
Showing results 1 to 40 of 175

 


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

©2003 - 2009 DaniWeb® LLC