Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It seems that negative rep applies half of the value of Reputation Altering Power. Is that as intended? It doesn't really matter much, but I was just curious about it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Several people have asked you to show the code for slowMoveVertical(int) from the appropriate class, yet you never do - in this thread or the others you have posted about this same question. If you want to get offended at "speakin a little negative" and refused to be helped, then the problem is your own and perhaps you should go elsewhere.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, JTextField only supports single-styled text. For styled text you need to use JEditorPane or JTextPane http://java.sun.com/docs/books/tutorial/uiswing/components/editorpane.html
or HTML markup within a JLabel.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

hej i am an good student but i am on the first year and in ouer country this an experimental class we have no books no materials nothing thats why i dont have any idea about the project so if some one helps me would be very kind

ps: I m not stupid at all

You have not even asked a question yet. You merely posted an extremely vague description of an assignment. Do you expect us to just start coding whatever we think a solution might be and post it here for your inspection?

If your class has no books or materials, how is it a class at all? Do you not have notes from a lecture at least? Those are materials. Did your instructor walk in the first day and exclaim "make a matrix in which a number moves some kind of snake"? If so, perhaps you should have left the class?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

...
Software, music, whatever. If you can't make money with it, then you simply aren't capable of making money with it. Period. If that's the case, then you owe it to yourself to find another way to riches, and stop complaining about those who simply don't think your software or music is worth what you want them to pay. If you don't want them to steal it, don't make it available to them. ...

And I suppose we should also just make all goods and services available in the same manner of "Here, just take it and pay me if you want to, but if you choose not to, that's okay, it must be my fault for not making it good enough to make you want to actually pay for it"? How long do you believe these goods and services will remain available. As you point out, they owe it to themselves to do something different if they fail to make money on what they produce.

Since you want to dissemble on the philosophical nuances of "owing", perhaps you may want to consider the implications if no party ever felt they had to honor any agreement with any other party. Outside of direct violence to enforce personal expectations, how do you believe that such a society could function?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The query can easily be built dynamically based upon specified strings. I don't know what more info you could need on building a string.

I would recommend using JTable to display the result. You don't need an intermediate list and there are plenty of code examples of populating a JTable with a JDBC resultset.

I'm not following at all what you are trying to say in that last paragraph, so I can't offer much suggestion on that.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>>People who got their degrees in computing only 10 years ago are finding no work,

That's their own fault for not keeping their knowledge current.
A carpenter who learned his craft using handtools and refused (out of laziness or a misguided sense of where the world was going) to learn to use powertools faces the same problems.
It's got nothing to do with "evil companies" "forcing you", but with your own laziness if you are too stupid to keep up with trends in your chosen field of work.

Exactly. I am well past 10 years out of college, have no degree in computing, and have not had any problems finding work. Most developers I know have degrees in subjects other than computing (or no degree at all) and do not have trouble finding work. The burden is on the developer to maintain their relevancy. A piece of paper from a university isn't a ticket to a job for life.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I don't know - my Vic-20 was pretty sweet with a cassette tape drive.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Kill Michael Jordan and see what will happen to the Chicago Bulls without him.

I think you need some therapy.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, a search on "java play audio in applet" yields a lot of results, like this one:
http://www.javaworld.com/javaworld/jw-06-1998/jw-06-sound.html

Took less than 5 seconds to find it, which is probably less time than it took to post back that what I posted before was not what you were looking for.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

C++ or Java will be the most useful to learn for future coursework, though PHP, Ruby, and Python are fine for getting your feet wet in a scripting language.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I can't believe you took the time to reply to a lame thread. How lame. :icon_rolleyes:

++

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Bah, my bad, that should be a period - not a slash - to denote the package of the class. This is what it should be

F:\DCTM_WORK>java FlightReservationDesktop.Reservation
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can control that easily by creating a small inner class for your timer action like so

private class TimerAction extends AbstractAction{
    boolean wait=false;
    
    public void actionPerformed(ActionEvent e) {
        if (!wait) {
            System.out.println("moving stuff");
        }
    }
    
    public void wait(boolean wait){
        this.wait = wait;
    }
}

You'll need to keep a reference to it at the class level

TimerAction timerAction;

and when you create your Timer, add it like so

