Keylistener broken when applet implemented into application

I am currently trying to imbed my "Game" into an application to make a game menu for it. However, when
i try and do this the game loads fine but my keylistener doesnt work.
I am using the code.
import java.awt.*;
import java.applet.*;
public class RunApplets_BROKEN
public static void main (String [] args)
Applet myApplet = new Bomberman_Version_Aplha_EDITABLE (); // define applet of interest
Frame myFrame = new Frame ("Applet Holder"); // create frame with title
// Call applet's init method
myApplet.init ();
// add applet to the frame
myFrame.add (myApplet, BorderLayout.CENTER);
myFrame.setSize (500, 600);
myFrame.setVisible (true); // usual step to make frame visible
} // end main
} // end class
I am wondering if the problems exists in where i am calling the keylister into the application but it does not call
the methods (such as keylistener), altho i call the init method in the application. Do i have to call the keypressed and such methods also?

The way you are approaching this is not a good idea though.
Don't try and plug an applet into a Frame. It's not that simple. An applet has a context for example and yours doesn't. If you have a program that you want to use as both an applet and an application then you should make your applet just behave as the bootstrapping component and take your GUI stuff to another class. Then you can use this common class (maybe a JPanel/Panel) in multiple places (Frame, Applet, etc).

Similar Messages

  • Ever since I updated my Mac to Maverick it has become exceedingly slow everywhere. Also annoying, when I go into Applications to open something, it now automatically opens 3 things I don't need. What can I do to fix this?

    Ever since I updated my Mac to Maverick it has become exceedingly slow everywhere. Also annoying, when I go into Applications to open something, it now automatically opens 3 things I don't need. What can I do to fix this?

    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Mavericks doesn't ask for password when copying files into applications folder (e.g. installing plugins for After Effects)

    For example, when i was copied a plugin for after effects into the plugins folder, finder asked me for my password and now it doesn't. I can just copy it directly without any authentication.

    Do you have Service Pack 1 for Windows 7? It's listed in the system requirements for CC 2014. If you don't have SP1, AE won't run.
    That GPU sniffer error message is usually what happens. This should be a simple fix! Of course, you should always take the normal precautions when updating an OS, but still...

  • Can't see list of minimized windows when I minimize windows into application

    I love the Mac option to minimize windows into application icon, but recently it's behaving abnormally for me. When I minimize, for example, three Word documents into the application icon, I don't see the list of those documents when I click on the icon (they usually stack vertically in the menu, above "Options"). To see those documents, I have to click the application icon and select "show all windows".
    I can't figure out what's going on, and it's driving me nuts.
    What I'm seeing (I have three documents minimized into the Word application here):
    What I should be seeing (This is just a screen grab from a tutorial, not my machine):
    Here are my current dock preferences/settings:
    I've already rebooted. Any ideas? Thanks in advance!!

    You need to look in your user Library/Preferences for the .plist. Hold down the option key while using the Finder “Go To Folder” command. Enter ~/Library/Preferences/com.apple.dock.plist.  Move the .plist to the trash..
    In Applications/Utilities/Terminal type
    killall Dock
    Restart and test. You may have to update your dock to the way you want it.
    If you prefer to make your user library permanently visible, use the Terminal command found below.
    http://osxdaily.com/2011/07/04/show-library-directory-in-mac-os-x-lion/
    You might want to bookmark the command. I had to use it again after I installed 10.8.4. I have also been informed that if you drag the user library to Finder it will remain visible.

  • Hi i haven't updated my iDVD seen 2005 and to get the new one i need 7.0.4 first and i downloaded it from the apple website and when i go into the updating process its says "An eligible iDVD application was not found in the location /Applications." why"

    Hi i haven't updated my iDVD seen 2005 and to get the new one i need 7.0.4 first and i downloaded it from the apple website and when i go into the updating process its says "An eligible iDVD application was not found in the location /Applications." why

    Because you need to buy iLife 08 or newer on DVD first. If you're using iDVD 05, you probably have a PowerPC Mac and can't use iLife 11.
    (69573)

  • Unable to download application app will be available for download when you log into the itues store on your computer

    My Ipad 2 keeps asking:-
    "unable to download application 'app' will be available for download when you log into the itunes store on your computer"
    If i connect it to the computer it is fine for around a week then it starts asking to be connected again, Is their any reason for this? as it is very annoying espicailly when access to a pc is difficult

    There is a 20mb file size limit over 3G.
    If you can connect via wifi, there is no file size limit.
    If that is not what you mean, I have no idea-never heard of or seen a message like you describe.

  • What does it mean when I log into Facebook and a pop-up comes out saying "[JavaScript Application] Error: jQuery("#fb_menu_account a", document).attr("href") is undefined"?

    What does it mean when I log into Facebook and a pop-up comes out saying "[JavaScript Application] Error: jQuery("#fb_menu_account a", document).attr("href") is undefined"? I would like to know what I can do to fix this. The site ends-up running slow. I have tried clearing the cookies and cache, but that doesn't work.
    == URL of affected sites ==
    http://www.facebook.com

    Does is still happen in Firefox Safe Mode. See [[Safe Mode]].
    If so, it's probably being caused by an add-on.

  • When i logged into itunes on my computer, all of my applications and music i had bought on my ipod were erased, what do i do?! Help!

    When i logged into itunes on my computer, all of my applications and music i had bought on my ipod were erased, what do i do?! Help!

    allears2 wrote:
    I just purchased a new laptop and I am trying to transfer my iTunes library to my new laptop...
    To have  EVERYTHING  on your New computer...
    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    Full Details Here  >  http://support.apple.com/kb/HT1751
    An Added Bonus is that you will have a Backup of iTunes.

  • There is anyone can convert applet code to application code?

    i got this applet code and would like to convert it to application code but don't know how.Anybody convert this please?
    thanks in advance.
    [email protected]
    //This program was completely written by Peter Wetsel.
    //If there are any questions about this code you
    //can email me at [email protected]
    //To get it to compile using jdk type "javac -nowarn battle.java".
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    import java.lang.*;
    public class battle extends java.applet.Applet implements Runnable {
         Color col;
         String message= new String("");//holds the message placed in the upper left
         String Status = new String("");
         String message2[]= new String[5];//holds the destroyed messages in order for repainting.
         int hits=0;//the total number of hits by the player
         int numDestroyed=0;//the number of ships destroyed by the player
         int battlepos[]=new int[4];//the 4 positions of the battleship
    int carrierpos[]=new int[5];//the 5 positions of the carrier
         int subpos[]=new int[3];//the 3 positions of the submarine
         int patrolpos[]=new int[2];//the 2 positions of the patrol boat
         int destroyerpos[]=new int[3]; //the 3 positions of the destroyer
         int guesses=0;// the number of guesses by the player
         int player[][]=new int[10][10]; //to hold the positions of the player.(not until version 2)
         int guessed[][]=new int[10][10]; //hold the places that have been guessed by the player
         int computer[][]=new int[10][10]; //holds where the computers ships are
         int battleshipHitCt, destroyerHitCt, subHitCt, patrolHitCt, carrierHitCt;//keeps the hit count for each of the ships
         boolean init=false;//false until play is pushed.
         boolean ok=false;//boolean that is true if current boat position chosen by random is ok(getcarrier(), etc.)
         boolean battleOK=true;//false when the type of ship is destroyed
         boolean patrolOK=true;//...
         boolean subOK=true;//...
         boolean destroyerOK=true;//...
         boolean carrierOK=true;//...
         boolean won=false;//true when the player has won
         int o;
    public static void main (String args [])
    Frame frame = new Frame () ;
    battle applet = new battle () ;
    frame.add (applet) ;
    applet.init () ;
    applet.paint(g);
    applet.start () ;
         public void getCarrier(){
              int x, y, dir; //will hold a random x & y coordinate(0-9), and a random direction(0-1)(N,E,S,W)
              x=(int)(10*Math.random());
              y=(int)(10*Math.random());
              dir=(int)(100*Math.random()/25);
              if(dir==0)
                   while(y<4){
                        y=(int)(10*Math.random());
                   for (int i=0; i<5; i++){
                        computer[x][y-i]=1;
                        carrierpos=x*10+y-i;
              if (dir==1)
                   while(x>5){
                        x=(int)(10*Math.random());
                   for (int i=0; i<5; i++){
                        computer[x+i][y]=1;
                        carrierpos[i]=(x+i)*10+y;
              if (dir==2)
                   while(y>5){
                        y=(int)(10*Math.random());
                   for (int i=0; i<5; i++){
                        computer[x][y+i]=1;
                        carrierpos[i]=x*10+y+i;
              if (dir==3)
                   while(x<4){
                        x=(int)(10*Math.random());
                   for (int i=0; i<5; i++){
                        computer[x-i][y]=1;
                        carrierpos[i]=(x-i)*10+y;
         public void getBattle(){
              int x, y, dir;
              x=(int)(10*Math.random());
              y=(int)(10*Math.random());
              dir=(int)(100*Math.random()/25);
              while(!ok){
                   ok=true;
                   x=(int)(10*Math.random());
                   y=(int)(10*Math.random());
                   dir=(int)(100*Math.random()/25);
                   if(dir==0)
                        while(y<3){
                             y=(int)(10*Math.random());
                        for (int i=0; i<4; i++){
                             o=computer[x][y-i];
                             if (o==1){
                                  ok=false;
                   if (dir==1)
                        while(x>6){
                             x=(int)(10*Math.random());
                        for (int i=0; i<4; i++){
                             o=computer[x+i][y];
                             if (o==1){
                                  ok=false;
                   if (dir==2)
                        while(y>6){
                             y=(int)(10*Math.random());
                        for (int i=0; i<4; i++){
                             o=computer[x][y+i];
                             if (o==1){
                                  ok=false;
                   if (dir==3)
                        while(x<3){
                             x=(int)(10*Math.random());
                        for (int i=0; i<4; i++){
                             o=computer[x-i][y];
                             if (o==1){
                                  ok=false;
              if(dir==0)
                   for (int i=0; i<4; i++){
                        computer[x][y-i]=1;
                        battlepos[i]=x*10+y-i;
              if (dir==1)
                   for (int i=0; i<4; i++){
                        computer[x+i][y]=1;
                        battlepos[i]=(x+i)*10+y;
              if (dir==2)
                   for (int i=0; i<4; i++){
                        computer[x][y+i]=1;
                        battlepos[i]=x*10+y+i;
              if (dir==3)
                   for (int i=0; i<4; i++){
                        computer[x-i][y]=1;
                        battlepos[i]=(x-i)*10+y;
         public void getSub(){
              int x, y, dir;
              x=(int)(10*Math.random());
              y=(int)(10*Math.random());
              dir=(int)(100*Math.random()/25);
              while(!ok){
                   ok=true;
                   x=(int)(10*Math.random());
                   y=(int)(10*Math.random());
                   dir=(int)(100*Math.random()/25);
                   if(dir==0)
                        while(y<2){
                             y=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x][y-i];
                             if (o==1){
                                  ok=false;
                   if (dir==1)
                        while(x>7){
                             x=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x+i][y];
                             if (o==1){
                                  ok=false;
                   if (dir==2)
                        while(y>7){
                             y=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x][y+i];
                             if (o==1){
                                  ok=false;
                   if (dir==3)
                        while(x<2){
                             x=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x-i][y];
                             if (o==1){
                                  ok=false;
              if(dir==0)
                   for (int i=0; i<3; i++){
                        computer[x][y-i]=1;
                        subpos[i]=x*10+y-i;
              if (dir==1)
                   for (int i=0; i<3; i++){
                        computer[x+i][y]=1;
                        subpos[i]=(x+i)*10+y;
              if (dir==2)
                   for (int i=0; i<3; i++){
                        computer[x][y+i]=1;
                        subpos[i]=x*10+y+i;
              if (dir==3)
                   for (int i=0; i<3; i++){
                        computer[x-i][y]=1;
                        subpos[i]=(x-i)*10+y;
         public void getDestroyer(){
              int x, y, dir;
              x=(int)(10*Math.random());
              y=(int)(10*Math.random());
              dir=(int)(100*Math.random()/25);
              while(!ok){
                   ok=true;
                   x=(int)(10*Math.random());
                   y=(int)(10*Math.random());
                   dir=(int)(100*Math.random()/25);
                   if(dir==0)
                        while(y<2){
                             y=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x][y-i];
                             if (o==1){
                                  ok=false;
                   if (dir==1)
                        while(x>7){
                             x=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x+i][y];
                             if (o==1){
                                  ok=false;
                   if (dir==2)
                        while(y>7){
                             y=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x][y+i];
                             if (o==1){
                                  ok=false;
                   if (dir==3)
                        while(x<2){
                             x=(int)(10*Math.random());
                        for (int i=0; i<3; i++){
                             o=computer[x-i][y];
                             if (o==1){
                                  ok=false;
              if(dir==0)
                   for (int i=0; i<3; i++){
                        computer[x][y-i]=1;
                        destroyerpos[i]=x*10+y-i;
              if (dir==1)
                   for (int i=0; i<3; i++){
                        computer[x+i][y]=1;
                        destroyerpos[i]=(x+i)*10+y;
              if (dir==2)
                   for (int i=0; i<3; i++){
                        computer[x][y+i]=1;
                        destroyerpos[i]=x*10+y+i;
              if (dir==3)
                   for (int i=0; i<3; i++){
                        computer[x-i][y]=1;
                        destroyerpos[i]=(x-i)*10+y;
         public void getPatrol(){
              int x, y, dir;
              x=(int)(10*Math.random());
              y=(int)(10*Math.random());
              dir=(int)(100*Math.random()/25);
              while(!ok){
                   ok=true;
                   x=(int)(10*Math.random());
                   y=(int)(10*Math.random());
                   dir=(int)(100*Math.random()/25);
                   if(dir==0)
                        while(y<1){
                             y=(int)(10*Math.random());
                        for (int i=0; i<2; i++){
                             o=computer[x][y-i];
                             if (o==1){
                                  ok=false;
                   if (dir==1)
                        while(x>8){
                             x=(int)(10*Math.random());
                        for (int i=0; i<2; i++){
                             o=computer[x+i][y];
                             if (o==1){
                                  ok=false;
                   if (dir==2)
                        while(y>8){
                             y=(int)(10*Math.random());
                        for (int i=0; i<2; i++){
                             o=computer[x][y+i];
                             if (o==1){
                                  ok=false;
                   if (dir==3)
                        while(x<1){
                             x=(int)(10*Math.random());
                        for (int i=0; i<2; i++){
                             o=computer[x-i][y];
                             if (o==1){
                                  ok=false;
              if(dir==0)
                   for (int i=0; i<2; i++){
                        computer[x][y-i]=1;
                        patrolpos[i]=x*10+y-i;
              if (dir==1)
                   for (int i=0; i<2; i++){
                        computer[x+i][y]=1;
                        patrolpos[i]=(x+i)*10+y;
              if (dir==2)
                   for (int i=0; i<2; i++){
                        computer[x][y+i]=1;
                        patrolpos[i]=x*10+y+i;
              if (dir==3)
                   for (int i=0; i<2; i++){
                        computer[x-i][y]=1;
                        patrolpos[i]=(x-i)*10+y;
         public void run(){// to be in here so can compile
         public void init() {
              for (int i=0; i<10; i++){//initializes the guessed matrix to be all 2's(not been guessed)
                   for (int j=0;j<10; j++){
                        guessed[i][j]=2;
              for (int i=0; i<2; i++){//initializes array to be all zeros
                   patrolpos[i]=0;
              for (int i=0; i<2; i++){
                   destroyerpos[i]=0;
              for (int i=0; i<2; i++){
                   subpos[i]=0;
              for (int i=0; i<2; i++){
                   carrierpos[i]=0;
              for (int i=0; i<2; i++){
                   battlepos[i]=0;
              battleshipHitCt=0;//initialize all hit counts
              destroyerHitCt=0;
              subHitCt=0;
              patrolHitCt=0;
              carrierHitCt=0;
         //get all boat positions
              getCarrier();
              ok=false;
              getBattle();
              ok=false;
              getDestroyer();
              ok=false;
              getSub();
              ok=false;
              getPatrol();
         public void paint(Graphics g) { //this is the shots paint method... draws a line from its last position to its current position, basically
         if (!init && !won){//draws screen before play is pushed
                   g.setColor(col.white);
                   g.fillRect(0,0,600,320);
                   g.setColor(col.black);
                   g.fillRect(20,20,30,25);
                   g.setColor(col.white);
                   g.drawString("PLAY", 23,30);
                   g.setColor(col.black);
                   g.drawString("This is different that usual battleship, here the goal is",23,65);
                   g.drawString("to find all of the computers ships in the least number of guesses.",23,85);
                   g.drawString("<30 turns --- You have too much luck!", 23, 105);
                   g.drawString("31-50 turns --- Excellent!", 23, 125);
                   g.drawString(">=51 turns --- You have no skills!", 23, 145);
                   g.drawString("PRESS PLAY TO BEGIN", 23, 165);
              if (init && !won){//draws grid and messages
                   g.setColor(col.black);
                   g.fillRect(0,0,600,320); //makes big, black rectangle washover
                   g.setColor(col.white);
                   g.drawString("# of Guesses = " + guesses,500, 280);
                   for (int i=0; i<11; i++)
                        g.drawLine(20,20+i*28, 300, 20+i*28);
                   for (int i=0; i<11; i++)
                        g.drawLine(20+i*28,20,20+i*28,300);
                   char ch='A';
                   for (int i=0; i<10; i++){//draws letter accross the top
                        g.drawString(ch+" ",30+28*i,13);
                        ch++;
                   ch='1';
                   for (int i=0; i<9; i++){//draws numbers down the side
                        g.drawString(ch+" ",10,40+28*i);
                        ch++;
                   g.drawString("10", 6,290);
                   g.drawString(message,420,40);
                   for (int i=0; i<numDestroyed; i++){
                        g.drawString(message2[i], 305, 40+(i+1)*20);
                   g.setColor(col.black);
                   //next puts in any circles already guessed
                   for (int i=0; i<10; i++)
                        for (int j=0; j<10;j++){
                             if (guessed[i][j]==1)     {
                                  g.setColor(col.red);
                                  g.fillOval(i*28+30, j*28+30, 10,10);
                             if (guessed[i][j]==0)     {
                                  g.setColor(col.white);
                                  g.fillOval(i*28+30, j*28+30, 10,10);
         public boolean seeifahit(int x, int y){//sees if the shot was a hit or not
              if(computer[x][y]==1)
                   return true;
              return false;
         public String getshiptype(int x, int y){//returns the name of the ship that was hit
              for (int i=0;i<4; i++)
                   if (battlepos[i]==x*10+y){
                        battleshipHitCt++;
                        return "Battleship";
              for (int i=0;i<3; i++)
                   if (subpos[i]==x*10+y){
                        subHitCt++;
                        return "Submarine";
              for (int i=0;i<2; i++)
                   if (patrolpos[i]==x*10+y){
                        patrolHitCt++;
                        return "Patrol Boat";
              for (int i=0;i<5; i++)
                   if (carrierpos[i]==x*10+y){
                        carrierHitCt++;
                        return "Carrier";
              for (int i=0;i<3; i++)
                   if (destroyerpos[i]==x*10+y){
                        destroyerHitCt++;
                        return "Destroyer";
              return " ";
         public void gameOver(){//displays guesses and ends
              if (!won){
                   Graphics g = getGraphics() ;
                   g.setColor(col.black);
                   g.fillRect(0,0,600,320); //makes big, black rectangle washover
                   g.setColor(col.white);
                   g.drawString("YOU WIN!!", 200,100);
                   String out=new String("It took you "+guesses+" tries!");
                   g.drawString(out, 200,120);
                   g.drawString("Press refresh on your browser to play again", 200, 150);
                   won=true;
         public boolean destroyed(){
              if(battleshipHitCt==4 && battleOK)
                   battleOK=false;
                   return true;
              if(carrierHitCt==5 && carrierOK)
                   carrierOK=false;
                   return true;
              if(subHitCt==3 && subOK)
                   subOK=false;
                   return true;
              if(patrolHitCt==2 && patrolOK)
                   patrolOK=false;
                   return true;
              if(destroyerHitCt==3 && destroyerOK)
                   destroyerOK=false;
                   return true;
              return false;
         public boolean mouseDown(Event e, int x, int y) {//handles when a mouse key is pressed(either key)
              String type= new String("");
              if (!won){
                   message="";
                   Graphics g = getGraphics() ;
                   g.setColor(col.white);
                   int xindex, yindex, val;
                   if (x>20 && y>20 && y<300 && x<300 && init){
                        guesses++;
                        g.setColor(col.black);
                        g.fillRect(490,260, 550, 285);
                        g.setColor(col.white);
                        g.drawString("# of Guesses = " + guesses,500, 280);
                        g.setColor(col.black);
                        g.fillRect(419,30,580,95);
                        g.setColor(col.white);
                        xindex=(x-20)/28;//converts x coordinate into index(A-J) in form of (0-9)
                        yindex=(y-20)/28;//converst y coordinate into index(0-9)
                        val=guessed[xindex][yindex];
                        if (val==2){
                             if (seeifahit(xindex,yindex)){
                                  type=getshiptype(xindex, yindex);
                                  hits++;
                                  g.setColor(col.white);
                                  guessed[xindex][yindex]=1;
                                  if (!destroyed()){
                                       message=type + " Hit";
                                       g.drawString(message, 420, 40);
                                  else{
                                       g.setColor(col.white);
                                       message2[numDestroyed]=new String("");
                                       message2[numDestroyed]=type + "Destroyed";
                                       numDestroyed++;
                                       g.drawString(message2[numDestroyed-1] , 305, 40+(numDestroyed)*20);
                                  g.setColor(col.red);
                             else guessed[xindex][yindex]=0;
                             g.fillOval(xindex*28+30, yindex*28+30, 10,10);
    else {
                             g.setColor(col.white);
                             message="That has already been guessed";
                             g.drawString(message,420,40);
                   if (x>20 && x<40 && y>20 && y<40 && !init){
                        init=true;
                        paint(g);
                   if (hits>=17){
                        gameOver();
                        System.exit(0);
              return true;

    replace following in main method
    applet.paint(g); by
    repaint(); and
    applet.start() by
    // applet.start() at least compile your source code and if all runs the normal way it shoul be an application
    PS: i think there is a way in javac to tell it your source is an applicat. and not an applet

  • CUPS Error message when printing from some applications

    Hi. I've got an issue when printing from some apps, but not others. Up to a few months ago everything was fine, then it started when Word would not print direct to my printer (Epson Stylus Pro 3880), not a big deal as I don't use it a lot and could print it through Safari if needed. Then more worryingly as a designer I found that PDFs stopped printing direct too, again I can print through Safari and Preview. Last night I installed a firmware update and now InDesign (CS4) is refusing to print!! Not great as printing via Safari/Preview doesn't give me the same level of control over my prints. Just checked both Illustrator and Photoshop and they both print okay. I get the same error code each time "error: /usr/libexec/cups/filter/pstoraster failed" Does anyone know what could be causing this?
    Thanks in anticipation. D

    cytan,
    As Matt pointed, an application printing to CUPS controls only the format of the input.  It has no direct control over the chain of filters inside the printing pipeline.  Acrobat isn't coded to use pstoraster, it is simpling submitting postscript to the print queue.  In an un-molested Apple supplied CUPS setup, that works fine.
    What is going on is that the CUPS system configuration got mangled by some third party bits.  In the Unix tradition, the configuration is fairly transparent, in the form of plain text files.  In particular, in /usr/share/cups/mime you will find out exactly how the filter pipeline is configured via a table of what filter to use to convert data between two mime types.  So we can inspect how the filters are setup and how a broken pstoraster is getting into the chain.
    I don't have a handy "before mangling" state, but I can clearly see the Apple specified filters to be invoked when the input data is application/postscript (in apple.convs).  I can also see a conflicting filter definition referencing the broken pstopdf (in mime.convs) but with a higher precedence, overriding the apple specified filter.  This is why, in reference to your points #1 and #2, simply removing pstoraster fails, because the filter configuration is what needs fixing.
    On my system, I found the pstoraster filter to be a shell script referencing a MacPorts install of ghostscript. I've since removed MacPorts, but that evidentally left the CUPS configuration in this broken state.  Without knowing exactly how the CUPS system was put into the broken state, fixing it can be a bit tricky.  Another posting suggested replacing the broken pstoraster with the Apple supplied equivalent of pstocupsraster.  That might work, but it would be better to simply remove the conflicting filter specification, which on my system is this bit in /usr/share/cups/mime/mime.convs:
    # pstoraster is part of GPL Ghostscript...
    application/vnd.cups-postscript        application/vnd.cups-raster     100     pstoraster
    Removing that will restore the Apple specified filter chain for postscript input.  With the filter specification gone, you are free to remove the pstoraster filter itself.
    On wating for Adobe to fix this...
    Acrobat provides enough things to scream about without pinning non-Acrobat problems on it as well.  Not only is this problem not the fault of Acrobat, but suggesting that Acrobat should reach into a CUPS system broken by some unknown third party and fix it is only going to complicate the situation by having two third party products trying to un-do each other's configuration of a system resource.   Do you really trust Adobe to fiddle with system components it doesn't own?  No, I didn't think so.  Adobe installers and updaters have enough trouble with the stuff they do own.
    So, why does this problem only seem to affect Acrobat (your point #3)?  I suspect it is simply that Acrobat is in the minority of submitting Postscript to the print queue.  Any print job produced via CoreGraphics APIs is going to enter the system via a different path (namely, PDF), but the Postscript method is completely legitimate and any application that submits Postscript will be affected in the same way as Acrobat.
    I hope this sheds some useful light on what is really going on with this problem.
    -john

  • Creating an Applet from an Application

    So i'm developing my own version of the '80s Space Invader game for class, and one of the requirments is that we have to turn in an application, but also post an Applet version on a website. The game is pretty much done, but I am having trouble creating the Applet from the Application. I've done most of the stuff that i thought you were supposed to do. The thing is, it will run whenever i use the appletviewer from the dos prompt just like it does when i'm running the application. However, when Ii try to view it in an actuall explorer window, it wont load.
    The way the program was designed, it had a "SpaceInvaders" class that had the main method, which only had about 4 lines. Then i had a DrawFrame class that extended JFrame, and that had the bulk of the code in it. The main method of the SpaceInvaders class had a "DrawFrame frame = new DrawFrame();" statement, and then a couple set.whatever statements. to change it to an applet, i just commented out the whole of the SpaceInvaders class, then i renamed the DrawFrame class to "public class SpaceInvaders extends JApplet" changed the consructor to the "init()" method, and commented out the setSize and setTitle statements, and also i imported java.applet.*;
    when i try to run the html file in firefox, all i get is the frame with a little red 'X' in it, and at the bottom it says "Applet SpaceInvaders notinited"
    any help, ideas, or tips would be greately appreciated. Thanks in advance, and if you need any more info, let me know.

    i created a very simple applet:
    import java.applet.*;
    import java.awt.*;
    * The HelloWorld class implements an applet that
    * simply displays "Hello World!".
    public class HelloWorld extends Applet {
        public void paint(Graphics g) {
            // Display "Hello World!"
            g.drawString("Hello world!", 50, 25);
    }and it ran just fine inside of a browser. I've also ran other applets that should be very similar to mine, but still mine doesn't work.

  • SSO not working when launching the InfoView application

    We are so close to implementing SSO for BO Edge 3.0 using AD and Kerberos.  We can logon to InfoView and CMC using AD authenication and it works fine.  When turning on SSO:
        <context-param>
            <param-name>sso.enabled</param-name>
            <param-value>true</param-value>
        </context-param>
    in the InfoViewApp web.xml it fails with an error message in the Tomcat stdout.log
    Debug is  true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    +          [Krb5LoginModule] user entered username: "at"MYCOMPANY.COM+
    User name is missing.
    When done through the application logon screen and able to logon it is
    Debug is  true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
    +          [Krb5LoginModule] user entered username: dennis"at"MYCOMPANY.COM+
    The username appears in the log file followed by the debug message for Kerberos key being created.
    I am so close, does anyone have an idea?

    Hi Tim,
    The Vintela SSO document for BOE XI 3.1 is very comprehensive, but it has not resolved my issue.
    Under NTLM option I SSO works great with .NET InfoView as long as I have the web site authentication set to Windows Authentication and ASP .NET Authentication enabled.  Once the ASP .NET is disabled, SSO does not work.
    When using the Kerberos option, .NET InfoView SSO does not work due to the error 'propagating the security context between the security server and the client'.
    The Java InfoView SSO does not work either, but I can enter my user credentials and logon fine.
    std.out error:
    Debug is  true storeKey false useTicketCache false useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null tryFirstPass is false useFirstPass is false storePass is false clearPass is false
              [Krb5LoginModule] user entered username: @OR.PROVIDENCE.ORG
    Acquire TGT using AS Exchange
              [Krb5LoginModule] authentication failed
    Generic error (description in e-text) (60)
    No user name is being passed.  I've been through a multitude of documents and forums ensuring settings are correct and I believe they are including no duplicate SPN's.
    The only issue on the server is that I cannot open the tomcat confi app. due to it not able to start service BOE120Tomcat.  I was able to update the registry with the info for the bsclogin.config and krb5.ini.  I was not able to find anything on getting that service started.
    Any ideas?  Need more info? I have a bunch. 
    Thanks and have fun,
    Phil

  • No task bar/menu bar or icons appear when I login into my main account, however this is not a problem with my guest accout

    So was trying to use install disk ! to solve the problem but did not want to reinstall the system because I have not backed up many of my photographs.  Then the disk got stuck and would not come out so when I shut down and restarted I could not get past the gray screen.  Well I was able to solve the problem and remove the disk, and finally it would load to the login screen, although it took some time to get there.  Then when I log in to my main account the desktop will load but the task bar and icons will not its completely blank except for the wall paper.  When I login into my guest account there is not a problem everything is there and functional. I've been researching but have had no luck on a solution.  Thank you for your help.

    Hello,
    Could be many things, we should start with this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu at top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Select your Mac OS X volume.
    5. Click Repair Disk, (not Repair Permissions). Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then try a Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    (Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive & clear caches.)
    If perchance you can't find your install Disc, at least try it from the Safe Boot part onward.

  • I bought the Keynote app for my MacBook, but when I open the application and try to install it, I get an error message saying that the application will not work with my MacBook. What gives? And, can I please request a refund? ($19.99 = a week's groceries)

    I bought the Keynote app for my MacBook, but when I open the application and try to install it, I get an error message saying that the application will not work with my MacBook. What gives? And, can I please request a refund? ($19.99 = a week's groceries).
    Thank you for your help! - I did try looking for all available specs about Keynote on the Apple iTunes website, and found nothing that could help me. HELP!

    1
    Close all iWork applications
    2
    Uninstall Keynote; this must be done with an application remover tool to delete the installation properly. Appcleaner is known to work correctly for this purpose, it is free and can be downloaded from here: Appcleaner Download
    3
    empty the trash
    4
    shutdown the Mac and restart. After the start up chime, hold down the shift key until the apple logo appears
    let the Mac complete the start up procedure completely, it will take longer than usual as the hard drive is being repaired
    5
    Reinstall Keynote by logging into the Mac App Store using download / install

  • My music is on a nas loaded by Windows Media Player in WAV. When I import into Itunes only the songs appear no album name etc.

    My music is on a nas. Loaded using windows media player in WAV.
    When I import into Itunes only the record apears, no Album name etc
    How can can I see all the details

    Information is often stored as tags embedded in the file.  WAV does not support tagging. I don't know how WMP works but iTunes keeps its own database about media.  For many audio formats, track information will be stored both in iTunes' database and in the file itself as tags.  With formats such as mp3 most tags (not all) will 'travel' with the file when copied.  This does not happen with WAV where the information is only stored in the player application's database.

Maybe you are looking for

  • How do I back up my iTunes library to a disk?

    I jus t received a Mac book for Christmas and I want to get my itunes library brought over from my Windows PC.  There used to be an option to back up the library to a disk, but it is no longer an option!  How do I get my entire library onto the Mac,

  • How to insert the data from XML to a table

    Hi, I'm using Oracle 10g Express Edition I need help in How to insert the data from XML file into the table. Below is the example i'm working on.. I have create ridb user with below mentioned privileges: Account Status Locked Unlocked Default Tablesp

  • Separate IDocs based on condition

    My scenario is XML file to IDoc. In my XML file I have BELNR which will change often. Whenever a new BELNR occurs a separate IDoc needs to be created. For example: If I get BELNR like following: 100100 100100 Then only 1 IDoc needs to created... 1001

  • 24" Audio Issues

    I'm about to pick up another 24" imac off of Craigslist for peanuts, I was told there is a boot chime through the internal speakers, but no audio after that... it just gives a "NO" symbol when using the volume keys (circle with a line through it) and

  • Hidden Acrobat comments exposed through Apple Mail Maver-ick

    Acrobat Pro on Maverick has botched up the capability for me to hide areas of an edited Acrobat document. I created many PDF documents and over the last 5 years.  I will create a rectangle of solid white in the comments tool and a cover selected area