|
spoollist.java:0: Class com.sun.java.swing.JComponent not found in class com.ibm.as400.vaccess.SpooledFileViewer. import com.ibm.as400.access.*; Where can I find the class com.sun.java.swing.Jcomponent import com.ibm.as400.access.*; import com.ibm.as400.vaccess.SpooledFileViewer; import java.io.*; import java.net.*; import java.util.Enumeration; public class spoollist { public static void main(String[] args) { try{ AS400 as400 = new AS400("MICO11" ,"EDSBVE" , "SHANMUGA1"); SpooledFileList spllist = new SpooledFileList(as400); spllist.setUserFilter("EDSBVE"); spllist.openSynchronously(); Enumeration e = spllist.getObjects(); if(spllist.isCompleted()) { System.out.println("List Successful"); System.out.println(spllist.size()); } for(int i = 0;i<= spllist.size()-1;i++) { SpooledFile spf = (SpooledFile)spllist.getObject(i); System.out.println(spf.getName()) ; } SpooledFile spf2 = (SpooledFile)spllist.getObject(2); SpooledFileViewer splfv = new SpooledFileViewer(spf2, 1); splfv.load(); // Add the spooled file viewer to a frame JFrame frame = new JFrame("My Window"); frame.getContentPane().add(splfv); frame.pack(); frame.show(); System.out.println(" "); System.out.println("Finish"); spllist.close(); } catch (Exception e) { System.out.println("Error is Processing" + e); } } } +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.