Redian新闻
>
如何显示load文件的正确进程
avatar
如何显示load文件的正确进程# Java - 爪哇娇娃
c*d
1
就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
%时显示finished。应该用什么解决?
谢谢大家!!1
avatar
g*y
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

avatar
d*r
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.

avatar
g*g
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

avatar
g*y
5
javax.swing.JProgressBar

就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100
know

【在 d********r 的大作中提到】
: 我想他问的是如何生成一个动态显示进度的bar,right?
: 取得百分比很容易,关键是如何显示。
:
: 就是在保存文件的时候,出现一个显示条,用来显示文件保存进程的正确比例,完成100

avatar
c*t
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

avatar
m*t
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-)
avatar
l*e
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.

avatar
g*g
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

avatar
m*t
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.

avatar
g*g
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-)

avatar
m*t
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.

avatar
g*g
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-)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。