server_crash 64 Postaholic

Good job! And your very welcome.

server_crash 64 Postaholic

Maybe I took it wrong. I was thinking he wanted to start his own forum on the subject.

server_crash 64 Postaholic

If it hadn't been for Ross Perot, combined with the faulty Plurality Voting System, Bill Clinton would have lost both elections by wide margins.

Yeah, I forgot the full numbers but it was suppose to be a landslide for bush sr. Perot broke off and formed his own party because he disagreed with bush's views. At the end perot took "I THINK" 27% away from bush causing clinton just enough to win. The second time he was going to lose also. Colon Powell was going to run but his wife got really sick and didn't want him too. He was predicted to win. Actually, it's predicted that any time he runs he will win, but I don't know if that's true or not.

server_crash 64 Postaholic

Now, how many of those were done to get something for ourselves, and how many were done to stop one country or group from taking over another?

Exactly. That's not a credible source. Probably done by some arab that hates the US.

server_crash 64 Postaholic

None do. The bunch of crap was the contention that Islam teaches people to do that. I'd suggest you actually take the time to read Islamic texts before making stupid, unsubstantiable claims like that.

19 of the hijackers were muslim. But think what you want Mr. always right cultural history boy.

server_crash 64 Postaholic

I'm not. I don't believe in gambling, but I don't condone people who do. I'm sure there are millions of people who would be interested though.

server_crash 64 Postaholic

This just shows your lack of knowledge about each and every religion other than your own.

I don't give a crap about other religions other than my own. Especially the muslim religion. What kind of religion teachers their followers to drive airplanes into buildings and kill thousands? Ohh wait, it was because they were promised something by their God, right? ppffffff what a bunch of crap. The only thing they got was to burn in hell.

meksikatsi commented: pure ignorance +0
Catalana commented: THIS is crap! +0
server_crash 64 Postaholic

one bottle out of 32 wine bottles is posioned with such poison that even
one drop
of it can kill a person.but any quantity of this poison kills exactly in
32 days.how will you find out the
bottle with poisoned wine using min number of taste testers in 32 days.
-------------------------------------------------------------------------

Alright, I came up with two solutions:

First, you could only have 1 person testing the wine, and that would be the person whom poisoned it. The one he didn't drink is the poisoned bottle.

Second, you would use 31 testers. If any of them died, you would know what bottle was poisoned. If no one died then you would know that it's the 32nd bottle.

server_crash 64 Postaholic

You're very welcome. If you need anything else, just let me know.

server_crash 64 Postaholic

No problem. Your very welcome. If you have any other trouble just give me a holler.

server_crash 64 Postaholic

Well, it depends on how you would use it. If you could find a good way to implement it, then I would go for it. HashMaps use values and keys assosiated with those values. So you would need to have something for the values and something for the keys.

server_crash 64 Postaholic

Wouldn't you encrypt the password? How exactly does this program run? Is it an applet or a JFrame that the user has?

For the update you could have a servlet that reads the password from the xml DD. I think it's the servlet context you would have to set onn that though.

server_crash 64 Postaholic

thanks for the help :)

i decided to start from the top with a hello world. well i cant get it to open the applet, ill run it and it will just build it.. heres the code, am i doing something small wrong?

import java.awt.event.*;
import java.awt.*;
import java.applet.*;

public class applet1 extends Applet
{
    public static void main(String args[])
    {
    System.out.println("Hello World");
    }
    
    public void init() 
    {
     
    }
    
    // TODO overwrite start(), stop() and destroy() methods
}

also im wondering if i should be using an applet.. are frames and applets the same? i just want to make an application thats readily available anywhere where you have internet access

First of all, you DON'T have a main method with an applet you use the init() method(which you have). Second, applets are funny about calls to the command line, I doubt you'll get that to work. Instead make it draw the Hello world on the applet. like this:

import java.awt.event.*;
import java.awt.*;
import java.applet.*;

public class applet1 extends Applet
{
    public void init() 
    {
     
    }
    public void paint(Graphics g)
   {
         g.drawString("Hello World",0,0);
   }
    // TODO overwrite start(), stop() and destroy() methods
}

See if that works.

For your last question, I would go with an applet. You won't be able to just run a framed application anywhere like you can an applet. ALL newer browsers support java and will show up applets.

server_crash 64 Postaholic

Just checked Google...number 5 is Nike..You did good though

Geez, you didn't know that either? I thought that's the one everyone would know without cheating.

server_crash 64 Postaholic

Import java.applet.*;
and that should allow it. Since you don't have an import statement you're having to use the fully qualified name. The same goes for the actionListener. If you don't want to continously use the fully qualified name, then:
import java.awt.event.*;

By the way, if you want to just test the app and not worry about adding that method, just take off the implements.... statement.

server_crash 64 Postaholic

If you've had no experience with building and programming pages of that quality I would suggest you start out with geocities. You won't be able to build something of that caliber, but it will be a good experience.

geocities.com

They offer free hosting and good beginner tools, but again, you won't be building an award winning site with that.

server_crash 64 Postaholic

Call M$ and explain...At least that the only legal way to do it.

server_crash 64 Postaholic

There was a few problems. I've got a working version below that you can look at. If you have an older version of java it may not run correctly. Now, you'll have to extend JFrame to get some of the methods I'm using, which I prefer to extend JFrame anyways.

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

public class test extends JFrame{

	JTabbedPane JTP;
	JPanel panel1, panel2;
	JSlider JS;	
	
	public test(){
		
		panel1 = new JPanel();
		panel1.setBackground(Color.black);
		panel1.setForeground(Color.white);
				
		JS = new JSlider();
		JS.setForeground(Color.white);
		JS.setMinimum(0);
		JS.setMaximum(100);
		JS.setMinorTickSpacing(5);
		JS.setMajorTickSpacing(10);
				
		JS.setPaintTicks(true);
		JS.setPaintLabels(true);
		
		panel2 = new JPanel();
		panel2.setBackground(Color.black);
		panel2.setForeground(Color.white);
		panel2.setLayout(new BorderLayout());
		panel2.add(JS, BorderLayout.CENTER);
				
		JTP = new JTabbedPane();
		JTP.add("Tab1", panel1);
		JTP.add("Tab2", panel2);
		JTP.setForeground(Color.green);
		
		Container content = getContentPane();
		content.add(JTP);
		setContentPane(content);
		setTitle("Test");
		setSize(400,400);
		setVisible(true);
	}
	
	public static void main(String[] args){
		test T = new test();
		
	}
		
}
server_crash 64 Postaholic

I wouldn't waste my time writting some method to create a parabola like that. Use drawPolyline(), it's much easier. You could use a Timer object to keep track of how long, and then just increment the variables and call a repaint.

server_crash 64 Postaholic

Did you override that method? If not you need to add this method in your class;

public void actionPerformed(ActionEvent ae)
{
}
server_crash 64 Postaholic

Its mainly Asia, South America and Eastern Europe/Sothern Russia - in my opinion. Also the middle east. The places where living conditions are not good basically.

:cheesy:


Eatern Europe is not a bad place to live. Hong Kong(Asia) is probably the best place to live right now, because you can start a business in ONE day where as here it takes months to years.

server_crash 64 Postaholic

I can't wait till ID goes thumbprint! Places like the bank would be so much faster if you could draw 10,000 cash and prove your identity with a thumb instead of messign with IDs

What if you don't have a thumb?

server_crash 64 Postaholic

PS: I need a name for it now.

Name it after me.


PS: I wrote Windows XP in java(not many know this), so if you need any help you can contact me.

server_crash 64 Postaholic

The bad thing is you write(at least you should) with more clarity than you speak. So just imagine them in a conversation.

server_crash 64 Postaholic

you mean those freaking homework questions that require only a little freaking bit of effort to get a freaking simple solution for? ;)

what's up with saying freaking every other word? :lol:

server_crash 64 Postaholic

Nice reading, almost as interesting as the Da Vinci Code.

That was a good book up until the second half.

server_crash 64 Postaholic

So how witless am I?.... :lol:

You should be slapped for missing number five.

server_crash 64 Postaholic

Also, try adding this at the VERY beginning of your classpath:

.;%classpath%.;

server_crash 64 Postaholic

Hmm. Why don't you look inside Program Files/Java and see if there is any jdk directory theirs. I'm thinking there is, but not sure. If there is, change the path to point to that, rather than what you have right now. Let me know what you find.

server_crash 64 Postaholic

Stop corrupting my thread.

server_crash 64 Postaholic

You need to have good english skills to start with. Then, get the book by kathy sierra and bert bates.

server_crash 64 Postaholic

heres an easy one..how do I make it...
rob

Program it?

server_crash 64 Postaholic

