c**d 发帖数: 104 | 1 就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
%时显示finished。应该用什么解决?
谢谢大家!!1 |
g**********y 发帖数: 14569 | 2
就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
^^^^^^^^^^^^^^
How do you plan to save a file? what do you mean save a file?
If you mean it by something like FileOutputStream.write(), you already know
the answer.
【在 c**d 的大作中提到】 : 就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100 : %时显示finished。应该用什么解决? : 谢谢大家!!1
|
d********r 发帖数: 199 | 3 我想他问的是如何生成一个动态显示进度的bar,right?
取得百分比很容易,关键是如何显示。
就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
【在 g**********y 的大作中提到】 : : 就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100 : ^^^^^^^^^^^^^^ : How do you plan to save a file? what do you mean save a file? : If you mean it by something like FileOutputStream.write(), you already know : the answer.
|
g*****g 发帖数: 34805 | 4 Just fill a rectangle area with a background color, then
refill it partially with a foreground color. Update it each time you load
a file. Should get some sample code online.
【在 d********r 的大作中提到】 : 我想他问的是如何生成一个动态显示进度的bar,right? : 取得百分比很容易,关键是如何显示。 : : 就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
|
g**********y 发帖数: 14569 | 5 javax.swing.JProgressBar
就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
know
【在 d********r 的大作中提到】 : 我想他问的是如何生成一个动态显示进度的bar,right? : 取得百分比很容易,关键是如何显示。 : : 就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
|
c*****t 发帖数: 1879 | 6 ya. This is the thing to use.
Also, it is a good idea to write a custom InputStream that takes an
existing InputStream and automatically update the % on the progress bar.
【在 g**********y 的大作中提到】 : javax.swing.JProgressBar : : 就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100 : know
|
m******t 发帖数: 2416 | 7 I know my CSD (Compulsive Sarcasm Disorder) is acting up, but just
can't help -
I hope, after you(the OP) have jumped through all the hoops to get
this progress bar going, it is still the actual file writing that
takes the majority of time, rathe than the progress bar painting. 8-) |
l*****e 发帖数: 1431 | 8 Ft, why not use a JProgressBar?
100
know
【在 g*****g 的大作中提到】 : Just fill a rectangle area with a background color, then : refill it partially with a foreground color. Update it each time you load : a file. Should get some sample code online.
|
g*****g 发帖数: 34805 | 9 Because it's not fancy enough if you are working on games
like me.
【在 l*****e 的大作中提到】 : Ft, why not use a JProgressBar? : : 100 : know
|
m******t 发帖数: 2416 | 10
What kind of games are you working on? How do you feel like
being a game developer? I've always wanted to work on some games,
but I guess I have passed the days when I could do 80 hours a week. 8-)
【在 g*****g 的大作中提到】 : Because it's not fancy enough if you are working on games : like me.
|
g*****g 发帖数: 34805 | 11 casino. It's so so actually, java is not for serious 3D game.
2D games are just plain simple.
【在 m******t 的大作中提到】 : : What kind of games are you working on? How do you feel like : being a game developer? I've always wanted to work on some games, : but I guess I have passed the days when I could do 80 hours a week. 8-)
|
m******t 发帖数: 2416 | 12
You are not working for one of those poker sites, are you?
I'll buy you a beer if you do - really could use some better
dealing these days. 8-)
【在 g*****g 的大作中提到】 : casino. It's so so actually, java is not for serious 3D game. : 2D games are just plain simple.
|
g*****g 发帖数: 34805 | 13 I joined this company 3 weeks ago, just finish my first task
fixing 82 bugs for them, about half of them are valid.
My advice is not to touch these casino sites if you believe
statistics rather than luck. The average payback rate is
about 92%-96% depending on the game.
I don't work for any particular poker sites, but apparently
some of these sites buy products from us.
【在 m******t 的大作中提到】 : : You are not working for one of those poker sites, are you? : I'll buy you a beer if you do - really could use some better : dealing these days. 8-)
|