问题标签 [jprogressbar]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
8612 浏览

java - 使用 Nimbus 更改 JProgressBar 的颜色?

当您使用 Nimbus LookAndFeel 时,有谁知道如何更改 JProgressBar 的颜色?

0 投票
1 回答
957 浏览

java - JTable 中的 JProgressBar 问题

我有一些问题,有人可以帮助我吗?下面是我的代码:

我的问题是这些 jprogressbars 如何插入表格的单元格?

0 投票
2 回答
780 浏览

java - JProgressBar 更新

有人可以帮助我吗?我将感激不尽。我有示例代码:

我的问题是 jprogressbar 如何放入单元格表中,更新变量wartosc

0 投票
1 回答
9090 浏览

java - 如何使用 JProgressBar

我要使用JProgressBar,它必须在一秒钟内加载。我不想等待任何任务完成。只想在一秒钟内填满进度条。所以我写了以下代码。但它不起作用。进度条没有填满。我是 Java 新手。请任何人都可以帮助我。

p>

0 投票
4 回答
4841 浏览

java - JButton 保持按下状态

在我的 Java GUI 应用程序中,我有一个JButton,单击时它调用 afunction连接到 a database,然后调用 afunction中的cleara ,然后调用从一个文件读取文本并加载的 a,它调用从另一个文件读取文本的 a,比较来自两者,然后调用数据库中的一个或数据,所有这些都可以正常工作。tableDBfunctionvariablesfunctiondatafunctionupdateinsert

但是我的问题与 相关JButton,当它被点击时,我想运行一个Indeterminate progress bar,这样用户就知道工作正在完成,然后在它离开之前并将action listener setIndeterminate to false值设置progress bar100(complete),但在我的情况下,当你点击button它时停留在单击状态并progress bar冻结。

我应该采取什么措施来防止这种情况?线程可能?但我对java中的线程很陌生。这是我的动作监听器:

附带说明一下,我想让操作栏随着程序的进行而实际移动,但我不确定如何监控它的进度。

谢谢,牛肉。

这里的更新 是我的 SwingWorker 示例以及我如何使用它:

在全球范围内宣布

在我的 actionPerformed 方法中

0 投票
1 回答
3312 浏览

java - 我可以制作 ProgressMonitor 对话框模式吗?

有没有办法从ProgressMonitor模态对话框?

编辑:

JAVA API 中的 ProgressMonitor 类将带来一个对话框,该对话框位于顶部但不是 Modal。用户仍然可以访问后台 GUI。我正在寻找一个模态对话框来显示进度并允许用户在中间停止任务。

0 投票
1 回答
678 浏览

java - ExecutorService JProgressBar

这可能是一个简单的,但我已经尝试了很多不同的东西,无论我尝试什么,我都无法让它工作。

基本上,我有一个 JProgressBar,我想在处理任务列表时对其进行更新。任务很短,但有很多,这就是我使用 ExecutorService 的原因。

问题是我找不到一个好方法来听 ExecutorService 有多少任务要处理。invokeAll() 阻塞,直到所有任务都完成,如果我使用 submit() 执行每个任务,则在它到达 JProgressBar 的代码时,这些任务几乎已经完成。我什至尝试将两者交错,但这很讨厌。

有没有一种简单的方法来提交一批任务(实现可调用),然后调用一个开始处理的 execute() 方法?

还是我在这里看完全错误的方向?

谢谢!

0 投票
1 回答
2516 浏览

java - 模拟长时间运行的操作

如何模拟长时间运行的数据库操作?我的要求是在操作完成之前显示一个带有 JProgressBar 的对话框。

0 投票
2 回答
615 浏览

java - 用jprogressbar显示剩余时间?

我在一个文件夹中有几个大的 DB 文件,我在 JAVA 中处理了一段时间,如何使用 JProgressbar 显示剩余时间的百分比?

多谢 ...

0 投票
2 回答
1077 浏览

android - progress bar in Notification area is not closing and not starting the second progress bar

in my app i have 4 buttons and when the user clicks any of the button it starts downloading a file and the progress bar gets shown in the notification area. The downloading and progress bar is working fine, but i have the following two problems

  1. When the download completes the progress bar is not getting closed, it remains in the notification area
  2. As i said above i have 4 buttons and when the first button is clicked download gets started and when the other three buttons are clicked immediately download is not taking place. I thought it may start after first download completes. But nothing happens. How to show all the progress bar when all buttons clicked

Following is my code(here i have added only 2 buttons) pls help me

Next following is my Uplaod Service.class