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

Animals are tasty. You should try them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can create that menu bar as a reusable bean form by selecting the following: New > Swing GUI Forms > Bean Form and specifying javax.swing.JMenuBar as the super class in the final step of the wizard.

After you have it built, you can add it to a JFrame by right-clicking it and selecting Add From Palette > Beans > Choose Bean and then typing in the full class name of the bean you created.

Hope that helps.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Are you executing "testcircle"?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Your error message should also indicate which method does not exist. Which one is it complaining about?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You have this second loop on $i around the whole thing

while ($i < $num) {
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Here's a skeletal recursion for it. You just need to figure out the depth part

public void listFiles(File dir){
    for (File file : dir.listFiles()){
        if (file.isDirectory()){
            listFiles(file);
        } else {
            // whatever
        }
    }
}
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>People don't always post to help others. They could be posting to show off or to be rude, as in your case, when you called me "pathetic."
Do you honestly feel that you have been helpful in dragging this dead thread back up to complain? I don't see that you have added any technical value to it.

>As a moderator, you ought to be *supporting* my constructive criticism of an unhelpful approach.
I don't really believe that your reply was constructive. Criticizing a post that is three years old does not really come across as helpful and calling it 'rude and ineffective' is not what I would consider a constructive lead-in.

I also do not believe that arguing this further here is adding any value. You've stated your thoughts on it and I have stated mine. If you feel you must discuss it further, I would ask you to do so via PM. I would prefer to leave this thread open for potential future on-topic discussion.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You can use the JDBC-ODBC Bridge driver to work with MS Access.
Here is the tutorial on using JDBC if you are not familiar with it: http://java.sun.com/docs/books/tutorial/jdbc/index.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Just post your mailing address up here. I'm sure someone might be willing to send you... something...
:P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'll leave you to fit the rest of your code in, but here is the alternating row color part

<?php
    for ($j=0; $j<10; $j++){
        $bg_color= $j % 2 ? "#EEEEEE":"#E0E0E0";
    ?>
        <tr style="background-color:<?php echo $bg_color ?>;">
            <td width="15"> &nbsp<font face="Arial, Helvetica, sans-serif">1</font></td>
            <td width="15">&nbsp<font face="Arial, Helvetica, sans-serif">2</font></td>
        </tr>
    <?php 
    }
    ?>
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

This loop is only executing the single line after it for one thing

for ($j = 0; $j < mysql_num_rows($result); $j++)
$i=0;

There are no braces for the larger block.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, those who are seeking help for free from others certainly have another option beyond wading through "clutter" - they can figure it out for themselves.

All of the help offered here on DaniWeb is the result of someone taking time out of their day to try and help out someone they do not know for absolutely nothing in return. It comes across as rather pathetic that you would choose to complain about the form that it took. I suppose just saying "Thanks, that helped." never crossed your mind.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>can you list those as well?
Why? If you are looking for a reference on a particular topic, ask about it. "hundreds of books on... (blah)" isn't useful to anyone at all, unless they really want to learn about the book purchasing habits of some random individual on the internet.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And complaining that volunteer help does not meet your personal expectations is rude as well.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

thats wah i mean i dnt knw hw 2 start it

Drop the lazy "chat speak". Read the forum rules regarding posting in proper English.
This is about the fourth homework assignment that you have posted verbatim without showing any effort or even a thought on the matter. This is not a homework completion service. Post your code and ask specific questions if you want help with something.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You already have a constructor using Image and AudioClip, so what problems are you having with that?

And you add code tags like this: [code] ... your code here ... [/code].

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You should be able to set the main class in the project properties in the "Run" section.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Executable jar files need a Main-Class: entry in the manifest file.
More info here: http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Honestly I've yet to use GroupLayout for anything but fixed layouts that I've thrown together recently. For forms that resize predictably, I'm more used to GridBagLayout and tend to stick with that (.. and you kids get off my lawn! *shaking fist* :P )

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Based on your code, I'm assuming you want to put those parameters from your method into the 'values()' clause of your insert. To do that, you need to build that sql string by concatenating the actual parameter values into a sql string "VALUES ("+id+","+ ... You current code has the variable names themselves as the values to insert into the table: VALUES (id, fn... and that isn't even a valid sql statement.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you are creating that layout in Netbeans, keep in mind that it just decides to use the GroupLayout by default for a new JFrame rather than the old default of FlowLayout, which may throw you off if you aren't expecting it. If that is the case, you can explicitly set the layout manager to whatever you want through the right-click menu in the Inspector.

(I'm just guessing you might be using Netbeans based on prior history. Disregard if that is not the case :) )

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It depends entirely on the layout manager you have set and how you add the JTabbedPane component. It will behave like any other container component in that context.

JTabbedPane tabPane = new JTabbedPane();
tabPane.add("Test 1",new JPanel());
tabPane.add("Test 2",new JPanel());
getContentPane().add(tabPane);
pack();

will create a tabbed pane that fills the frame.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Movement through a circular structure such as a circular array, degrees of rotation, days of the week, etc.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to update the coordinates of existing circles if you wish for them to change size or position. I'd recommend taking all code that creates or changes the size out of the paintComponent() method. That should just render the circles you have created. Handle the adding of a new circle and growing of existing circles in other methods.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It's complaining because you sent this exact string as your values

"VALUES (id, fn, ln, phone, add, city, st, zip, age, sex, hr, hrs)        "

You didn't concatenate them in or use a PreparedStatement to set them, you just sent that string to the db and those are not valid values for the insert.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

By 29 posts, you should understand how to use [code] [/code] tags.

As for the exception, make sure you have that jar file in your class path.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

>Is this the good technique (I mean in performance) to do all the drawing on some image and then draw that image at once to the screen
Yes, that is typically what is done. You can update portions of the image as you wish and paintComponent() just renders that image to the screen. Be sure to dispose() of Graphics references that you obtain from getGraphics() calls.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you looked at whether you might need some braces after your if() statement? I don't think you want to execute this characters[i] = Character.toUpperCase(letterReplace); for every iteration of your loop.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

but yeah, they were kind of uncommon then, now they're pretty rare i guess.
.

They seem to be. I guess way too many are finally succumbed to rust and time. You still see the odd 65-74 muscle car here and there, but getting fewer and farther between and they are starting to go for a lot more on the auctions these days.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, I'm speaking of late 80's. They were borderline classics at that point, but still much more common than they are these days. I'm only 38 :P

edit: jephthah and I seem to be posting in tandem here...

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Heh, Nova was good as well. My sister drove a '71 with a 350.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I was the kid in the "Honors" classes (somewhat like AP) that hung out with the smokers and stoners, wore heavy metal concert t-shirts, and drove the '72 Chevelle with glass packs.

Edit: ^^ All my friends were jephthah :P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

When you go right back to the beginning, there's no proof to support either theory. So it's not as though one side can defeat the other...

It's pure conjecture.

Unfortunately the creationists don't even understand the rules of the game. It's hard to beat a team that thinks they win by standing on the field saying "I believe I win, so I win!".

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Be that as it may - mankind is not the product of evolution, it is a by-product and as such, the universe will not miss us if we screw up and get cleared out of the gene pool (I imagine a huge strand of DNA on a high seat blowing a whistle, shouting "everyone out of the pool").

Perhaps we are just the most successful viruses to date :P

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Of course, it's a lot easier if you just have the index of your array/list be the power: 4x^2+5x^3+6 --> [6, 0, 4, 5]

iamthwee commented: damn right +18
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And JOGL is available if you want to work with OpenGL instead of the Java3D scene graph model.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I hope you are not holding your breath as you wait, since homework help is generally only given to those who demonstrate some effort.

These are not "code by request" forums. Post your code and state what problems you are having or ask specific questions about concepts you do not understand.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

@ Jasimp: Thanks :)

@ GrimJack: I like the sniper kitten.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ok. I don't see any significant difference here from this thread: http://www.daniweb.com/forums/thread185073.html so I'm going to shut this one down. I think there are too many replies in both threads to be able to merge them and have any semblance of continuity remain.

rm_daniweb, in the future restrict conversation on a particular topic to a single thread.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It's a static method for the Char class - ie
Char.isLowerCase(characters);

Yep, but he was calling it on an element in an array of 'char', hence the "char cannot be dereferenced" error. If he used it as you indicated, a static method call, it would work fine.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

characters[i].isLowerCase() is not valid for char - it's a primitive, not an object.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well the only thing I hope for with evolution is that we don't evolve into some sort of moster that ya see on those science fiction shows.

What makes you certain that we haven't?

ddanbe commented: Wished I had said that! +4
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Keep in mind that you are performing a very limited scope 'test' with that finalization. It is a single trivial object that is only in scope while main() is executing and goes out of scope just before the JVM exits, which is not reflective of most other runtime conditions. There is seldom a need to explicitly set a reference to null in that manner. Once it goes out of scope and there are no longer any active references to it, it will be garbage collected and finalized by the JVM as needed.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Which language are you developing this panel in? Knowing that would greatly help :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Trash t = new Trash();
t=null;
System.gc();
System.runFinalization();

does run the finalization. Finalize is a bit of a tricky thing and really shouldn't be relied upon as a cleanup mechanism. If you need to close resources, you should put explicit methods in for that and call them when required. You can read more about this here: http://www.codeguru.com/java/tij/tij0051.shtml#Index296

stephen84s commented: Good Post +7
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Welcome to DaniWeb. Perhaps you can find useful marketing suggestions in our Internet Marketing forums.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So did it result in some worthwhile referrals for you then?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

$20 flat to whoever referred the most and it's probably over by now since the post is several months old.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, that is the point. The interface is just a list of methods. They have no code in them. The class that implements that interface supplies the code for each method that the interface specifies. If the class doesn't have every method listed in the interface exactly then the compiler will complain that it does not fully implement the interface.