⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e802. creating a jprogressbar component with an unknown maximum.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
A progress bar with an unknown maximum typically displays an animation until the task is complete. 
Note: The percentage display should not be enabled when the maximum is not known (e804 Displaying the Percentage Done on a JProgressBar Component). 

    // Create a horizontal progress bar
    int min = 0;
    int max = 100;
    JProgressBar progress = new JProgressBar(min, max);
    
    // Play animation
    progress.setIndeterminate(true);

When information on the task's progress is available, the progress bar can be made determinate: 
    int value = 33;
    progress.setValue(value);
    progress.setIndeterminate(false);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -