GUI question
hello,
i have question regarding adding an additional GUI to an existing GUI.
i have the following placed inside of the action listener of a
button:
i am trying to implement the following but all i am getting is a
second blank popup window (no progress bar).
this UI is popped up after i click a "go!" button. the
meat of the analysis code executes.
once this starts i would like to watch my progress bar do what it is
made to do. you know. progress!
[code]
public void actionPerformed(ActionEvent arg0) {
JFrame1.setSize(270, 250);
JFrame1.setLocation(200, 200);
JFrame1.setResizable(false);
Insets insets = JFrame1.getInsets();
JFrame1.setLayout(null);
JProgressBar JProgressBar1=new JProgressBar(0,100);
JProgressBar1.setValue(50);
JProgressBar1.setStringPainted(true);
Dimension size=JProgressBar1.getPreferredSize();
JProgressBar1.setBounds(insets.left,insets.top,size.width,size.height);
JFrame1.add(JProgressBar1);
JFrame1.setVisible(true); //i can see this. and all
the applied choices are true. i cannot resize and it appears where it
should at the correct size. but lo and behold, not progressbar.
for (int i=0;i<=Out.size()-1;i++){
JProgressBar1.setValue(i);
//other operations..
}
System.exit(0);