开发者

dynamic jProgressbar

I have a class extending JDialog, it contains a JTextField and a button开发者_StackOverflow中文版, a jProgressbar when user cliks on the button a Jprogress bar(Dynamic) must be visible


Add you JProgressBar to Frame when user clicks on Button and repaint the frame. Your progrss bar will be visible.

In button press event:

public void actionPerformed(ActionEvent ae)
{
     ..........

     add(progressBar);
     repaint();

     .........
}

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