Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

ivanslayer, please post in English on the forums.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

griffith, please keep in mind that this forum is for getting help with PHP issues - not getting someone to produce code for you.

If you are needing someone to produce an entire script for you, then you should post in Looking To Hire (and expect to pay for the work) or perhaps Project Partners wanted.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Step into the elevator and look in the lower left corner by the door. There is a loose edge of carpet. Peel that back and open the small hatch below. Inside the hatch, you'll see a very tiny monkey. If you hand him a baloney sandwich, he will share a secret with you: "Resurrecting 6-year-old threads on IT discussion forums won't open this elevator."

I can't help you much beyond that. Sorry.

Sodabread commented: Brilliant! +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm Spartacus!

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you created a new JFrame/JPanel/etc through the New file menu?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, they have some code examples here: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/doc/

And there is an article on DevX here: http://www.devx.com/Java/Article/29795
(but they require free registration to view the article)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm listening to the sound of spam hitting a brick wall. It's a curiously familiar sound, but I can't quite place where I know it from.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Five years ago he may have found that suggestion helpful - now, not so much.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Narue >> That quoting method is worse than awful. Pick one method and stick to it, don't combine them. okay, fine. I like the concept of quote tags, and i like the boxed out separation, but the font face makes me ill. so i'll go back to the old newsgroup variation.

But there are still possibilities remaining! :icon_surprised:

Aia commented: Think inside the box! Not bad. ;) +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Have you read through the info and examples in the package description? http://commons.apache.org/dbcp/apidocs/org/apache/commons/dbcp/package-summary.html#package_description

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

nope googled my name and this came up, not cool theres no need for that. I've since deleted all my info but still its the principal.

The acceptable use policy clearly states that member profile information may be publicly visible and entering it is entirely optional: http://www.daniweb.com/forums/faq.php?faq=privacy_policy#faq_member_profiles

If your info is still showing in Google after you removed it, then I suppose that's an issue you'd need to take up with them. DaniWeb has little input into Google's searching, indexing, and caching mechanisms. It may be that it will disappear the next time they spider the site. I really can't say.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Ok, good luck.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

The short answer? You can't.

You can edit everything out of it though.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I can haz more chaos?

jephthah commented: hah +0
Nick Evan commented: That looks disgusting; so: nice :P +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

She's referring to putting "..." in quote and placing the quoted text below the actual quote.

Edit: Cross-posted :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

i need final year topc related to project management and networking or information technol;ogy as a whole

That's a statement - not a question - and has nothing to do with the original poster. Don't hijack other peoples' threads.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

First, read the site rules - especially this one

We strive to be a community geared towards the professional. We strongly encourage all posts to be in full-sentence English. Please do not use "leet" speak or "chatroom" speak.

Then work through the basic OpenGL tutorials over at NeHe.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So they do have more colors than purple! :P

jonsca commented: Read my mind +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

So essentially, you are asking for help stealing? Am I understanding correctly?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

URLS changed to "example.com" to be generic and still preserve the question.

wonderland commented: Helped me with a topic editing (outside of forums options) :) +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Dark purple is tolerable when used in moderation and with other colors, but purple abuse is a serious condition that warrants timely intervention. Tater-

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Great, now at least they will learn something from their copied code :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If only there was a "im not writing your software for you man!" auto respond button.

Try Clippings :)

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I don't know how university schedules run overseas, but in the US the semester is over and that has probably reduced the homework help posts quite a bit.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

me i lways eating vegetables..

You could stir-fry them with spam.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Apologies, it's a typo there. I meant:
"Dani, please make it so that quotes are *NOT* hidden by default and clicking on the quote header hides the quote".

:)

I'd agree that this sounds like a better implementation. And make the quoted text just tiny bit darker, or the background a little lighter.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That's the link I was talking about, and it works for me?)

It's probably deleted and you can see it because you're a mod in that section. It's not accessible to me either.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes, I'd agree that it's somewhat hidden up there at the top. I think it's previous location just below the last post is probably the best place for it if we're to have any chance of new posters using it.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It's mostly the "largeness" that I'm having trouble with. It's like working on someone's machine who has the res set to 640x480, even though I'm at 1280x1024.

Perhaps I accidentally turned on senior citizen mode? ;)

Nick Evan commented: Haha, I had the same feeling :) +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm finding it pretty hard to read as well:
Fonts too large in post listings and buttons.
Posts take too much real estate for no real reason.
Not a fan of the light lilac - I didn't sign in to discuss my innermost feelings and get all weepy.

jonsca commented: I've got a tissue box ready whenever you want to open up :D +0
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

