server_crash 64 Postaholic

Hmm, that's weird. It only took one parent to have "under God" taken out of the pledge of allegance.

server_crash 64 Postaholic

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?

server_crash 64 Postaholic

Of course it's possible, although a virus in java won't be as destructive or easy to create as in most languages.

server_crash 64 Postaholic

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 FF. Is there something I can do to make this compatible with netscape browsers?

server_crash 64 Postaholic

Thanks Narue!
I believe I'm going to try the binary search tree first. It won't be till this weekend, but look around for me in the ++ forum, just in case I have problems ;)

server_crash 64 Postaholic

I don't really care about date/time programming, but I just wanted to start a program that could possibly give me some good experience. I'm most interested in getting more experience with pointers and references, so I thought I could implement something in the date class I was making, but was wrong.

See, the two functions I have return dates, because that seems to be the most sensible approach:

Date Date::add(Date addThis)
{
}

At first I was hoping for a function that used references or pointers, but it would turn out messy, and kind of stupid:

void Date::add(Date addThis, Date &ref)
{
}

The only way I could think of using references was to provide a second paramenter, which seems like a terrible solution.

I hope you see what I'm getting at even though I don't write very clear!
Anyways, I'm reading three different books and got more than enough experience with refs and pointers with in text reading, but I want hands on experience. I just can't seem to find something useful to do. I mean, almost everything I think can be done returning the object rather than using a reference.

Any of that make sense! ;)

server_crash 64 Postaholic

Hashset is an excellent idea, but if you want to just use arraylists then the contain method hook mentioned is the way to go.

server_crash 64 Postaholic

Thanks ;)
I believe I'm getting somewhere now, just got to get all these weird questions answered!

server_crash 64 Postaholic

