📄 progressbar.java,v
字号:
head 1.2;access;symbols;locks; strict;comment @# @;1.2date 2005.03.11.23.46.27; author patil; state Exp;branches;next 1.1;1.1date 2004.12.28.00.04.32; author patil; state Exp;branches;next ;desc@@1.2log@comments changed to Java Documentation.@text@/** * 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); }}@1.1log@Initial revision@text@d1 4a4 2// file: ProgressBar.java//d15 12a26 9// 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 {d42 12a53 9 // method: ProcessBox // // arguments: none // returns : none // // constructor initializes the text area and scroll bar objects // ProgressBar() {d72 12a83 9 // method: add_components // // arguments: none // return : none // // add components to the input panel // public void add_components() {d85 14a98 3 constrain(this, progressBar, 0, 0, GridBagConstraints.REMAINDER, GridBagConstraints.REMAINDER, GridBagConstraints.BOTH, GridBagConstraints.NORTHWEST, 1, 1, 0, 0, 0, 0);a100 3//// end of file@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -