131 Discussion / Question Topics

Remove Filter
Member Avatar for server_crash

I know that you can call this method to delete a row from a JTable: [Code] DefaultTableModel.deleteRow(index); [/Code] I need to delete all of the rows at some point, and this is not working: [Code] for (int i=0; i<dtm.getRowCount(); i++) { dtm.removeRow(i); mortgageTable.revalidate(); } [/Code] I tried revalidating, but that …

Member Avatar for Layki
0
6K
Member Avatar for server_crash

I've often pondered over this subject. I know the main method has a special signature the JVM looks for, but why is it static?

Member Avatar for Taywin
0
600
Member Avatar for server_crash

I've looked and looked for some good material on this exception, but I can't find anything helpful. I just don't understand it. It's suppose to be caught or thrown whenever a method is called when not suppose to be...But won't other exceptions be caught or thrown in it's place? If …

Member Avatar for GoogleException
0
197
Member Avatar for server_crash

I've created a jar file like this: jar cfmv Manifest.mf RoboPlot.jar RoboPlot.class ImagePlotter.class The manifest.mf file looks like this: Main-Class:RoboPlot For some reason, when I use this command to run it, java -jar RoboPlot.jar it tells me that the main class could not be found I also tried this: Manifest-Version: …

Member Avatar for stultuske
0
222
Member Avatar for server_crash

I made this simple program that prints out all the factors of a given number. The only problem is that it prints out the numbers in different order...For example: factors of 12: 1*12 2*6 3*4 but this is what my program prints out: 1*12 2*6 3*4 [B]4*3 6*2 12*1[/B] It's …

Member Avatar for Momerath
0
162
Member Avatar for server_crash
Member Avatar for server_crash

I know how to se the font of a regular JTextArea, but how would I get an reference to the selected text and only select that? Here is what I have so far: [Code] setFont(new Font(font, style = Font.BOLD, size)); [/Code] this works but changes whole area [Code] textArea2.getSelectedText().setFont(new Font("sansserif",Font.BOLD, …

Member Avatar for shielaborja
0
183
Member Avatar for server_crash

I may not be understanding private inheritance right, but I thought when you inherited privately that you could still access public member data/functions, but the child class of the derived class would not. For some reason it is saying the public print() method is not accessable in this context....Is there …

Member Avatar for brkurre
0
220
Member Avatar for server_crash

I'm testing something on an old version of netscape, specifically 4.7. Everythings fine except for my javscript function doesn't work because it says getElementById is not a function: document.getElementById('ncp').src = "ncp" + pictureNum + ".jpg"; I've got many more of these type lines but it works fine in IE and …

Member Avatar for agb_bbsr
0
409
Member Avatar for server_crash

I was stupid and didn't add any security to my wirless network when I set it up. I guess I thought it would be quicker. Anyways, is there a way to just add it after you have everything set up? Or do I have to reinstall everything?

Member Avatar for sknake
0
779
Member Avatar for server_crash

I was wondering when to use novell. Are there certain things to look for? Does it have advantages over server 2003? What about at a hospital, would it be a good idea to use novell when there is 1000 employees and most have 2 computers?

Member Avatar for JamesM
0
182
Member Avatar for server_crash

I've created, and written to a file. It lets me do all of that just fine, but when I try to delete the file it says that I do not have permission. Is there something wrong with my code?: [code] #include <cstdlib> #include <iostream> #include <fstream> using namespace std; int …

Member Avatar for Salem
0
249
Member Avatar for server_crash

I would like to know if there are any ebay users in here. I tried to sign up last night and could not believe the information they wanted just for you to sell something. I mean, I thought a credit card number would suit them just fine, but no they …

Member Avatar for codejunkie
0
600
Member Avatar for server_crash

Have you guys heard about the future predictions of the real estate market? I've heard rumors that there could be a crash sometime in the future. Then I heard them talking about it on the news the other day. Even Greenspan is predicting a bubble in the market. What do …

Member Avatar for Ancient Dragon
0
172
Member Avatar for server_crash

I have a text editor I've been working on, and I'm having some trouble with the undo/redo functions... It doesn't work, and I don't know what's wrong with it. I posted all of my code dealing with the undo function. I know it's a lot, but maybe you wont mind …

Member Avatar for jwenting
0
513
Member Avatar for server_crash

Has anyone had a bad experience with Dell? I always thought they were really awesome and wouldn't bye anything else untill now. We bought 2 laptops of the same kind (600m inspiron) about 1 year and 4 months ago. I loved my laptop and had no problems with it. Right …

Member Avatar for John A
0
585
Member Avatar for server_crash

I'm recieving 2, sometimes 3 email notifications of a reply. The reply is the same one. Why am I recieving so many notifications for just one reply?

Member Avatar for server_crash
0
696
Member Avatar for server_crash

I have the following simple piece of code: [code] double new_amount; printf("Enter an amount: "); scanf ("%d", &new_amount); [/code] For some reason, it always give me zero as the new_amount no matter what I input. What exactly am I doing wrong? Also, is there a way I can do a …

Member Avatar for WolfPack
0
850
Member Avatar for server_crash

I just installed VS.NET 2003 with a lot of difficulties... There was some kind of problem with the windows installer, so I had to do the following to make it work: [quote] Click Start, click Run, type MSIEXEC /UNREGISTER, and then click OK. Even if you do this correctly, it …

Member Avatar for goldeagle2005
0
155
Member Avatar for server_crash

I've got the following code: [code] template <typename T> int Histogram<T>::get_occurances(const T& obj) { map<T,int>::iterator find_occur = frequency.find(obj); if ( find_occur == this->frequency.end() ) { return 0; } return ( find_occur->second ); } [/code] The following line always gives me an error saying ';' expected before find_occur. map<T,int>::iterator find_occur = …

Member Avatar for server_crash
0
156
Member Avatar for server_crash

Okay, I can't find a thread that I posted to just yesterday and recieved an email showing a nice reply by Narue, but I deleted it. I can't find that thread! Was it deleted? If it was, Narue, can you explain the reason atoi() is bad and the better way …

Member Avatar for Narue
0
1K
Member Avatar for server_crash

Does anyone know of a place(online) that sells cool pc cases that have a lot of brackets for fans? Or a specific model which supports excellent cooling?

Member Avatar for server_crash
0
141
Member Avatar for server_crash

I have a matrix class which there are matrix objects. I want to call `.value(int,int)` directly on the matrix objects and set the internal 2d vector to the value on the right side of the equal sign. Here is what I want to do: new_matrix.value(row,col) = 0; Here is what …

Member Avatar for SpS
0
161
Member Avatar for server_crash

I have a program that reads from a file, but for some reason it never reaches the end of the file or something, because the loop never ends. I put only 2 lines of text in the file, and a loop like this still ran infinite: [code] while (! my_file.eof()) …

Member Avatar for iamthwee
0
5K
Member Avatar for server_crash

I'm trying this: char info[50]; myfile.getline(info, sizeof(info) ); double my_double = atof(info); It seems to work, I think, but I'm getting an error when I try to print out the double. It says no matching function for ostream& << &double. Can anyone help me with this?

Member Avatar for server_crash
0
251
Member Avatar for server_crash

This is my double: double determinant = 2.8*5*-9.5; It should print out -133, right? It prints out some weird junk like: 1.8e + 04 How can I correct this?

Member Avatar for server_crash
0
188
Member Avatar for server_crash

I have a weird question. I'm trying to access a .txt file from a java applet, which would reside locally. When running this with the applet viewer, everything works fine. When you click on the .html file, however, you get an accesscontrolexception. I find it weird that the applet viewer …

Member Avatar for server_crash
0
194
Member Avatar for server_crash

I have a class Person and a Class Store. I didn't find any way to really inherit Store in class Person, so I created Class Store in a namespace called StoreClass. In the person class this doesn't work: using namespace StoreClass; it says that namespace StoreClass is undeclared. I also …

Member Avatar for server_crash
0
149
Member Avatar for server_crash

I have the following code: [code] ostream Person::operator<<(ostream& out, const Person& p) { out << "/n*********************************" << endl; out << "Name: " << Person::getName() << endl; out << "Age: " << Person::getAge() << endl; out << "Health: " << Person::getHealthLevel() << "%" << endl; out << "Happiness: " << Person::getHappinessLevel() …

Member Avatar for prog-bman
0
559
Member Avatar for server_crash

I'm finshed with teach yourself c++ in 21 days. It's been fairly good at teaching the basics, but I have two books I need to select from to read next: c++ programming language --bjarne stroustrup the c++ standard template library I just don't which to read next. Which would you …

Member Avatar for server_crash
0
124
Member Avatar for server_crash

I have a javscript function which opens a url....The only thing is I need it to open pages with parameters, and I'm not sure how to do it: [code] <html> <head> <title>LinkOpener</title> <script language="JavaScript"> <!-- function SearchTest(url, args) { // if args is null, do the following window.open(url,'win1','width=600,height=700, status, toolbar, …

Member Avatar for server_crash
0
195
Member Avatar for server_crash

First of all, if this is not the right place please move. My computer overheats whenever I do something processor intensive. I was wondering if a notebook cooler actually works, and which one to get.

Member Avatar for LinkWithUs
0
116
Member Avatar for server_crash

I can't seem to get this sorting alogorithm to work: [code] #include <iostream> void sortAssending(int nums[], int size); int main() { int nums[] = {175,167,160,164,183,187,188,179,176,175, 169,175,176,178,165,160,173,165,187,178}; sortAssending(nums, 20); for (int i=0; i<20; i++) { std::cout << nums[i] << std::endl; } system("PAUSE"); } void sortAssending(int nums[], int size) { for (int …

Member Avatar for server_crash
0
123
Member Avatar for server_crash

As an on going debate this must be settled by the onlooking audience. You decide.

Member Avatar for server_crash
0
2K
Member Avatar for server_crash

I've got the following code: Code: @mail($address, $title, $message , "From: ". $from . "\nContent-Type: text/plain; charset=utf-8"); Which sends a verification email to a registered user. The only problem is the email is considered bulk, and ends up in the bulk folder, or doesn't show up at all. I'm thinking …

Member Avatar for fsn812
0
135
Member Avatar for server_crash

I've got a lot of css in my page, but I can't seem to figure out how to change the table header, and table border colors.... I've tried this: [code] table.td { color: #ffffff} table.th { color: #ffffff} [/code] But that doesn't work. Do you know how to fix this?

Member Avatar for server_crash
0
132
Member Avatar for server_crash

I'm sorry if this isn't in the right place. The webhost I have has been hacked several times. Today it was hacked twice, and it's causing some big traffic loss for me. Should I stick with this host, or do they realy have issues with being hacked?

Member Avatar for ! !
0
141
Member Avatar for server_crash

I know it's possible, but I'm not sure how. I need several services to use one database. For instance, I need blogs,chat, and a forum to share a database so that when you sign up at one place, you are automatically signed up at all of them.

Member Avatar for zippee
0
111
Member Avatar for server_crash

I'm trying to pass arguments to my program so that I can store them into an array. For some reason my IDE/compiler is treating the blank space in between arguments as an argument. I'm using bloodshed, but it doesn't say anything about a seperation character. Can anyone tell me what …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for server_crash

For some reason this code is not correctly displaying the output....Is it a compiler issue? I'm not getting any affect from the width method, nor from the fill method. However, when I include <iomanip> and make a call to setw(int) then it works, but this code doesn't: Code: #include <cstdlib> …

Member Avatar for server_crash
0
125
Member Avatar for server_crash

Is there some advantage of programming and doing everything on your website yourself? I wanted to at first, and the deeper I got the more I realized how long it would take. I know tools are out there that can do about everything for you, but I wanted to do …

Member Avatar for zippee
0
119
Member Avatar for server_crash

I'm trying to create a Mammal class which has two virtual methods, and one non virtual methods to demonstrate inheritance. I've written the class, but now I have a few errors, and a few questions. First of all, I'm recieving an error that says the following methods aren't declared: speak(); …

Member Avatar for CrazyDieter
0
134
Member Avatar for server_crash

I want to be able to display a default image if the java applet is not inited, just like if they don't have java enabled, I want a default image. I know how to do the latter, but is it possible to do the first?

Member Avatar for jwenting
0
101
Member Avatar for server_crash

Anyone know how I can tell how many days are in each month? A formula would be really nice.

Member Avatar for server_crash
0
302
Member Avatar for server_crash

What's the point of a struct? I mean, isn't it basically the same thing as a class? So what it's used for?

Member Avatar for server_crash
0
164
Member Avatar for server_crash

Let's say I have 5 applets on the same page. How does the JVM respond to that? Will a new implementation be created for each applet, or does each applet share the jvm? Also, is there some priority, like the first applet added will be the first loaded? Hope that …

Member Avatar for jwenting
0
90
Member Avatar for server_crash
Member Avatar for server_crash

This might be a little confusing, so please bare with me. I know how to map an image, but the thing is I don't really care about it going to the link after I click on the mapped space. What I want is to have rotating pictures in the mapped …

Member Avatar for server_crash
0
114
Member Avatar for server_crash

I have a burn mark on my screen, and it seems to get bigger and bigger. I don't know why it's there. I know about ghosting, but my screen saver is usually running if my computer is idle. The only thing I can think of, is how I run it …

Member Avatar for BILL S
0
526
Member Avatar for server_crash

[url]http://news.bbc.co.uk/2/hi/americas/4160032.stm[/url] When he signed up for the army and the re-signed up, did she think he was a burger flipper or something? This REALLY pisses me off.

Member Avatar for bluedos82
0
669

The End.