I'm trying to do something that will help me learn a little. I know all the easy stuff but I can't find anything to do with pointers and references. I have add and subtract functions, but none of those require me to use references or points :(

server_crash 64 Postaholic

I created an application that would encrypt/decrypt text using several different schemes, so I guess you could say I know something about it(but not too much).

server_crash 64 Postaholic

Thanks! Now I just need to find some cool things to do with dates!

server_crash 64 Postaholic

Thanks. I have one more question:

In one of my books it was demonstrating a base class a derived class. In the base class the members were made protected....why would you do something like that? I know that when you have protected access it gives the derived class access to it, but doesn't this break OO style? Shouldn't those members of the base class be private but have accessors and mutator methods?

server_crash 64 Postaholic

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

server_crash 64 Postaholic

Where is it...I love these type things.

server_crash 64 Postaholic

Thanks guys. So the only difference is that members of a struct are public, and members of a class are private...

server_crash 64 Postaholic

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?

server_crash 64 Postaholic

import java.util.*;

DecimalFormat dec = new DecimalFormat("###.##");

System.out.println(dec.format(value));

server_crash 64 Postaholic

Right now I've got a different approach. I couldn't figure out how to map it for a rotating image banner, so I did this:

The image is really large, so I broke it up into two pieces. The second piece is what would contain the images if it were mapped, but since I don't know how I just drew the image on the second piece of the image. I simply did that by javascript:

<script language="javascript">
			var pictureNum = 1;
			function rotatePicture()
			{
				if (++pictureNum > 5)
				{
					pictureNum = 1;
				}
					ncp.src = "ncp" + pictureNum + ".jpg";
					window.setTimeout('rotatePicture();',1000);
			}
		</script>

and then the image looks like this:

				  <img src="nc1.jpg"><img name="ncp" src="ncp1.jpg">

That works fine for now, but even after splitting the image up it's still fairly large. I did try the <div> tag with some attributes, but that keep it over the image if the resolution changes. If I could just find a way to keep the rotating banner over the image and it stay there even after changing the resolution, then I'd be happy, but I'm beginning to think it's impossible :(

server_crash 64 Postaholic

I mean loading up a series of images. It's basically like a banner advertisement,but I want it over an image, and I can't use the div tag.

server_crash 64 Postaholic

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 Space, but im not sure if this is possible.

If this is possible, could you please tell me how to do this?

server_crash 64 Postaholic

Maybe if the URL is running a server that accepts connections from a certain port that might be possible.
--
dein vater

server_crash 64 Postaholic

Have a counter variable that keeps track of the current index, iterate and find some new junk.

server_crash 64 Postaholic

I still think it's the image is not being found. Can you do some system.out's to make sure that it's being found?

server_crash 64 Postaholic

why do you have to do that i understand the difference between java and dhtml. and if i can do what i want in dhtml then i will be happy. i dont understand why people like you have to come out of no where and turn a forum into a spitting match!
apparently you aswell do not know the answer to my question so im sure your hostility comes from your ignorance. good day sir

If you knew what DHTML was then you wouldn't have started this topic. Download coffecup menu builder and stop complaining.

http://www.softforall.com/WebAuthoring/WebDesignUtilities/CoffeeCup_Free_DHTML_Menu_Builder10070031.htm

server_crash 64 Postaholic

I would guess you're using recursion...maybe?
Recursion can cause this, and so can many other things. Explain what your program is doing, please.

server_crash 64 Postaholic

So I unistalled the previous versions and got the newest one to install right, but I can't get applets to work online. Is there a classpath or path location to make this work?

It depends on what JRE version you have, and whether java is enabled with your browser. Make sure that you downloaded the latest JRE, and it's possible you might have to uninstall older versions, but that's a last resort. Second, check the java console which you can find in the task bar, and right click on it and see what it's saying(if anything)...Let me know how this goes.

server_crash 64 Postaholic

That was actually my next thought, but I don't think it will work.


How are you doing this? Is this a 'live' online installation?


Does it ask any questions during the installation, like what directory the 1.4 is installed in?

server_crash 64 Postaholic

200g house on a 1800 a month mortgage? It's normally less than 700 a month for a house around 200g! There's no telling what you could get for that, but some people don't like owning. Here, you can rent a house for about 500-600 a month, but that's about the price of a 30 loan.

server_crash 64 Postaholic

Thanks, I guess I'm just confusing myself again.

server_crash 64 Postaholic

Hmm...There might be several things happening:

First of all, whenever you download a bundled package like netbeans, the sdk, and all that good stuff together, for some reason it has trouble installing or downloading. If you're doing that, then try downloading seperate.

Second, you might not have j2se 1.4. If I remember correctly 1.5 is just an update package and needs a pre installed version.
http://java.sun.com/j2ee/1.4/download.html#sdk
Take a look at that URL. Try re downloading the seperate files. First 1.4, and then 1.5.

Hope that helps. I know I'm right about the first scenario, but not sure about the latter.

server_crash 64 Postaholic

I doubt he lives in his mothers basement. J was simply giving you advise because you seem like you don't want to do any work. Anyways, if you want an easy way out, download a copy of coffeecup dhtml menu builder.

server_crash 64 Postaholic

1800 a month??

server_crash 64 Postaholic

I have a very basic solution:

Let's say you have a text field that supports 50 characters and your text is only 20 characters. You could get the text length, subtract that from the amount of characters the text field supports, and divide by two. Once you have that, then you can add that number of spaces at the beginnning.


Of course that solution doesn't work for everything, and if possible it's better to use some other idea.

server_crash 64 Postaholic

So, is there anything you can do to escape a performance loss?...Like slow loading.

server_crash 64 Postaholic

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 made sense.

server_crash 64 Postaholic

J, we could get rich if we came up with a program that randomly spit out project ideas...don't you think?

server_crash 64 Postaholic

What do you means topics? Source Code? Just pick out something and start working. Like the simple text editor, get started.

server_crash 64 Postaholic

It's probably not that the image isn't being drawn, it's that the image cannot be found.

Try this:
image = getImage(getDocumentBase(), "image.gif");


And make sure that the image is in the same file as the program.

server_crash 64 Postaholic

I enjoy reading the articles you post.

server_crash 64 Postaholic

Yeah. It was kind of like a dark splotch. It got darker and darker as time went on, and then another one showed soon after. But I emailed dell and they had a rep come out and replace it...so that was good.

server_crash 64 Postaholic

I would do it, but I'm a terrible writer and I'm loaded down with homework everday.

server_crash 64 Postaholic

You could TRY a keylistener but I'm not sure that'll work out exactly like you want. There should already be a mechanism built in that changes components when tab is pressed. I would stick to that if I were you.

server_crash 64 Postaholic

For something like that I would say some if else statements would work. Like:

if (!card slot is already taken)
{
      //do something
}
else
{
    //do something else
}

Of course it would be cool to experiment making your own exception as EB said.

server_crash 64 Postaholic

that worked perfectly!! thanks

No problem, just glad to help! ;)

server_crash 64 Postaholic

catch the exception:

public void actionPerformed(ActionEvent ae)
{
        try
        {
              methodcall();
        }
        catch(IOException ioe)
        {
        }
}
server_crash 64 Postaholic

It's not nice to blatanly advertise like that, but if you make yourself an active member and put the link in your signature or profile you will have no problem getting members as long as you show you can help and junk like that.

server_crash 64 Postaholic

I've gotten like 45 members in less than one month. I don't know if that's good or not, but everything seems to have spurts of when it gets lots of traffic and stuff.

server_crash 64 Postaholic

You could put some applets around your page I guess, but I think that'll have an opposite effect. If you want to make your bulletin board look better you can change colors and stuff like that through the admin panel. Other than that, you'll need to learn php.

server_crash 64 Postaholic

Executable jar files work perfectly.

server_crash 64 Postaholic

I hate talking on the phone. If there's a way I can avoid it, I'll do it. I don't know why I hate it so much, but I do.