当前位置: 技术问答>java相关
奇怪问题,编译过 了,却没看见窗体出现
来源: 互联网 发布时间:2015-09-21
本文导语: 一下是我得代码 : package Progress; import java.awt.*; import java.awt.event.* ; import javax.swing.*; public class Progress extends JFrame { JProgressBar current; JTextArea out ; JButton find; Thread runner; int num =0; ...
一下是我得代码 :
package Progress;
import java.awt.*;
import java.awt.event.* ;
import javax.swing.*;
public class Progress extends JFrame {
JProgressBar current;
JTextArea out ;
JButton find;
Thread runner;
int num =0;
public Progress() {
super("abin");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel pane = new JPanel();
pane.setLayout(new FlowLayout());
current.setValue(0) ;
current.setStringPainted(true);
pane.add(current);
setContentPane(pane);
}
public void iterate(){
while (num
package Progress;
import java.awt.*;
import java.awt.event.* ;
import javax.swing.*;
public class Progress extends JFrame {
JProgressBar current;
JTextArea out ;
JButton find;
Thread runner;
int num =0;
public Progress() {
super("abin");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel pane = new JPanel();
pane.setLayout(new FlowLayout());
current.setValue(0) ;
current.setStringPainted(true);
pane.add(current);
setContentPane(pane);
}
public void iterate(){
while (num