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

📄 progressbar.java

📁 包含了模式识别中常用的一些分类器设计算法
💻 JAVA
字号:
/** * file: ProgressBar.java * */// import necessary java libraries//import java.awt.*;import javax.swing.*;import javax.swing.border.*;//These imports are not needed - Phil T. 6-23-03//import java.awt.event.*;/** * class: ProgressBar * * ProgressBar inplements the text area to the right of the applet that  * acts as a process description for the various algorithms being used * * hierarchy: JPanel->SubPanel->ProgressBar * */class ProgressBar extends SubPanel {        // *********************************************************************    //    // declare global variables and components    //    // *********************************************************************    // declare components    //    JProgressBar progressBar;    // *********************************************************************    //    // declare class constructors    //    // *********************************************************************    /**        * method: ProcessBox     *     * @param   none     * @return  none     *     * constructor initializes the text area and scroll bar objects     *     */    ProgressBar()     {	// set the border for the panel	//	Border lineBorder = BorderFactory.createLineBorder(Color.black);	setBorder(lineBorder);	// declare the progress bar components	//	progressBar = new JProgressBar();        progressBar.setValue(0);        progressBar.setStringPainted(true);    }    // *********************************************************************    //    // declare class methods    //    // *********************************************************************    /**         * method: add_components     *     * @param   none     * @return  none     *     * add components to the input panel     *     */    public void add_components()     {		constrain(this, 		  progressBar, 		  0, 		  0, 		  GridBagConstraints.REMAINDER, 		  GridBagConstraints.REMAINDER, 		  GridBagConstraints.BOTH,		  GridBagConstraints.NORTHWEST, 		  1, 		  1, 		  0, 		  0, 		  0, 		  0);    }}

⌨️ 快捷键说明

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