timerAction = new TimerAction();
Timer timer = new Timer(500, timerAction);
timer.start();

You can then pause or unpause it when needed by calling

timerAction.wait(true);  // to pause
// or
timerAction.wait(false); // unpause

If you need to change object position variables you can do that in your TimerAction class as well.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Wow, the original funny post about burning bodily winds as possible alternate energy has turned into left and right wing issues.

Looks like our world is simply a tripartition:
1 liberal left (10%)
2 don't give a hoot (80%)
3 righteous right (10%)

More like:
2 Give "hoot"s to varying degrees on varying issues that cannot be reduced to simplistic left/right characterizations used by those who only wish to marginalize any opposition to their narrowly defined view on a subject.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Hypocrites. (Wrote hippogriffs first, whoops).

Hippogriffs really annoy me too...

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Then prove him wrong by providing the evidence. Factual evidence of historical environmental data, not sound bites from person A in favor of the movement, nor weblog rants from person B opposed to it. If the evidence does exist, and the data is sound, then provided it and show everyone that Midimagic is incorrect.

I have posted links to this info before, but really the whole debate over climate science is just getting tired and I'm just about done even remarking on it. Those who want to ignore the current state of the science are just welcome to do so. It's not my crusade, but it really just amazes me that some still think climate science is one of two distinct camps: all doomsday Gore scenarios or "everythings fine, nothing to see here, move along".

Ars Technica assembled background reading, see the Climate section:
http://episteme.arstechnica.com/eve/forums/a/tpc/f/770002407831/m/841006407831

Also:
http://gristmill.grist.org/skeptics

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Window is an AWT class you probably won't need and JWindow is a Swing class that you probably won't need :)

Ok, seriously, here's some info on window differences.
http://mindprod.com/jgloss/windowdifferences.html
If you are using Swing for a GUI, you will probably only need to use JFrame and JDialog for your top-level window components. The "J" in front of the name indicates a Swing component instead of a heavyweight AWT component.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Read the API link that I posted for Swing Timer. There is a link "How to use Timers" in the documentation for that class. If you have futher questions about applying it, post them back here with the code you have so far.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

He's not making the German==Hitler association. I think you did that, reading it into his writing. MidiMagic is making the Mandatory_Massive_Governmental_Intrusion==Hitler argument, from what I read of his post.

Hitler is by no means the only ruler who imposed the will of the government on the people. He is specifically using Hitler to maximize the emotional effect of his statement and I believe he seized on it because Germany's program was mentioned.

Whereas he (and others like him) must listen to the whining of those who disagree without saying anything about it? Sounds like a double standard to me. If the environmentalists can whine about those who don't support them, I see no reason the non-environmentalists shouldn't be allowed to whine as well.

Granted. I concede equal opportunity whining should be allowed.

Okay, first item: Your introductory sentence in that paragraph is a strawman argument. Midimagic hasn't said that he is, quote 'denying any science that says we are doing anything bad at all to our current environment', he's stated that he doesn't agree with the most visible and vocal subset of the environmental movement. Considering that they also appear to be the most extreme arm of the environmental movement, this is not surprising. That you have to recast your argument in this manner would seem to indicate that you cannot directly oppose Midimagic's stance.

Second item: 'but the number of "real scientists" (as you would put it) that deny we're doing any harm whatsoever is rapidly dwindling …

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Others have already answered this in your original thread http://www.daniweb.com/forums/thread103716.html.

You need to post what you have done so far and specific questions about it - in that thread, not this one.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Try

F:\DCTM_WORK>java FlightReservationDesktop/Reservation
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

ej whats up i see you are talking about moving an object can you help me with my home work its about an matrix in wich an element moves around pleaseeeeeeeeeeeee if you can help me

Please keep unrelated questions to their own thread. Also, homework help is given when effort is shown, so keep that in mind when you post a thread asking for help.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you are using JavaScript, then this question would be better answered in that forum:
http://www.daniweb.com/forums/forum117.html

If you are using pure Java, then you can use javax.Swing.Timer

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Murder is not a silly issue.

Neither is ignorant zealotry.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You obviously didn't read any of the links posted about that then, or you would have your answer. There are ways to "hack" that appearance and I posted a link to one article on it, but Java doesn't generically support transparent top-level windows or non-rectangular windows.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Because we overthrew Hitler to get rid of that mentality.

Anyone who wants government to force us to obey the religion of environmentalism is going to be treated like Hitler by the rest of us. This is supposed to be the land of the free, not the land of the environmentalist dictator.

You don't even have any solid proof that anything is wrong, other than the blather spewed by Al Gore and his bad science. I want to see REAL science as proof, not he bad stuff we hear today.

I encourage everyone to find alternate sources of energy. But the fears of a bunch of crybabies are not sufficient to require the force of government.

Are you really so small-minded to associate everything German with the policies of Hitler? I suppose it's convenient for you, since you love to demonize anything at all that has to do with environmental responsibility - and I mean responsibility, not zealotry. Limiting the crap that we dump into the air, water, and land and reusing what materials we can is not some evil leftist conspiracy. If you can't see any effect of pollution at all then you must live in your closet.

Buying "Carbon credits" and such is pretty stupid in my opinion, but making some effort to be conscious of and lessen the degree to which we completely trash the planet we are stuck with is just common sense. Do you eliminate bodily waste all throughout your house and then move …

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Instead of extending MouseAdapter, you could just have that class implement ActionListener and put the code in mouseClicked() into the actionPerformed() method. Then use a new instance of the class instead of "this" for the argument to button[index].addActionListener().

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If the program would crash if you used the base class on it's own, then it sounds like some required function of the class remains unspecified. If child classes provide that necessary functionality then the methods to do so should be abstract. Without knowing what additional functions the child classes are providing it's difficult to give a definitive answer.

If the base class can be used on it's own then it does not need to be abstract at all, as AD pointed out.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Are you drawing in a JPanel (or JFrame) or an Applet? I think your problem might be as simple as calling repaint() after you do all your movement calculations?

Most likely the painting code is in the slowMoveVertical(int) methods on the Circle, Triangle, etc classes, which he didn't post the code for.

You're correct that if he is only changing positional data in those methods and his paint code were to just render the objects based on those positions then repaint would be all he needed. I don't think that is how he has it structured right now though.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

What does that have to do with piracy?

Asking people to move to another country is like saying:
"If there is piracy in this country, why dont you move to a place that has no piracy"

Sounds pretty silly.

He claimed it was social responsibility to provide something for others to use for free, hence the answer that he was seeking communism/socialism and should move to such a society if those were his expectations.

No one has a social responsibility to give you free stuff, Sturm. Your sense of entitlement is severely misplaced. When you start working for free then you can come back and explain social responsibility to us.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm looking for the any tutorial that has information about my problem.Please let me know if there is any resource you found on google about this.

What additional info do you need?
You've already gotten an answer: use an embedded database, the names of which have been given, or your own simple file format.
If you need more info then that, you'll have to ask a more specific question.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

paid by who or what? donations? that's the only free-ish source of immediate income

There are many cases (I could not tell you what percentage they might be) that are paid to work on open source projects by companies that wish to use that software themselves and are willing to let that work remain in the open public domain. The company has a need from software, they pay the programmer to meet that need, and allow the solution to be available to others. Any others who need support or customization of that software could pay for that service as well if they cannot "fix" it on their own.

That is the paradigm he is describing, but currently that is not the norm by any stretch of the imagination. Most companies expect to own the product they paid to produce. Until that attitude changes (if it ever does to a substantial degree), working on open source software is not a viable means to earn a living for most individuals.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Are you using JDK 1.5 or later? I'm thinking it's failing to parse the generics.

(I'm also thinking you didn't write the code either)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Um, and which error message would that be? Difficult to look over your shoulder from here.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Can you honestly prove that someone made their decisions based on skin color/gender, rather than on the issues?

