- public synchronized int addJobPane() {
- JScrollPane jobpane = new JScrollPane();
- JTextArea progressText = new JTextArea();
- progressText.setFont(new java.awt.Font("Verdana", 0, 10));
- progressText.setBorder(null);
- progressText.setEditable(false);
- progressText.setText("WS Job");
- progressText.setLineWrap(true);
- progressText.setWrapStyleWord(true);
- jobpane.setName("JobPane");
- jobpane.getViewport().add(progressText, null);
- jobpane.setBorder(null);
- if (jobPanes==null) {
- jobPanes = new Vector();
- }
- int newpane = jobPanes.size();
- jobPanes.add(jobpane);
-
- if (newpane==0) {
- this.add(jobpane, BorderLayout.CENTER);
- } else {
- if (newpane==1) {
- // revert to a tabbed pane.
- JScrollPane firstpane;
- this.remove(firstpane=(JScrollPane) jobPanes.get(0));
- subjobs=new JTabbedPane();
- this.add(subjobs, BorderLayout.CENTER);
- subjobs.add(firstpane);
- subjobs.setTitleAt(0, firstpane.getName());
- }
- subjobs.add(jobpane);
- }
- return newpane; // index for accessor methods below
- }
- /**
- * Creates a new WebserviceInfo object.
- *
- * @param title short name and job type
- * @param info reference or other human readable description
- */
- public WebserviceInfo(String title, String info)
+ public synchronized int addJobPane()
+ {
+ JScrollPane jobpane = new JScrollPane();
+ JTextArea progressText = new JTextArea();
+ progressText.setFont(new java.awt.Font("Verdana", 0, 10));
+ progressText.setBorder(null);
+ progressText.setEditable(false);
+ progressText.setText("WS Job");
+ progressText.setLineWrap(true);
+ progressText.setWrapStyleWord(true);
+ jobpane.setName("JobPane");
+ jobpane.getViewport().add(progressText, null);
+ jobpane.setBorder(null);
+ if (jobPanes == null)