开发者

dynamic jProgressbar

开发者 https://www.devze.com 2023-02-05 00:27 出处:网络
I have a class extending JDialog, it contains a JTextField and a button开发者_StackOverflow中文版, a 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

精彩评论

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