Nope, not if they lose, but if a minority candidate wins then at least it will show that the majority did not let sex or race decide the candidate for them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Like it or not Ezzaral, most people couldn't care less about a guy's (or gal's) colour of skin as long as (s)he makes the right sounds and moves.

Actually, I'm not sure that is the case. There are still a lot of people who cannot move past their biases and bigotry to accept a female or non-white candidate. It's pathetic in this day and age, but prejudice is still very much alive. I agree that many, including myself, do not care, but I'd have a hard time stating that most don't.

I really hope to be proven wrong on that assessment if the election comes to it. Truly, I really do.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Even given the difficulties that some voters will have with electing a minority candidate (read not a white male), I have heard recent speculation by the pundits that a black male may be more electable than a white woman. Who knows what basis they are making those speculations on, but it does give a sense of the current feelings on minority candidate viability.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Anything you want it to be - it's just a variable name. You need to brush up a bit on basic Java syntax and structure a bit more if you expect to get anywhere at all with this.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Sure, and writers can just do readings - since there's a lot of money in live reading.

Obviously you're committed to your myopic, self-serving view on the subject, so there's little point in explaining anything further. Do what you wish, as I'm certainly not your moral compass and have no desire to be.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Check your spelling. The correct class is "ArrayList".

The last error means that you've extended a class that has an abstract method in it, which requires you to implement that method, but you have not written that method in your class.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, I don't see that you have declared "prylar" anywhere, yet you are using it as a class-level variable.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

that was indeed a mistake that i have now corrected, but yet it still says their is a problem with this line 'Public void input(int)' ?

Method parameters have a type and a name. You have only specified a type.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It is worth noting that Josh and Sturm, both of whom express the view that they should be able to copy anything they like without cost, are currently occupied as "student". Those on the side of compensating the producer for the work produced are most all older and employed (or formerly employed in the case of AD).

Context and experience do seem to play a large role in opinions on this matter. I would agree with most of the points regarding copyright that Midi posted. Many think the current system is woefully broken, but still agree that some system to protect the livelihoods of those who produce intellectual property is necessary to ensure continued availability of such works.

People have to feed, clothe, and shelter themselves. These things are not free for most individuals. If the artist, actor, writer, programmer, etc. cannot earn the means to provide for their needs through their chosen occupations then the time that they can devote to such activities is certainly going to diminish. No one is going to starve to death so you can download free music and software. Sorry, you're just not that special.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Some of the Hays production code got cut off by the stupid time limit:

- Defeat of the law shall not be depicted.
- No toilets or body discharges.
- No showing the inside of a human thigh.
- No machine guns, except in war pictures.

Thirty minutes is NOT enough time when transferring information from various sources!!!! Remember that the edit window CLEARS when you visit another website to get info. So you have to save and then edit to add each new piece of information.

Two suggestions:
- Compose your response in an external text editor and paste it as needed to preview or submit.
- Use tabbed browsing for looking up any other info you need.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You still haven't posted the code here.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Someone give me one reason why I shouldn't "pirate" software? Why should I let corporations control my activities and my life?

I would think you, jtwenting, a staunch Social Darwinist, would support piracy. If companies aren't intelligent or competent enough to secure their software, don't they deserve to go out of business?

And perhaps you can give one reason why you feel entitled to get everything available for free? Do you have a job? Do you expect to get paid for the work you do? Somehow I'm thinking you probably don't want to slave away at a job for free.


You know, you can get all the software you need for free in a completely legal way - write it your damn self. If it's so trivial that no one has a right to charge money for it then you shouldn't have any troubles at all.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Even so, the same idea applies to both situations. I personally believe there is nothing wrong with pirating, and so I will continue to pirate despite what the law or the government says. Besides, I am not stealing anything. All I do is download stuff from people who give it out. I do not upload anything, and therefore I am not breaking any copyright laws. How am I to know that the program I am downloading is not legit? I am simply an innocent bystander in this whole mess.. :P

Actually, yeah. What do insurance companies do after a police investigation of a burglary reveals that the owners didn't lock up? The owners get NO compensation whatsoever (in most cases). It's the same thing with software. If you do not make it safe enough to be released, then you have not done your job properly.. and thus I shouldn't have to pay. If you don't lock up, then you deserve to be robbed!

What a load of crap. You can justify it to yourself all you want to. You're stealing, plain and simple. If you have no moral qualms with it, then that's up to you I suppose. No one here can make you believe stealing is wrong. But you are taking for free something that someone spent a lot of time producing and denying them any compensation - no different than if your employer decided to not give you your paycheck because he simply didn't feel like it.

Ancient Dragon commented: Exactly right. +21