Printing from Applet with JRE1.5

My customers want to upgrade to JRE1.5, but I have been unable to
make any of my Applets work with JRE1.5....
Q.What have they changed????
// Print receipt
void Print() {
DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
PrintService printService = PrintServiceLookup.lookupDefaultPrintService();
DocPrintJob job = printService.createPrintJob();
PrintJobListener pjlistener = new PrintJobAdapter() {
public void printDataTransferCompleted(PrintJobEvent e) {
return;
job.addPrintJobListener(pjlistener);
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
// pras.add(new Copies(2));
pras.add(new JobName("MyJob",null));
DocAttributeSet das = new HashDocAttributeSet();
Doc doc = new SimpleDoc(Print_Area, flavor, das);
try {
job.print(doc, pras);
} catch (PrintException pe) {
pe.printStackTrace();
}

yes My Ipad will not see my printer on wifi it was working 100% till the IOS 5 update and apple don't seem to be looking into this fault.
If they want folk to not buy apple stuff there going the right way about it every update sees a new problem.
it is used in the office so how they can't notice that the print function is not working.
or should I say not seeing the printer what else is screwd up.
unhappy user here

Similar Messages

  • Print From Applet

    Can I print from an Applet without signing it or messing about with the policy file? A simple enough question but one I haven'e been able to find a definitive answer for. If possible I'd like to avoid popping up a new browser window with the document to be printed.

    An Applet runs in a sandbox which without proper authentication, will not allow any actions outside the sandbox, i.e. on the local filesystem.
    You cannot print from an unsigned applet.
    The signing process is very simple using Jarsigner and the Java Plugin.
    You can generate your own certificates too, no need to purchase one.

  • Help! How to Open a Frame from applet with

    Hey all. I need help =).
    I want:
    1. Have 1 class extends applet with running thread (this far no prob)
    2. Open a new frame from the applet (no prob)
    3. Start a new thread which is operating "inside" the new Frame/class
    4. Draw a simple Rect in the new Frame with the new thread to test that the graphics work.
    Plz help,
    ~Trobsky

    �rr..... i cant draw on the Frame =(.
    Heres the code:

    public class Fonster extends java.applet.Applet {
         Frame myFrame;
         Fri friFonster=new Fri();
         public void init() {
              myFrame=new Frame();
              myFrame.resize(300,300);
              myFrame.show();
              myFrame.add(friFonster);
              friFonster.init();
              friFonster.start();
         public void paint(Graphics g)
              g.drawRect(10,10,100,100);
    public class Fri extends java.applet.Applet {
         public void init(){
              repaint();
         public void paint(Graphics g)
              g.drawRect(10,10,200,200);

  • Can't print from firefox with HP Pro 8600

    I just bought an HP Officejet Pro 8600.  I am able to print through Internet Explorer but not Firefox. The printer icon comes on but  It just won't print anything.  I am using Windows XP. 
    My second problem is - I can receive faxes and fax to a person with a separate number from their home number.  But I can't fax to a person who has the same number as their home phone and fax.
    Any help on these 2 issues will be so appreciate!
    This question was solved.
    View Solution.

    HI sjane39,
    Here is a support page for troubleshooting printing from Firefox. It appears as though if you can print from IE that your print drivers are installed and working properly. It sounds like a setting in Firefox.
    Let us know if this helps.
    For your fax issue you can run the Fax Diagnostics Test. It will help diagnose and resolve common fax issues.
    Also let us know about this one.
    Good luck.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

  • Cannot print from IE11 with adobe reader 9.4.2

    When we open pdf files within IE11 and try and print, the printer properties box becomes unresponsive.
    we need to crash IE to resolve it, but are unable to print.
    we cannot upgrade Adobe Reader as we have another application which doesn't work with anything higher.
    I saw there was a workaround for adobe acrobat, but we need a fix for reader if possible
    changing the setting in adobe to open the pdf in it's own window is not a solution for us either

    No difference in output using the latest version.
    We are printing to Xerox WorkCentre 7425/7435 printers. When printing from a full version of Adobe Acrobat the advanced button of the Print Driver popup has check options for Marks under Marks and Bleeds while printing from Adobe Reader does not.

  • WhenI print from firefox on a Mac everything comes out 50% too light, if I save the image and print from the desktop it looks fine. No problem either printing from FF with Win7. How do I fix FF on the Mac?

    My iMac runs bootcamp, so I have both OSX and win7 available. I run the latest Firefox on both as my primary browser. The printing looks like the ink is running low, but when the same image is printed from other desktop apps the printing looks fine.

    Hi, Jordan -
    Welcome to Apple's Discussions.
    If the original drive in the newer Mac is a Western Digital, its jumpers may be set to Single, which WD drives often use when there is only one device on the bus. When a second drive is added, the jumpers on the original must be reset to Master.
    OS 9's utility is named Drive Setup - you should find it in the Utilities folder on the hard drive. Run that. Select the added hard drive in the list, then select Mount Volume from the Functions menu.
    You can also check with that utility to see if the OS believes the drive has been set to automount at boot. Again, select the drive in the list. Then select Volume Settings from the Functions menu - there's a checkbox in that screen to set automount (for freshly initialized drives, that's turned on by default).
    Also, try running Disk First Aid (should also be in the Utilities folder). Let it have a look at the second drive, and repair anything it can.
    Apple System Profiler should report the format of all drives it sees. Is the format of the drive from the old Mac stated as Mac OS Standard, or as Mac OS Extended?

  • Printing From Applet Problem

    Hi,
    I created this simple applet that has a combox with all installed printers, a textare (where the user will type whatever he wants to print) and a button that is suppose to print the textarea content to the selected printer. It works fine if a run the applet itself, but when I load it to a webpage, the applet runs nicely, it asks me for permission to access the printer but when I click the "Print Now", it just doens't print :(
    Thanks a lot,
    Dirso
    import java.awt.event.*;
    import javax.swing.*;
    import javax.print.*;
    import javax.print.attribute.*;
    import javax.print.attribute.standard.*;
    * @author Dirso
    public class JRPrinter extends JApplet implements ActionListener {
         JComboBox cbPrinters = new JComboBox();
         PrintService[] services = null;
         JTextArea ta = new JTextArea();
         /* (non-Javadoc)
          * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
         @Override
         public void actionPerformed(ActionEvent arg0) {
              // TODO Auto-generated method stub
              PrintService psZebra = services[cbPrinters.getSelectedIndex()];
              DocPrintJob job = psZebra.createPrintJob();
              byte[] by = ta.getText().getBytes();
              DocFlavor flavor = DocFlavor.BYTE_ARRAY.AUTOSENSE;
              Doc doc = new SimpleDoc(by, flavor, null);
              try
                   job.print(doc, null);
              }catch (PrintException e3) {
                   ta.setText(e3.getMessage());
         public void init() {
              // cria as impressoras
              services = PrintServiceLookup.lookupPrintServices(null, null);
              for (int i = 0; i < services.length; i++) {
                   PrintServiceAttribute attr = services.getAttribute(PrinterName.class);
                   cbPrinters.addItem(((PrinterName)attr).getValue());
              // crie o botao de imprimir
              JButton button = new JButton("Print Now");
              button.addActionListener( this );
              JPanel p2 = new JPanel();
              p2.add(cbPrinters);
              p2.add( button );
              getContentPane().add( "North", p2 );
              //getContentPane().add( "North", p1 );
              getContentPane().add( "Center", new JScrollPane(ta) );

    Well, I made a .jar file including that .class and a java.policy.applet with the following code and finally I signed it... Looks like it worked, I'll have more answers tomorrow and I'll let you all know about.
    grant {
      permission java.security.AllPermission;
    };Best Regards,
    Dirso

  • Has anyone resolved the printing from Safari with borders issue??

    I go to print from Safari and it won't let me set a border, it always prints right up to and over the left hand edge even when set at less than 100%!!
    Can this be corrected??

    So it sounds like you're starting with Safari's "Print" command, only there is no printer!  I understand you're trying to end up with PDF, and that this worked for you in the past.
    Here's an alternate approach to accomplish what you're trying to do: Take a screen shot.
    You can either press Shift Command 3 to take a shot of your entire screen, or Shift Command 4 to take a partial screen shot (scroll the crosshairs over the rectangular region).
    The resulting shot will end up on your desktop.

  • Can't print from mini with mountain lion to To printer being shared on ppc with 10.5.8

    Since installing mountain lion on my mini, I cannot print to my shared printer connected to my iMac running 10.5.8. Works fine from another iMac with 10.5.8.

    OK, here's more info
    The printer is a Canon MP160 that is connected via USB to 17" imac running OS 10.5.8. After installing Mountain Lion on the Mac Mini, I cannot print to that shared printer on my network. I can add the printer to the mini but when i try to print, i see the file in the print queue on the mini, and it processes and looks normal but there is no activity on the imac and nothing prints.
    This worked perfectly with previous operating systems, ie snow leopard and then lion. I have done everything I could do to fix this including resetting the printing system on both computers.
    I tested the shared printer from another imac that i have that is running 10.5.8 also and it works perfectly.

  • Color cast when printing from Lightroom with Epson 3880 printer

    Just got an epson 3880 printer. Printing on epson paper is fine. But printing on Ilford or Moab or other papers from lightroom and photoshop have a terrible magenta color cast.
    WHen I print the same image from Preview, with the same print driver settings, it looks fine. So somehow the adobe apps (or my settings) are messing up the color sync.
    I used to have an espon 2400 which worked just fine.
    I have Mac OSX-10.9.1. Monitor is calibrated. (Prints to epson paper with their profiles look great...it's just other profiles that are really bad).
    I need help!

    Are you using moab icc profiles or are you using one of the epson profiles?
    I always use the moab profiles which you can download from their Web site. This way you are matching the specific epson printer with the specific moab paper.
    At that point you change the printer manages color to Lightroom manages color and select the specific profile. Very easy to do - they even have instructions on the Moab site for installing the profiles if you haven't done that.
    Once installed you can also use them through the system print dialogs in PS but it is really much much easier to use in LR - Since coming on board with LR last summer, I have switched to doing ALL printing from LR. Since you mentioned that you are having the same problem with LR and PS, I'm betting you are using epson profiles and this will solve your problem.
    Hope so
    Tom

  • Printing from iPad with no wi-fi?

    I've been researching this for a while and have found some ideas, but nothing satisfactory. My grandmother lives in the country where only dial-up or satellite internet access is available. Dial-up greatly limits her, and satellite is too expensive. I got her an iPad for her birthday and I think the 3G connection will be a happy medium, and less expensive for what she does. However, she prints things sometimes, but her printer is several years old and does not have wi-fi capability, nor does she have a wi-fi network set up in her house. Here's what I've come across so far, and I'd like some suggestions on the best route to take.
    1. Use her existing eMac (running either Panther or Tiger) and create a wi-fi network, and use printer sharing. I'm not sure if the older versions of OSX allow you to do this, or even how to set that up in the Network or Sharing Preferences. Also, if she needs to print, she'd have to switch from 3G to wi-fi, which is a hassle and a burden for a 79 year-old.
    2. Get an Airport Express and set up a local wi-fi network, plug the USB printer into it, thereby making the printer wireless. Again there's the problem of having to switch between 3G and wi-fi.
    3. Find an HP printer that supports airprint and can create it's own network without wi-fi, such as the Envy (which is too expensive for me). I don't know if HP makes less expensive printers that create their own network. Also, I don't know if she has to switch between 3G and wi-fi to do this, or if the iPad will pick up the printer without leaving 3G.
    Lastly, this needs to be a permanent connection that doesn't have to be set up everytime she prints. I live 2 hours away, so whatever is easier for her is better. Thanks so much!

    With the AirPrint application/utility, mentioned earlier, you should be able to keep your existing printer attached to your eMac (running Tiger 10.4). The mLabs website mentions configuring your existing printers, and the existing printer will be advertised over AirPrint (WiFi).  This should help you save from having to buy a new printer.  If the printer still works, I say use it!  Try to keep the total advertised AirPrint Printer combined network path and printer name to less than 63 characters total.
    With regard to the Airport Express, I suspect that you may need to get one.  They serve as a central point, i.e. communications hub.  I'm new to this and not real sure about following. I suspect that the computer and iOS device, with respect to WiFi, will use the same frequency to transmit and receive. Since they are both clients to a router/switch/hub I suspect both (iPad & eMac) would use the same WiFi frequency for transmit and receive.  If both use the same frequency to transmit then there will be a communication problem when trying to talk directly to one another.  Same for the receiving.  I suspect the Airport Express may service as a transition point and the computer must advertise the AirPrint printer over the network (in your home) via the Airport Express.
    Your eMac, when purchased, could have been installed with an airport card providing WiFi with 803.11b protocol.  If no airport card then your looking at connecting your eMac by way of 10/100Base-T Ethernet to the AirPort Express via wire cable.  Lets assume you'll be using a ethernet cable for your computer connection.  This would make your connection look like an eMac with a direct connected printer, AirPrint software application, and the preferences set to allow the printer to be a network shared printer.
    On your #1 line item, you probably won't have to switch from 3G to WiFi.  You will just supplement the 3G with the addition of WiFi to allow printing from the iPad.  The iPad will normally operate on the 3G, but when it comes to printing, the iPad will kick-in the WiFi.  The iPad has the ability to use both WiFi & 3G.  To the user it will appear as if both are working at the same time (seamless).  Remember the iPad does not and will not contain specific printer drivers, it only has a printer address to sent a job (image) to. The print job will be received by the AirPrint application on your eMac (computer required to be on, up, and running), the AirPrint application will then, using the appropriate printer driver within your eMac, convert the printer job (image) to the printer binary and send it to the printer directly.
    On your #2 line item, unless the printer you connect to the USB port is AirPrint ready (or "ePrint-enabled" for HP printers), it will not properly serve as a printer for your iPad. Remember the printer drivers, or lack thereof, is the issue here; the iPad doesn't and won't have any.  With your existing printer the AirPort Express will only serve as the hub to your home network. Print jobs will go from your iPad via Wifi and then to the computer via 10/100Base-T Ethernet... Don't get me wrong here, if you did get a non-AirPrint (non-e-Print enabled) printer connected via USB to the AirPort Express, it could serve as a network printer for other computers; other computers that utilized their own printer drivers. But it would not serve as a solution for your Grandmother's iPad.  If your going to connect a printer to the AirPort Express it has to be Airprint or ePrint-enabled.
    If the printer you connect to the Airport Express USB port is ePrint-enabled, then you would not need your eMac to do the translating of the print job image to the printer binary.  When checking HP website titled:
        HP AirPrint Compatible Wireless Products - How to Use Apple's AirPrint Over a Wireless Network
        Frequently asked questions (FAQs) about AirPrint
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&task Id=115&prodSeriesId=4073853&prodTypeId=18972&objectID=c02623193
    This is where you have to decide. If you want to use your existing printer, then you will have to have the eMac on,up, and running whenever your Grandmother wants to print.  Otherwise, for the convenience, you will have to purchase an AirPrint or e-Print ready printer.  If you do decide to get an HP e-Print ready printer, HP recommends updating its firmware-Indicated in above HP web site.
    On your #3 line item:  I see 3 options:
    1. Use existing eMac, existing printer, and purchase AirPort Express. This is probably the cheapest alternative (in materials) but requires the eMac to be on, up, and running to print.
    2. Purchase an e-Print ready printer, and purchase AirPort Express. Cost is a bit more.
    3. Purchase AirPort ready printer. Cost?
    For now, option 1 looks good.  If your Grandmother is unhappy with keeping the computer on, then add an e-Print enabled printer via USB or Ethernet cable. But you decide on what your needs are and stay within your budgets.
    Please let us know your actions and results so that others can learn from the experience.
    2003 iMac G4, PPC, Mac OS X (10.4.11)

  • Printing from Internet with Vista and Hp all in one 1610

    I have a new computer and installed my HP all in one 1610 printer.  The printer works perfectly well when I print from Microsoft Office but not from internet explorer.  I have tried diagnostics and reinstalled printer drivers but no success.  The print job goes to the print queue and disappears as if it is printed but the printer does not print.  Any suggestions?

    Just curious, have you tried printing from another browser? Cos if you're able to print from other applications, and not from IE, then I don't think it is a printer problem, but rather a problem with IE.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • Can you print from DOS with Photosmart Premium C410 a ?

    Installed printer but cant print from DOS.Can this printer be used to print from DOS Works fine printing from Windows XP
    Thanks

    First, AirPrint is not something you buy. It's built into iOS.
    Second, John asked if you could print from an iPad with a cable:
    Can you print from an I pad with a cable?
    Third, in your reply to me, you said "you can" which would imply that one can print from an iPad via a cable, which again cannot be done.

  • I am not able to print from iPad with a hp photosmart c4795

    I do not know if my printer has airprint. When I select printer from my iPad it says no printer found. It is a wireless printer and we currently can use it with our desktop Mac. Any help appreciated.

    Hi,
    Your printer is not an Airprint printer (not in the following list) therefore iPad can't see it using AirPrint:
       http://support.apple.com/kb/ht4356
    Please use the following app on iPad to print:
       http://www.hp.com/united-states/campaigns/mobility/
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Print from applet, signed jar

    Hi all
    Have a signed applet that runs under IE 6, java 1.5. The applet is basically used for printing purpose.
    My problem is that the applet shows a dialog box "Applet would like to print. Do you want to proceed?"
    How can I get rid of the dialog box?
    I don't want to change the Java file.
    Thanks in advance

    An Applet runs in a sandbox which without proper authentication, will not allow any actions outside the sandbox, i.e. on the local filesystem.
    You cannot print from an unsigned applet.
    The signing process is very simple using Jarsigner and the Java Plugin.
    You can generate your own certificates too, no need to purchase one.

Maybe you are looking for

  • Oracle BI Delivery - Run Agent

    Hello, Sorry for copied huge log here. I was try to run Agent with send email attached analysis or briefing books. but it was following errors. My system has connected to LDAP server, also i already configured mail server in  EM (http://localhost:700

  • Validation failure resetting the values

    Hi, when ever the validation fails on a specific text field, it is resetting the value of the field. Is there any possibility to retain the value in the text field even the validation fails. Thanks and Regards, S R Prasad

  • What is the new hole on the face of the iPhone 4S for?

    Above the screen of an iPhone 4 you find a long horizontal hole used as a speaker to place next to your ear.  The iPhone 4S has an additional horizontal hole above the "ear speaker".  What is this new hole for? Wild guess..  A second microphone for n

  • CC5.3 Variants?

    Hello, Does anyone know if there's a way to export/import Risk Analysis Variants in CC5.3? I've created several variants for running scheduled risk analysis in a sandbox environment which took me awhile to do (different combinations of country codes

  • Columns should be left justified

    Hi all, I used a t:dataTable to display my search results, My req says all the columns should be left justified, how can I do that? Can some one help me in this?