JProgressBar
Hello all, can anyone who knows java please help to contribute to designing one. i made one the goes up and down and changes colour. but i have no clue on how to make it accually read something and deside to go up a percent or stay nuetral. thanks in advanceMichael
You have to tell the progress bar what it's state is. You can create a monitor that, for instance, tracks how much data has been read from an input stream, and tells the progress bar what percent is done. Make sure that you do the monitoring on a separate thread than the edt.
You'd almost think there's [url= http://java.sun.com/docs/books/tutorial/uiswing/components/progress.html]an entire tutorial on progress bars[/url] in the Swing tutorial section.
> You'd almost think there's> [url= http://java.sun.com/docs/books/tutorial/uiswing/c> omponents/progress.html]an entire tutorial on> progress bars[/url] in the Swing tutorial section.You owe me a new mind, because you just blew my old one! ;P
can u help me create a basic one?
There's a basic demo on that tutorial. Download the sample code and run through the tutorial with it. If you have any specific questions afterwards, feel free to ask them here.
Let me get this right: you designed your own component and you've named it ... JProgressBar?!
yeah ive tried those b4 but i understand it better when somone starts me off and builds me up from there....cuz ive mastered the JButton so now im moving on
> You'd almost think there's
> [url=http://java.sun.com/docs/books/tutorial/uiswing/c
> omponents/progress.html]an entire tutorial on
> progress bars[/url] in the Swing tutorial section.
This doofus has a history of resisting anything that resembles effort, research,or learning on his part.
jverda at 2007-7-12 10:29:53 >

dude dont start with me...im on the internet seasrching everday it doesnt help....i rather have a tutor
> yeah ive tried those b4 but i understand it better
> when somone starts me off and builds me up from
> there....cuz ive mastered the JButton so now im
> moving on
Any tutorial that someone writes for you in this thread is going to be exactly like the one that was linked to. There's zero reason for anyone here to put that much effort into redoing what's already been done. What was it about that tutorial that you didn't get? I'm asking sincerely.
well its not that i dint get it ...its that they give u piles of info all at once....when i work with my tutor we start at a basic no colour one and mve up from there...but he has been busy for weeks
Don't even bother trying to help michael_leaf15. I've tried to on numerous occasions. He's never satisfied unless you give him code. Oh, and don't call him a troll because he will threaten to kill you.
> well its not that i dint get it ...its that they give> u piles of info all at onceSo?Either you understand it, or you don't. If you understand it, great. If you don't, then what part don't you understand?
jverda at 2007-7-12 10:29:53 >

no accually i only did it to u cuz u have no life....u wait on this site until u c me post somethign cuz immediately after i make a post u always seem to find it 5 minutes later
> Oh, and don't> call him a troll because he will threaten to kill> you.Lovely. I missed that fun. I did see his dozens of spamvertisement posts though.
jverda at 2007-7-21 21:20:24 >

i already stated what i dont understand
> no accually i only did it to u cuz u have no> lifeAnd you have no understanding or knowledge of anybody on this forum, and no ability to communicate without sounding like a retard.
jverda at 2007-7-21 21:20:24 >

> i already stated what i dont understand
No, as a matter of fact you did not. Not in any way that's useful for anybody to be able to help you without wasting their time repeating what's in the tutorial and guessing at what is giving you trouble.
(Though given your attitude and apparent lack of ability, my guess would be "everything.")
jverda at 2007-7-21 21:20:24 >

> no accually i only did it to u cuz u have no> lifeOh, well, that makes it okay to threaten to kill someone, naturally.:rolleyes:
jverda at 2007-7-21 21:20:24 >

> :rolleyes:
Someone's been surfing on Java Ranch:
[url #" style="display: block; background-image: url('http://saloon.javaranch.com/ubb/rolleyes.gif'); width: 15px; height: 15px] [/url]
This may come in handy, soon enough:
[url #" style="display: block; background-image: url('http://saloon.javaranch.com/ubb/graemlins/banghead.gif'); width: 25px; height: 20px] [/url]
> no accually i only did it to u cuz u have no
> life....u wait on this site until u c me post
> somethign cuz immediately after i make a post u
> always seem to find it 5 minutes later
This thread was at the top of the forum, idiot. I don't have to search for your threads at all, they are just there.
P.S. I see you still aren't taking jverd's advice. You aren't encouraging anyone to help you by typing like a 12 year old on her cell phone.
im going to make a new account and block u from seeing or reading my forums
> im going to make a new account and block u from seeing or reading my forumsLet me guess -- tin-foil hat? http://en.wikipedia.org/wiki/Tin-foil_hat
> im going to make a new account and block u from> seeing or reading my forumsROFL!Good luck with that.Are you going to make your own private forum that only you and your 12-year-old SMS buddies can post to?
jverda at 2007-7-21 21:20:24 >

if i wanted to yes...my dads website host company would do that if he asked them too
> if i wanted to yes...my dads website host company
> would do that if he asked them too
Anybody *can* do it. It's trivial. The point is, what good will that do you? Do you think you'll get much Java expertise from your members? Are you so afraid of criticism? Is your ego so fragile that you have to run away from strangers who are saying things you don't like to hear? Grow some ovaries for crappin' out loud.
jverda at 2007-7-21 21:20:24 >

dude if u hate me leave me alone ive told u thing many times
> dude if u hate me leave me alone ive told u thing> many timesIt's a public forum. If I feel like saying something, I'll say it.
jverda at 2007-7-21 21:20:24 >

I'll translate for the literate amongst us.
"No, actually I only did it to you because you have no life. You wait on this site until you see me post something because immediately after I make a post you always seem to find it 5 minutes later."
I can only provide the correct spelling and grammar. I don't hold much hope of it making sense.
> I'll translate for the literate amongst us.
>
> "No, actually I only did it to you because you have
> no life. You wait on this site until you see me post
> something because immediately after I make a post you
> always seem to find it 5 minutes later."
>
> I can only provide the correct spelling and grammar.
> I don't hold much hope of it making sense.
Indeed. Threatening to kill someone because he has no life? Wouldn't that be redundant?
I assume the "15" in leafy's name is because he's 15 years old. That would explain some of the bad attitude, but it's kind of disappointing if they've stopped teaching basic English grammar.
jverda at 2007-7-21 21:20:29 >

> Let me guess -- tin-foil hat?
I'd love to know the origin of the tin-foil hat. Recently, on CSI-NY a woman offered them a metal collander (tin-foil hat variant) when they entered her appartment.
If believing aliens can read/control your mind isn't looney enough, you then add on the belief that a tin foil hat can counter the effects.
hmm now ur picking up my slang....at my age they dont teach java...wish they did..CUZ THEN I WOUDLNT BE ON THIS CRUMMY SITE!!!!
and remember that my tutor lives on the other side of the world so he is always 13.5 hours ahead of me ad he works
At your age i'm sure they taught you English as in proper spelling and grammar.
yes indeed they did its just msn screws everyone up
> hmm now ur picking up my slang....at my age they dont> teach java...Yes they do. I was in an intro computer science class at age 15. I find online tutorials much, much more useful, though.
umm how old are you...are you in my school...if you are then i must be mistaken about the java cources
I'd say you are mistaken about a lot.> CUZ THEN I WOUDLNT BE ON THIS CRUMMY SITE!!!!We aren't keeping you here. Don't let the door hit you on your solitary brain cell on the way out.
> I'd love to know the origin of the tin-foil hat.Quite possibly the Wikipedia article covers that: http://en.wikipedia.org/wiki/Tin_foil_hat
> umm how old are you...are you in my school...
You think that out of the thousands of high schools across America (if you even live in America), that I go to the same one as you? And I'm pretty sure most high schools offer intro computer science classes that you can take as a freshman or sophomore in high school.
> and remember that my tutor lives on the other side of> the world so he is always 13.5 hours ahead of me ad> he worksThat's utterly irrelevant to anything that's being discussed here.
jverda at 2007-7-21 21:20:30 >

read the past posts man and ull c it fits in
> do any of u have a job?How is that relevant and why would you care?
jverda at 2007-7-21 21:20:34 >

> read the past posts man and ull c it fits inNot even close, brainiac.
jverda at 2007-7-21 21:20:34 >

> hmm now ur picking up my slangIt's not slang. It's [url http://snltranscripts.jt.org/91/91escottish.phtml]craaaapp!![/url]
jverda at 2007-7-21 21:20:34 >
