由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - 如何显示load文件的正确进程
相关主题
Process的问题关于char和int的问题
swing question问个io的问题
怎么做Status Bar?guessContentTypeFromStream(InputStream)总是返回null怎么办?
Re: How can I call another program from Java?InputStream.read() 被block的问题(陷入无限等待)
怎么从键盘输入整数或float?Java练习题 7
请教一个问题,thanks!Java练习题 11
请问JSP/SERVLET和MYSQL如何实现照片上载和调用read from multiple inputstreams at the same time?
How to write a file to the same directory of the class file?java applet读网络文件的问题
相关话题的讨论汇总
话题: 保存话题: sites话题: 显示话题: 进程
进入Java版参与讨论
1 (共1页)
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-)

1 (共1页)
进入Java版参与讨论
相关主题
java applet读网络文件的问题怎么从键盘输入整数或float?
Windows 下 Java console application 的问题请教一个问题,thanks!
java & signal process请问JSP/SERVLET和MYSQL如何实现照片上载和调用
帮看看这个swing的小程序?How to write a file to the same directory of the class file?
Process的问题关于char和int的问题
swing question问个io的问题
怎么做Status Bar?guessContentTypeFromStream(InputStream)总是返回null怎么办?
Re: How can I call another program from Java?InputStream.read() 被block的问题(陷入无限等待)
相关话题的讨论汇总
话题: 保存话题: sites话题: 显示话题: 进程