If you need the entire board to be animated, you might take a look at this tutorial: http://www.cokeandcode.com/spaceinvaderstutorial

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Perhaps this small example of animating the movement of a board piece with a thread might help. The important concept is in the BoardGrid.move() method, which is called when you press the button.

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.Ellipse2D;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;


public class AnimateDemo extends JFrame{

    JButton btnMove = new JButton("Move");
    BoardGrid board = new BoardGrid();

    public AnimateDemo(){
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        add(btnMove, BorderLayout.NORTH);
        add(board, BorderLayout.CENTER);

        btnMove.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                board.move();
            }
        });
    }

    class BoardGrid extends JComponent{
        Ellipse2D player = new Ellipse2D.Float(0, 0, 0, 0);
        int width=0;
        int height=0;

        // this method is just here to simplify the example
        // your player position update code could be anywhere
        public void move(){
            // create a thread to move the player
            Thread moveIt = new Thread(new Runnable() {
                public void run() {
                    for (int i=0; i<3; i++){
                        // update position
                        player.setFrame(i*width/3, height/3, width/3, height/3);
                        // repaint
                        repaint();
                        // pause before next update
                        try {
                            Thread.currentThread().sleep(300);
                        } catch (InterruptedException ex) {
                            Thread.currentThread().interrupt();
                        }
                    }
                }
            });
            moveIt.start();
        }

        @Override
        protected void paintComponent(Graphics g) {
            Graphics2D g2 = (Graphics2D)g;

            width=getWidth();
            height=getHeight();

            // draw board
            g2.setColor(Color.BLUE);
            for (int i=1; i<3; i++){
                g2.drawLine(i*width/3, 0, i*width/3, height);
                g2.drawLine(0, i*height/3, width, i*height/3);
            }

            // draw player
            if (player.getBounds().getWidth()>0){
                g2.setColor(Color.ORANGE);
                g2.fill(player);
            }
        }

    }

    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
            public void run() {
                AnimateDemo demo = new AnimateDemo();
                demo.setSize(300, 300);
                demo.setVisible(true);
            }
        });
    }
}
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I didn't see a reference implying create=true as part of the DB url. I'm not sure where

you are seeing this.

Listing here: http://publib.boulder.ibm.com/infocenter/cscv/v10r1/topic/com.ibm.cloudscape.doc/cdevdvlp51654.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

And neither has shown any effort at all:
http://www.daniweb.com/forums/announcement9-2.html

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Maybe you can hook up with this guy and write your assignment together: http://www.daniweb.com/forums/thread281987.html

javaAddict commented: Good one +6
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Did you look at the post that I linked?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Take a look at the following post: http://www.daniweb.com/forums/post1146173.html#post1146173

Your movement code can't be running on the event queue because that will block repaints until your code is done. You have to update in one thread and repaint in another.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Keep a separate thread or timer that updates the state of your objects and calls repaint() on the AWT event queue to refresh them.

This is referred to as a game loop or animation loop.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

It does make them sound rather foolish, doesn't it? I certainly wouldn't go out of my way to help someone who posted like a wailing child.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

That's pretty poor ascii art.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Generally it is a good idea to actually state the problem you are having, rather than leave everyone to guess.

That said, I can tell you that you need to remove the calls to super() in your constructors because you no longer have that super class. You also need to change your array type in your test class to the interface type, not Ball.

Those were the two that jumped out at me with a quick glance over the code. If there are other problems, post them.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, you mentioned "the document", which I have no idea about. It may be that you can override the paintComponent() for that, but you haven't given much detail to go on.

Here's an example of what I'm referring to, if you wish to take a look: http://www.daniweb.com/forums/post951298.html#post951298

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

You need to override paintComponent(Graphics) for whichever component you are drawing them on. Update the state of your rectangle data with the mouse events and let paintComponent() handle the actually drawing.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I'm sorry, you must have taken a wrong turn on the internets - you seem to think you've found the Lazy Student Homework Completion Service.

You are mistaken.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I just want to have a program for my project but I cant create a program with this problem.

Well, I guess you should fail the project then.
That's how these things are suppose to work. If you can't actually do the work, you shouldn't receive a passing grade on it and you'll put more effort into learning the material so that you can do it.

Any other questions?

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

3 in fractions is 3/1 surely?

Not necessarily. Consider 6/2, 15/5, 141/47...

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Well, you could create your own custom dialog, but I wouldn't say that is easier than using the array for your options with showOptionDialog().

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Keep It Organized - 2 points
Keep It On Site - 2 points

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

Yes.
'this' refers to the current object - whatever that object is. It could be anything.
'content' refers to whatever you defined it as. Most likely it's a Container ref obtained from getContentPane() somewhere in your program.

Ezzaral 2,714 Posting Sage Team Colleague Featured Poster

I guess that would depend on what you consider a decent living and how many people you can find who require data recovery services.