E
EdUarDo
Hi there. In a class that extends from JApplet I have some panels with
several components like JTree (within a JScrollPane), a JList, some
combo boxes, etc...
When the user select an option from a combo, the applet access to a database
and load data into the JTree and JList components. What I want is to show
a JProgressBar with indeterminate finish time, while data is being load.
I know how to create an indeterminate JProgressBar:
JProgressBar bar = new JProgressBar();
bar.setStringPainted(true);
bar.setString("");
bar.setIndeterminate(true);
and I add it to my applet when user change the selected item from a combo box:
this.getContentPane().add(bar);
But the bar it isn't shown. What am I doing wrong?
several components like JTree (within a JScrollPane), a JList, some
combo boxes, etc...
When the user select an option from a combo, the applet access to a database
and load data into the JTree and JList components. What I want is to show
a JProgressBar with indeterminate finish time, while data is being load.
I know how to create an indeterminate JProgressBar:
JProgressBar bar = new JProgressBar();
bar.setStringPainted(true);
bar.setString("");
bar.setIndeterminate(true);
and I add it to my applet when user change the selected item from a combo box:
this.getContentPane().add(bar);
But the bar it isn't shown. What am I doing wrong?