You would probably wind up using JNI(think that's the right now), and a lot of other third party api's and such...Just my guess though.

server_crash 64 Postaholic

Quit saying that!

EDIT: I guess he stopped, didn't read the second page.

Nope! He just hasn't posted today.

server_crash 64 Postaholic

Nah, don't worry about rebooting.

Try putting a : colon after the C, and see if that works. I noticed you were missing it, but don't know if it's just a typo on this forum, or your reall classpath.

server_crash 64 Postaholic

Sort the freakin array, then get the first freakin element(min), then the freakin last(max), then freakin loop through and keep count, then freakin average it. It's not that freakin hard, and don't post homework questions again unless you show some effort.

server_crash 64 Postaholic

I got your PM, but I really can't help that much. Check out these sites and see what you can get from them:

http://www.developer.com/java/other/article.php/2105421
http://forum.java.sun.com/thread.jspa?threadID=607247&messageID=3319050
http://java.sun.com/products/java-media/jmf/2.1.1/guide/JMFCapturing.html

I don't know if those will help or not, but I really don't know how to do this. Sorry I couldn't help more.

server_crash 64 Postaholic

The theory of evolution is a masterfully planned deception to let man forget about morals.

I mean when we look at buildings, skyscrapers, cars, boats - we know so obviously that someone designed and constructed them. Yet when we look at the human body and all its organs and intricate systems we say it all happened by chance. What a joke, its so obvious that we are intelligently designed - the human body is one of the most intelligently designed biological system around !!! Its just a pity man has such a "self love" complex and thinks he knows better.

Anyway I better not get started, but when I know somethings a lie it just makes me so angry. The theory of Evolution is the biggest most successful bunch of garbage lies that has been around for way too long. Anyway its up to each individual whether they want to believe it or not, its the sort of thing that exposes a person - who are the people who delight in deception and who are the people who seek the truth. Undoubtedly this is offensive to some - and I know many people will never change - but for those on the fence - consider this.

If you walked past an orange tree in an orchard and you saw under this tree 9 oranges on the ground laid out in a perfect square - 3 top row, 3 middle row, 3 bottom row. Would you walk past that and think …

server_crash 64 Postaholic

I HOPE that's not your classpath!!!! :lol:
It should poin to the tools.jar file in your jdk directory:

Something along the lines of this:
C\Program Files\Java\jdk1.5.0\lib\tools.jar

Take a look at this, this was one of my earlier posts.

Ok, since your using the command prompt I can help you even more, because that's what I use. First of all, you need to create a folder on the C drive, and name it whatever you want. This is the folder you'll put all of your source files, class files, and miscelaneous files in.

Now to the environment variables:

Considering you have windows:

Goto start--->right click on my computer--->select properties
Goto the advanced tab, and you should see a button at the bottom that says environment variables...click on that.

The only thing you need to worry about is the PATH variable, and the CLASSPATH variable, nothing else.

SKIP THIS STEP AND GO ON TO THE CLASSPATH, IF IT DOESN'T WORK AFTER SETTING THE CLASSPATH, THEN COME BACK AND SET THIS.
The path variable must point to the bin folder in the sun app server, and the bin folder in the jdk directory. Now, those are two different directories, so you seperate them with a semicolon when creating it. Here is what mine looks like:

C:\Sun\AppServer\bin;C:\Program Files\Java\jdk1.5.0\bin


Classpath....This points to the tools.jar file in the jdk directory. It's pretty easy to find. Here is what mine looks like:

.;%classpath%.;C\Program Files\Java\jdk1.5.0\lib\tools.jar

Your's will look similar, although …

server_crash 64 Postaholic

If you're starting out, I would stick with the command line for a bit. It probably is the classpath, altough you set it. The classpath can be very hard to set, and usually you won't get it the first time.
Please post your current classpath so that I can take a look at what you have.

server_crash 64 Postaholic

Using an IDE or the Command line?

server_crash 64 Postaholic

Update: This is my last post...As of right now. :cheesy:

server_crash 64 Postaholic

Are you guys talking about the subdermal chip that is implanted in the skin?

server_crash 64 Postaholic

I've heard so many different things. Some think the market will have a 15-25% gain over the next 5 years, and some think it will crash. The way things are right now, I would go with the gain over five years. I've seen houses in my neighborhood go for about 100-200 more thousand than they bought it right now. Do you know how or why people are predicting a crash?

I found this link that gives the same view point as you:

http://www.legalwiz.com/articles/bubble-rightframe.htm

I think it would be hard for the real estate market to plumit. With the population growing like it is, the market is really hot right now, and it would'nt make sense for it to burst.

server_crash 64 Postaholic
server_crash 64 Postaholic

Is there a reason they chose to let it extend more than one, instead of letting it implement and not extend?

server_crash 64 Postaholic

Ahhh..You must have been really sick of work!

server_crash 64 Postaholic

I started over with reading my certification book, and I'm now on page 113. It says that an interface can extend one or more other interfaces.....I thought you could only extend one thing, or do they mean the interfaces that the extended interface extended?

server_crash 64 Postaholic

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 you people think? Will it happen or is it just fiction?

server_crash 64 Postaholic

I've created an html form that allows the user to login, or register.

Here is what I've thought about(just for the registration page, not login):

HTML FORM --> servlet ---> servlet calls java class that verifys the data, and shoves it into the database... ----> Makes a few tests --- > sends a dispatch to the jsp page that lets the user know it was succesful or not.

Is that good so far? I'm trying to seperate all the logic, but I'm not sure if the servlet should be there or not.

Data Layer -- > java class
Business logic layer(Sorft of) -- > servlet
present layer -- > jsp page

I'm basing it off of that, but I don't know if it makes sense what I'm doing?