Canvas doesn't display in my applet

Hi all,
I have an program with different classes. One creates a Canvas component which is displayed in a container. It's working pretty well.
But when i execute my program using an applet this canvas is here but empty (without my drawing).
I'm using InternetExplorer 5.5 and the JRE1.1
Does somebody know why?
How could i solve my problem?
Thanks in advance.
Chris

Does somebody can help me?
Hi all,
I have an program with different classes. One creates a Canvas component which is displayed in a >container. It's working pretty well.
But when i execute my program using an applet this canvas is here but empty (without my >drawing).
I'm using InternetExplorer 5.5 and the JRE1.1
Does somebody know why?
How could i solve my problem?
Thanks in advance.
Chris///////////////////////////

Similar Messages

  • Paramater form canvas doesn't display ...!

    Hello alll
    i am facing a problem ...!
    Paramater form canvas doesn't display ...!
    i have 2 canvases 1 content (useless) the second is stacked even though am setting raise on entery for the Paramater form canvas to yes
    The content raise on entery is set to no
    the windows primary canvas is the stacked but only the DEFAULT&SMARTBAR is displaying ...!!!
    Help is appreciated pls.
    Regards,
    Abdetu...

    It's Solved...! :)
    There was a procedure in w-n-f-i calling window doesn't exist ...!!!
    Regards,
    Abdetu...

  • Final cut canvas doesn't display video

    so yea the canvas doesn't display the video but the viewer does. also both the viewer and the canvas display audio
    can someone please help
    if you guy all my quicktime codecs here they are
    http://www.freewebs.com/muhanadaboud/codec.png
    thank you and please help,
    muhanad

    Make sure the Canvas window is set to RGB mode and for Image (or Image+Wireframe).
    -DH

  • Mapping canvas of the mapping editor doesn't display

    I don't want to reinstall the OWB, I've tried on everything on the Design Center GUI, the mapping canvas has just being hiding somewhere seeing me tearing my hair. I will almost die. But all the pluggable mappings show their mapping canvas as they did.
    I can't remember what I've done in the other day and so lose the mapping canvas, every mapping in the same module just doesn't display its canvas, all other windows (palette, explorer...) show normally.
    I've tried creating a new project and creating a mapping in it. The mapping canvas still doesn't come to the display.
    Is there any configuration file to set control over the mapping canvas as well as all other GUI elements?
    Any direction, Thanks a million.
    Oracle 10.2.0.1.0
    OWB 10.2.0.1.0
    Work Flow 2.6.4

    I solved it.
    It's in <owb_dir>\owb\bin\admin\MappingEditorLayout.xml.
    I replaced
    <SPLITTER orientation="0">
    </SPLITTER>
    with
    <DOCKABLE tag="ROOT" width="714" height="660" min_width="50" min_height="16" pref_width="714" pref_height="660" collapsed="false"/>.
    Of course, then relogin to the design center.
    It works for me.

  • Display .gif In Applet Problem

    I have been making a game. Very simply, the game has a main class and another truely important class that extends JFrame, it is the map. In it i need to upload .gif files and display them. It worked up until recently because i needed to make a sepperate class. I know how to use the getImage() for Images and the the way for ImageIcons, but for some reason, they never display (they display just whiteness). My Code is as follows
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import java.io.*;
    // when this puppy reads from a file, it'll be able to have 55 15 x 15 terrains per row
    // 35 15 x 15 terrains per column
    // arrows by everythign that u would need to consider in finding the problem
    // this is not the main class
    public class GameMap extends JPanel implements MouseListener, MouseMotionListener, KeyListener{
         public static final int MAX_BULLETS = 200;
         public static final int MAX_PLAYERS = 50;
         public static final int SPLAT_SIZE = 15;
         public static final int PLAYER_SIZE = 15;
         public static final int MAX_MESSAGES = 10;
         public static final int ROBOT_SIZE = 15;
         private static final int rowTerrains = 35;
         private static final int columnTerrains = 55;
         private static int currentBullets = 0;
         private static int currentPlayers = 0;
         private static int bulletRotation = 0;
         private static int aimX, aimY;
         private boolean mapLoaded;
         private boolean writingMessage;
         private boolean imagesLoaded;
         private int messageRotation;
         private int tileCoord;
         private String messageText = "";
         private String currentMap;
        private Bullet bullet[] = new Bullet[MAX_BULLETS];
        private Player player[] = new Player[MAX_PLAYERS];
        private Message message[] = new Message[MAX_MESSAGES];
        private Color backgroundColor = new Color(81, 141, 23);
        private Image offscreenMap; // offscreen image of map
        private Graphics mapGraphics;
         private ImageIcon yellowSplat1, yellowSplat2, yellowSplat3, yellowSplat4, yellowSplat5, bluePlayerBack, bluePlayerFront, bluePlayerRight, bluePlayerLeft, grass, tree, mountain, robot1;
         private Terrain terrain[] = new Terrain[(rowTerrains * columnTerrains)];
         public GameMap(){
              this(800, 450);
         public GameMap(int width, int height){
              addMouseListener(this);
              addMouseMotionListener(this);
              addKeyListener(this); // use method requestFocusInWindow() for this to work
              setPreferredSize(new Dimension(width, height));
              setBackground(backgroundColor);
              for (int x = 0; x < bullet.length; x++){
                   bullet[x] = new Bullet();
              for (int x = 0; x < player.length; x++){
                   player[x] = new Player();
              for (int x = 0; x < message.length; x++){
                   message[x] = new Message();
              for (int x = 0, currentX = 0, currentY = 0; x < (rowTerrains * columnTerrains); x++){
                   terrain[x] = new Terrain();
                   terrain[x].setX(currentX);
                   terrain[x].setY(currentY);
                   currentX += 15;
                   if (currentX > columnTerrains * 15){
                        currentX = 0;
                        currentY += 15;
              player[0].drawPlayer(0, 0);
              //loadMap("Map1.txt"); // this is called to load the map right when this object is initialized
         public void paintComponent(Graphics g){
              super.paintComponent(g);
              Graphics2D g2d = (Graphics2D)g;
              Composite originalComposite = g2d.getComposite();
              if (imagesLoaded == false){
                   yellowSplat1 = new ImageIcon("yellow1.gif");
                   yellowSplat2 = new ImageIcon("yellow2.gif");
                   yellowSplat3 = new ImageIcon("yellow3.gif");
                   yellowSplat4 = new ImageIcon("yellow4.gif");
                   yellowSplat5 = new ImageIcon("yellow5.gif");
                   bluePlayerBack = new ImageIcon("BlueBack.gif");
                   bluePlayerFront = new ImageIcon("BlueFront.gif");
                   bluePlayerLeft = new ImageIcon("BlueLeft.gif");
                   bluePlayerRight = new ImageIcon("BlueRight.gif");
                   grass = new ImageIcon("Grass.gif");
                   tree = new ImageIcon("Tree.gif");
                   mountain = new ImageIcon("Mountain.gif");
                   robot1 = new ImageIcon("Robot1.gif");
              if (mapLoaded == false){ // so a map is loaded when game is started
                   loadMap("Map1.txt");
                   mapLoaded = true;
              g.drawImage(offscreenMap, 0, 0, this);
              for (int x = 0; x < bullet[0].totalBullets; x++){
                   if (bullet[x].getArrived()){
                        //find splat type and display it
                        g2d.setComposite(makeComposite(0.5f));
                        switch (bullet[x].getSplatType()){
                             case 0:
                                  yellowSplat1.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 1:
                                  yellowSplat2.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 2:
                                  yellowSplat3.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 3:
                                  yellowSplat4.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 4:
                                  yellowSplat5.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                   else{
                        g2d.setComposite(originalComposite);
                        g2d.setColor(Color.yellow);
                        g2d.fillOval(bullet[x].getX(), bullet[x].getY(), 3, 3);
              g2d.setComposite(originalComposite);
              g.setColor(Color.yellow);
              for (int x = 0; x < player[0].totalPlayers; x++){
                   if (player[x].getPlayerPosition().equals("Back")){
                        bluePlayerBack.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else if (player[x].getPlayerPosition().equals("Right")){
                        bluePlayerRight.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else if (player[x].getPlayerPosition().equals("Left")){
                        bluePlayerLeft.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else if (player[x].getPlayerPosition().equals("Front")){
                        bluePlayerFront.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else{
                        g2d.fillOval(player[x].getX(), player[x].getY(), 15, 15);
              if (writingMessage){
                   g2d.setColor(new Color(0, 0, 130));
                   g2d.setComposite(makeComposite(0.5f));
                   g2d.draw3DRect(8, 7, 800, 17, true);
                   g2d.setComposite(originalComposite);
                   g2d.setColor(Color.yellow);
                   g2d.drawString(messageText, message[0].getX(), 20);
              for (int x = 0; x < MAX_MESSAGES; x++){
                   if (message[x].isDisplayed()){
                        g2d.drawString(message[x].getMessage(), message[x].getX(), message[x].getY());
         private AlphaComposite makeComposite(float alpha) {
              int type = AlphaComposite.SRC_OVER;
              return(AlphaComposite.getInstance(type, alpha));
         public void drawBullet(int aimX, int aimY){
              bullet[bulletRotation].drawBullet(player[0].getX() + PLAYER_SIZE / 2, player[0].getY() + PLAYER_SIZE / 2, aimX, aimY);
              player[0].setPlayerPosition(bullet[bulletRotation].getPlayerPosition());
              bulletRotation++;
              if (bulletRotation >= MAX_BULLETS){
                   bulletRotation = 0;
         public void loadMap(String map){
              mapLoaded = false;
              currentMap = map;
              try{
                   BufferedReader in = new BufferedReader(new FileReader(map));
                   String input, string1, string2;
                   for (int x = 0; x < terrain.length; x++){
                        terrain[x].setFilled(false);
                   for (int x = 0, currentArray; x < terrain.length; x++){
                        if ((input = in.readLine()) != null) {
                             StringTokenizer st = new StringTokenizer(input);
                             currentArray = Integer.parseInt(st.nextToken());
                             terrain[currentArray].setTerrainType(st.nextToken());
                             terrain[currentArray].setFilled(true);
                        else{
                             break;
                   in.close();
                   offscreenMap = createImage(size().width, size().height);
                   mapGraphics = offscreenMap.getGraphics();
                   //mapGraphics.clearRect(0, 0, size().width, size().height);
                   // everything from here down is to be painted to mapGraphics... but it doesn't get this far cuz of an error
                   for (int x = 0; x < terrain.length; x++){
                        if (terrain[x].getTerrainType().equals("Grass")){
                             grass.paintIcon(this, mapGraphics, terrain[x].getX(), terrain[x].getY());
                             System.out.println("terrain(" + x + ") is Grass");
                        else if (terrain[x].getTerrainType().equals("Tree")){
                             tree.paintIcon(this, mapGraphics, terrain[x].getX(), terrain[x].getY());
                             System.out.println("terrain(" + x + ") is Tree");
                        else if (terrain[x].getTerrainType().equals("Mountain")){
                             mountain.paintIcon(this, mapGraphics, terrain[x].getX(), terrain[x].getY());
                             System.out.println("terrain(" + x + ") is Mountain");
              catch (FileNotFoundException e){
                   System.out.println("Map not found");
              catch (IOException e){
                   System.out.println("IOException Error!");
              // **** mouse Listener ****//
         public void mouseClicked(MouseEvent e){}
         public void mousePressed(MouseEvent e){}
         public void mouseReleased(MouseEvent e){
              if (e.getButton() == 1){
                   //System.out.println("player[0].movePlayer(" + e.getX() + ", " + e.getY() + ")");
                   aimX = e.getX();
                   aimY = e.getY();
                   movePlayer(aimX, aimY);
              else if (e.getButton() == 3){
                   aimX = e.getX();
                   aimY = e.getY();
                   drawBullet(aimX, aimY);
         public void mouseEntered(MouseEvent e){
              if (isFocusOwner() != true){
                   requestFocusInWindow();
         public void mouseExited(MouseEvent e){}
         // **** end mouse listener ****//
         // **** mouse motion listener ****//
         public void mouseDragged(MouseEvent e){}
         public void mouseMoved(MouseEvent e){}
         // **** end mouse motion listener ****/
         public void keyPressed(KeyEvent e){}
         public void keyReleased(KeyEvent e){}
         public void keyTyped(KeyEvent e){}
    }I removed a few unnecessary methods from this code to make it easier to view. EVERYTHING works except for the images displaying. The reason i'm having this problem now is i just redid my workspace and copied the code and i think some glitch stopped it from compiling correctly all along so now i experience this problem in the applet viewer. Though, even before, i couldn't get anything to display in an applet.
    And yes, everything is in the same place as the html file.
    Thanks for your help!

    Here's a way to keep track of and paint images with a simple Rectangle array. And also a way to remove lengthy initialization code blocks from paintComponent. Move the images by moving the rectangles.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class GameMapRx
        public static void main(String[] args)
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new GameMapPanel());
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class GameMapPanel extends JPanel
        Image[] images;
        Rectangle[] rects;
        boolean firstTime;
        final int PAD;
        public GameMapPanel()
            loadImages();
            firstTime = true;
            PAD = 20;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            int w = getWidth();
            int h = getHeight();
            if(firstTime)
                initializeGameMap(w, h);
            for(int i = 0; i < rects.length; i++)
                Rectangle r = rects;
    g.drawImage(images[i], r.x, r.y, this);
    g2.draw(r);
    private void loadImages()
    String path = "images/duke/";
    String ext = ".gif";
    images = new Image[10];
    for(int i = 0; i < images.length; i++)
    try
    URL url = getClass().getResource(path + "T" + (i + 1) + ext);
    images[i] = ImageIO.read(url);
    catch(MalformedURLException mue)
    System.out.println("Bad URL: " + mue.getMessage());
    catch(IOException ioe)
    System.out.println("Unable to read: " + ioe.getMessage());
    private void initializeGameMap(int w, int h)
    rects = new Rectangle[images.length];
    int imageWidth = images[0].getWidth(this);
    int imageHeight = images[0].getHeight(this);
    int cols = (w - 2*PAD) / imageWidth;
    int xInc = imageWidth + (w - cols * imageWidth) / (cols + 1);
    int x0 = (w - cols * imageWidth -
    (cols - 1) * ((w - cols * imageWidth) / (cols + 1))) / 2;
    for(int i = 0; i < images.length; i++)
    int x = x0 + xInc * (i % cols);
    int rows = i / cols;
    int y = PAD + (imageHeight + PAD) * rows;
    rects[i] = new Rectangle(x, y, imageWidth, imageHeight);
    firstTime = false;

  • XMP doesn't display proper info in Photoshop CS2 for Mac.

    Dear List members:
    I have just recently installed Creative Suite CS2 and begun to explore the functionality of XMP. After purchasing Bruce Fraser's book on Camera Raw for CS2, I downloaded Metalab (Pound Hill Software) and created my first custom XMP panel that can be seen under the file info in Photoshop when an image (digital photo) is open.
    The problem is that I noticed a few odd things and began to question myself if there is some kind of bug or a problem with my installation of CS2.
    1. The window that opens under the file info command has several categories of information on the left to be chosen from, in the following order:
    (1)Description, (2)Camera Data 1, (3)Camera Data 2, (4)Categories, (5)History, (6)IPTC Contact, (7)IPTC Content, (8)IPTC Image, (9)IPTC Status, (10)Adobe Stock Photos, (11)Origin, (12)Advanced
    The Camera Data 1 option when selected opens a panel in the file info window that seems to contain all the information it is supposed to contain. The Camera Data 2 panel, on the other hand, doesn't display any information at all. Although the fields are there, they are empty. The fields are:
    (1)Pixel Dimension X and Y, (2)Orientation, (3)Resolution X and Y, (4)Resolution Unit, (5)Compressed Bits per Pixel, (6)Color Space, (7)Light Source, (8)File Source.
    All these fields are empty but when looking at the same file under Bridge the information is there, displayed under the metadata menu.
    This is something I noticed "before" installing Metalab so I know it is not a compatibility issue generated by the installation of the software.
    After installing CS2 I noticed that CS1 remained installed in my system. The version I purchased of CS2 is the upgrade one. Since I have no use for CS1 as I am now totally converted to CS2, I would like to uninstall CS1. The following are some of the questions I have:
    1. How can I uninstall CS1 without causing any problems to my installation of CS1 ? Is there an uninstall utility with the software or will I have to uninstall the entire package manually ?
    2. My G5 came with only one internal 160 GB drive where I originally installed CS1. I then purchased another internal 400 GB HD and copied the original drive onto it. This week I am going to replace the original 160 GB drive with a second 400 GB drive so that I can do regular "mirror image" back-ups between the two drives. Shold I expect any problems as I remove the drive where I originally installed CS1 ? Since I used disk utility to "copy" the 160 GB drive onto the 400 GB drive, my understanding it that any Adobe software key or authorization was also transferred to the drive. Is this right ? In case it hasn't, how can I transfer this information so that after I remove the 160 GB drive I will not experience any problems when trying to run CS2 ?
    3. How can I fix the problem with the Camera Data 2 panel under the file info window and command ? I noticed that the folder that is supposed to hold the Custom File Info Panels (HD>Library>Application Support>Adobe>XMP>Custom File Info Panels) has files for CS1 and CS2. Could this be a problem ? There many more files with .dat extenson than there are with the .txt extension. Bruce Fraser specifically says that the ones with the .txt extension are the ones that hold the XMP templates for information related to the image files. The files I have in this folder with the .txt are:
    (1)Camera1_CS2.txt , (2)Camera1.txt , (3)Camera2_CS2.txt , (4)Camera2.txt , (5)Categories.txt , (6)History.txt , (7)IPTC_Contact.txt , (8)IPTC_Content.txt , (9)IPTC_Image.txt , (10)IPTC_Status.txt , (11)StockPhotoInfo.txt
    The only ones that have two separate files one each for CS1 ad CS2 are Camera 1 and Camera 2. Camera 2 seems to be the only that is now non-functional. What should I expect to happen if I were to manually uninstall the ones that relate to CS1 ? Could that cause any problems ?
    My apologies for the long post but I didn't really know how to make it shorter.

    The Photoshop and/or Bridge forums would be more likely places to get answers to your questions. This forum is inhabited more by programmer types interested in implementing the XMP specification in applications we write.
    I'd expect CS2 to ignore CS1 panels so I doubt that's the issue. Panels don't interfere with each other--they just offer different views of the data. In any case, move the extra panels to your desktop and see what happens.
    As far as I know, all you need to do on the Mac is drag the CS1 application folder to the trash to uninstall it.

  • Using getter/setter for returing a string variable to display on an Applet

    have two classes called, class A and class testA.
    class A contains an instance variable called title and one getter & setter method. class A as follow.
    public class A extends Applet implements Runnable, KeyListener
         //Use setter and getter of the instance variable
         private String title;
         public void init()
              ASpriteFactory spriteFactory = ASpriteFactory.getSingleton();
              // Find the size of the screen .
              Dimension theDimension = getSize();
              width = theDimension.width;
              height = theDimension.height;
              //Create new ship
              ship = spriteFactory.createNewShip();
              fwdThruster = spriteFactory.createForwardThruster();
              revThruster = spriteFactory.createReverseThruster();
              ufo = spriteFactory.createUfo();
              missile = spriteFactory.createMissile();
              generateStars();
              generatePhotons();
              generateAsteroids();
              generateExplosions();
              initializeFonts();
              initializeGameData();
              //Example from Instructor
              //setMyControlPanel( new MyControlPanel(this) );
              // new for JDK 1.2.2
              addKeyListener(this);
              requestFocus();
         public void update(Graphics theGraphics)
              // Create the offscreen graphics context, if no good one exists.
              if (offGraphics == null || width != offDimension.width || height != offDimension.height)
                   // This better be the same as when the game was started
                   offDimension = getSize();
                   offImage = createImage(offDimension.width, offDimension.height);
                   offGraphics = offImage.getGraphics();
                   offGraphics.setFont(font);
              displayStars();
              displayPhotons();
              displayMissile();
              displayAsteroids();
              displayUfo();
              //displayShip();
              //Load the game with different color of the space ship          
              displayNewShip();
              displayExplosions();
              displayStatus();
              displayInfoScreen();
              // Copy the off screen buffer to the screen.
              theGraphics.drawImage(offImage, 0, 0, this);
         private void displayInfoScreen()
              String message;
              if (!playing)
                   offGraphics.setColor(Color.white);
                   offGraphics.drawString("\'A\' to Change Font Attribute", 25, 35);
                   offGraphics.drawString(getTitle(), (width - fontMetrics.stringWidth(message)) / 2, height / 2
                             - fontHeight);
                   message = "The Training Mission";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2);
                   message = "Name of Author";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2
                             + fontHeight);
                   message = "Original Copyright 1998-1999 by Mike Hall";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 2
                             + (fontHeight * 2));
                   if (!loaded)
                        message = "Loading sounds...";
                        int barWidth = 4 * fontWidth + fontMetrics.stringWidth(message);
                        int barHeight = fontHeight;
                        int startX = (width - barWidth) / 2;
                        int startY = 3 * height / 4 - fontMetrics.getMaxAscent();
                        offGraphics.setColor(Color.black);
                        offGraphics.fillRect(startX, startY, barWidth, barHeight);
                        offGraphics.setColor(Color.gray);
                        if (clipTotal > 0)
                             offGraphics.fillRect(startX, startY, (barWidth * clipsLoaded / clipTotal), barHeight);
                        offGraphics.setColor(Color.white);
                        offGraphics.drawRect(startX, startY, barWidth, barHeight);
                        offGraphics
                                  .drawString(message, startX + 2 * fontWidth, startY + fontMetrics.getMaxAscent());
                   else
                        message = "Game Over";
                        offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4);
                        message = "'S' to Start";
                        offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4
                                  + fontHeight);
              else if (paused)
                   offGraphics.setColor(Color.white);
                   message = "Game Paused";
                   offGraphics.drawString(message, (width - fontMetrics.stringWidth(message)) / 2, height / 4);
         public String getTitle() {
              System.out.print(title);
              return title;
         public void setTitle(String title) {
              this.title = title;
    }displayInfoScreen method in class A calls out for getTitle( ) to be displayed on an applet as an initial display string for the application.
    The instance variable title is set by setTitle method which is called out in class testA as follow,
    public class testA extends TestCase
          * testASprite constructor comment.
          * @param name
          *          java.lang.String
         public testA(String name)
              super(name);
          * Insert the method's description here.
          * @param args
          *          java.lang.String[]
         public static void main(String[] args)
              junit.textui.TestRunner.run(suite());
              // need to figure out how to get rid of the frame in this test
              System.exit(0);
         public static Test suite()
              return new TestSuite(testA.class);
          * Basic create and simple checks
         public void testCreate()
              A theGame = new A();
              assertNotNull("game was null!", theGame);
          * Basic create and simple checks
         public void testInit()
              A theGame = new A();
              Frame gameFrame = new Frame("THE GAME");
              gameFrame.add(theGame);
              int width = 640;
              int height = 480;
              gameFrame.setSize(width, height);
              // must pack to get graphics peer
              gameFrame.pack();
              theGame.resize(width, height);
              theGame.setTitle("TEST THE GAME");
              theGame.init();
              assertEquals("ASprite width not set", A.width, width);
              gameFrame.dispose();
              gameFrame.remove(theGame);
    }Basically, class testA invokes the init( ) method in class A and start the applet application. However, it displays a white blank display. If I change the getTitle( ) in the displayInfoScreen method to a fixed string, it works fine. Did I forget anything as far as using getter & setter method? Do I have to specify some type of handle to sync between setter and getter between two classes? Any feedback will be greatly appreciated.
    Thanks.

    Your class A extends runnable which leads me to believe that this is a multi-threaded application. In that case, title may or may not be a shared variable. Who knows? It's impossible to tell from what you posted.
    Anyway, what is happening is that your applet is being painted by the JFrame before setTitle is called. After that, who knows what's happening. It's a complicated application. I suspect that if you called setTitle before you added the applet to the frame, it would work.

  • Mac Mini Doesn't Display through Philips Tube HDTV

    I have a Philips tube HDTV with a VGA connector in the back, and used the DVI-VGA connector that came with my new Mac Mini to connect. I don't have a computer monitor at home. The TV doesn't display anything.
    So then I took the Mac Mini over to a friend's. He has a VGA monitor, and so he ran the Mac Mini through setup and set it to the lowest possible display settings. I came back here, rebooted and plugged it back in; still no display.
    Then I tried this:
    "First thing to try is to boot the mini into safe mode by holding down the shift key as it boots up. This should allow it to boot, and then give you access to the display preference pane to adjust the settings back to those that worked.
    If that doesn't work, try disconnecting the TV, and rebooting the Mac with no display attached. Once it has fully booted and enough time has passed to allow the desktop to be displayed, reconnected the TV. This should force the mini to boot into a low-res mode that works with just about anything, then when you reconnect the display, either cause it to auto-sense the correct resolutions, or give you access to display preferences."
    This didn't work either. Any suggestions?

    Hi Alan,
    Check your TV manual to see what resolutions your VGA/RGB connector on your TV will accept. Being a HDTV it is likely to be from 480p to at least 1080i.
    You then set the resolution in your Display preference pane to 640x480 and you should get a picture on your TV. The trick is to set it when you can't see anything! Attaching to another device may not help because the Mac detects that device when you set the Display and will know its not that when attached again to your TV. When attached to your TV it is setting another resolution it thinks will work. It is clearly guessing the wrong screen resolution when you do connect it.
    I overcame this situation myself using a VNC client. That requires you to have another computer you can use to control your Mac Mini via VNC. You can then access the Display pane via VNC and set the 640x480 resolution which will work.
    For setting 1080i (and the VNC process) please see:
    http://www.macosxhints.com/article.php?story=20060319073027371&query=1080i%2BMac %2BMini
    I am guessing you can also use an S Video adapter - available from Apple - to connect to an S Video port your TV may also have. That won't help with the VGA connection though.
    Hope this helps.

  • Secondary Cost Element Values doesn't display in Profit Center Report

    Hi everyone,
    I'm having a problem with our Profit Center plan/actual/variance reports wherein it doesn't display the postings I made to the Secondary cost element when I executed an assessment cycle (KSU5). I already set in the configuration that all postings to be done in the cost centers, should have a parallel posting to the profit center assigned to it. I can see the postings in my cost center reports, but not in my profit center report. Could I have missed out on any procedure to enable the secondary cost element parallel posting in my profit centers? Any help would be appreciated. Thanks!

    it might be the configuration of the library or some parameter in the report (record type should be 0 and 2 for actual values, where 2 stands for distributed values and 1 and 3 for planned values)
    but it also might be that the reconciliation is done between different CC and same PC
    - check your CC organisation asignment
    - if sender cost center and receiver cost center have tha same PC it is probably the reason
    - I had that problem my self and didn't solve it
    cheers
    matej

  • WEB.SHOW_DOCUMENT sometimes doesn't display the generated PDF file

    Hi all,
    I'm using the following code to generated my report from Forms:<br><br>
    V_REPORT_ID := FIND_REPORT_OBJECT(V_REPORT_NAME);
    V_REPORT_SERVER_JOB:= RUN_REPORT_OBJECT(V_REPORT_ID,P_LIST);
        V_JOB_ID := substr(V_REPORT_SERVER_JOB,length(:GLOBAL.REPORTS_SERVER)+2,length(V_REPORT_SERVER_JOB));
        V_REPORT_STATUS := REPORT_OBJECT_STATUS(V_REPORT_SERVER_JOB);
    LOOP
       IF V_REPORT_STATUS = 'FINISHED' THEN          
          V_TMP_PDF := :GLOBAL.APACHE_HTML_FOLDER ||'rpt'|| V_JOB_ID  ||'.pdf' ;
         COPY_REPORT_OBJECT_OUTPUT(V_REPORT_SERVER_JOB, V_TMP_PDF );
        WEB.SHOW_DOCUMENT(:GLOBAL.AS_HOME_URL ||  'rpt'|| V_JOB_ID  ||'.pdf' ,'_BLANK');     
        END IF;
    END LOOP; <br><br>
    Everything works fine except the WEB.SHOW_DOCUMENT part. In some clients, this command does what it required from it and opens a new browser window with the PDF report displayed on it. In some other clients, this command does nothing: now window dispalyed. When I refer to the Application Server, I see the PDF report successfully generated there. When I put the URL of the generated report manually in the browser address, I can see the report.
    <br><br>
    <b>Why the WEB.SHOW_DOCUMENT doesn't display the generated PDF report in some clients?</b>

    I agree with the previous 2 posters.
    Also firefox and ie handle it differently. Make sure you test on what your clients use.
    Sometimes acrotray.exe is completely retarded and doesn't work.

  • MSI 970a-g46 motherboard starts up but doesn't display anything.

    Hello, I'm having problems with a new motherboard I got from Amazon, specifically the 970a-g46. The following are my specs in use with this motherboard:
    CPU: AMD Phenom 2 x4 965
    GPU: nVidia GeForce 560 GTX
    Ram: 8gb Kingston HyperX Fury 1866mhz.
    PSU: Corsair 650TX (650 Watts)
    Compatability-wise, everything checks out so I wasn't expecting problems at first. All the other parts excluding the ram I've used before. Here's exactly what happens:
    I power up the computer after everything is installed and connected. The 4 phase LEDs turn on which tell me the CPU is powered up and working (so I assume). I don't get any beeps or buzzs mainly because I don't see any speaker/buzzer on this board. The monitor blinks and while it is connected to my GPU, it doesn't display anything, it's just a black screen. I can leave it on for a few minutes and I'll still not see anything happen. An important observation here is that my keyboard which has LEDs will turn on after a short period of time in boot-up (with my older set-up that is). This does not happen ever regardless of how long I leave my computer on on this new mobo.
    I've gone over and checked/tested numerous things:
    * The PCI-E and ATX cables for the GPU, motherboard and CPU are all connected and secured (I've tried both 4-pin and 8-pin connections for the CPU, neither help).
    * I've tried jumping the CMOS multiple times to no avail.
    * I tested the ram on another computer and it worked just fine on that one.
    * I've tested the motherboard without a GPU and it still does nothing (though I think that's because this motherboard doesnt have its own integrated GPU for some reason).
    So far the only possible reasons why my computer is not working is because of my PSU (very unlikely as it's only a year old and it's a Corsair, which I've heard is very reliable in the long-run), GPU (It is quite a few years old but even without the GPU my computer still doesn't go past boot-up), CPU (possible due to its age and how many freaking time I've reseated it (probably around 8 times) so I wouldn't doubt it, but before I put it into this motherboard I did check its pins and they were all there and placed nice and smoothly into the socket.) and finally the motherboard (it's possible that this is just a defected motherboard and giving me a super hard time which would be a first in all the years I"ve spent computer building).
    The best case scenario of course is me giving some kind of oversight to how I transferred over the parts and connectors. I might've missed something obvious to please any advice/insight on how I can solve this problem would be greatly appreciated
    EDIT: Some other things I did but forgot to mention:
    * Checked ground nut things and ensured they matched the specifications of the motherboard ATX; only 6 are under the board and each one is aligned up with the holes on the board as designed.
    * Tried booting up without powering the CPU. Only one phase LED light came on, still the same problem (for an obvious reason this time now).
    * Re-seated GPU multiple times, re-connected cables multiple times.
    What I have NOT done is re-seat the CPU because I am almost out of acetone so I would need to get another supply of that which won't be until tomorrow. I also have not re-seated everything back on my older motherboard to check if it still works. Tomorrow I'll most likely do that and if I find that the old motherboard works flawlessly then that tells me that the new motherboard I got is either defected or there's some compatability issue I"m missed out on.
    EDIT 2: Just found a speaker and plugged it into the motherboard. Booted it up and I got no beeps whatsoever. So this mobo is giving me no video activity (there is a signal it's just blank), and no beeps from the motherboard. I have no idea what that could mean at this point.
    EDIT 3: I decided to test a few things with the new speaker I just got. First I removed ram and tried running, I got 3 beeps which I assume is the beep sequence of faulty/no ram. Removed the power to CPU and the GPU itself individually, gave no beeps this time.

    Quote from: rhradacut on 06-January-15, 16:49:14
    What's the serial number of your MB? Needed to determine what BIOS may be on the MB. Exactly which version of the CPU is it? There were several different 965 CPUs and they required different BIOS versions, 1.2, 1.9,2.2 depending on which CPU you actually have.
     Also another problem may be that native memory supported by your CPU is DDR3-1333, not 1866
     None of the supported CPUs have integrated graphics, any MB graphics would be in the chipset, not CPU. Examples would be 785G, 880G
    Thank you very much rhradacut! The problem was that the mobo for whatever reason was forcing 1866mhz on my CPU when it only supported up to 1600mhz. I had to install a spare ddr3 module to downclock it so that I could access the BIOS and manually set the DRAM timing to 1600mhz for it to work. That's a very strange problem that I figured would've been auto-resolved by the hardware, and would also be a big problem if I didn't have any spare DDR3 ram to work with.
    Once again thanks for helping out on solving my problem.

  • My iPod and iPhone are not recognized in Windows 7 iTunes. I've reinstalled iTunes and restarted windows. Now iPod briefly displays, then device manager mass storage shows a yellow exclamation point. iPhone doesn't display in iTunes at all. Please ad

    My iPod and iPhone are not recognized in Windows 7 iTunes. I've reinstalled iTunes and restarted windows. Now iPod briefly displays, then device manager mass storage shows a yellow exclamation point. iPhone doesn't display in iTunes at all. Please advise

    Try Andrei Cerbu's post here, JF Fourie's post here, or see TS1538: iOS: Device not recognized in iTunes for Windows, in particular section 5, forcing a driver update. See also TS1363: iPod: Appears in Windows but not in iTunes.
    tt2

  • IPod Touch doesn't display playlists in ascending ASCII order, why /  It shows up in correct ASCII order in iTunes Devices listing?

    My iPod Touch doesn't display playlists in ascending ASCII order, why /  It shows up in correct ASCII order in iTunes Devices listing?

    Any suggestions? Anyone?
    MacBook Pro 15" 1.83GHz   Mac OS X (10.4.6)   3G 20gb iPod

  • JSP doesn't display Oracle varchar2 Items on screen

    I recently bought new laptop with windows XP professional with service pack 2. Loaded Oracle 10g Client on it. I have a Dell server with Linux and Oracle database 9i. Accessed the this database through new laptop using SQL plus window and works OK. (With that it is sure that my hosts file updated correct with proper IP address of server and tnsnames.ora files).
    I have created a JSP application to access this database. It works perfectly OK in my old laptop with Windows XP home with service pack1. The connections are established through ODBC Data Source Administrator (Control Panel->Administrative Tools->Data Sources) by adding a System Data Source. The application works perfectly OK and displays all fields that I intended and coded for. Only thing is it has Oracle 9i client.
    But the same application in the new laptop doesn't work properly. It doesn't display Varchar2 values. It displays only Number and Date data types. This shows it is connecting to the database (oracle 9i). But varchar2 values are not displayed. The connections are established through ODBC Data Source Administrator.
    I'm using Tomcat server (jakart-tomcat-5.0.27) on both the laptop. Please help me here.

    Suggestion: don't use the ODBC driver to connect to Oracle. I presume you are using sun's JDBC-ODBC bridge?
    Oracle have got a reasonably good 100% java JDBC driver which is all you need, and is a lot better than the ODBC bridge. I would recommend using the Oracle thin driver.
    Your java code should remain largely unchanged. The only thing you would need to alter would be
    1 - driver class being loaded (oracle.jdbc.driver.OracleDriver)
    2 - driver url (default would be something like: jdbc:oracle:thin:@127.0.0.1:1521:ORCL)
    3 - You would need the oracle jdbc driver in the classpath (ojdbc14.jar) You can find that in [ORA_HOME]/jdbc/lib
    If you've written your database connection using a JNDI datasource, then all you would need to change would be the configuration in your tomcat server.
    Hope this helps,
    evnafets

  • IE doesn't display navigation menus or slideshows correctly

    I'm fairly new to Muse and was pretty excited for it as an alternative to using Dreamweaver all of the time but now I wish it would come with a disclaimer that the sites created with it are not compatible across all browsers.
    I have a simple horizontal navigation menu that won't work in IE but appears fine in Firefox and Chrome. The slideshows on the homepage as well as the project pages doesn't display correctly either. As you can imagine, the client is none too happy. Also, the Google map widget does not work correctly in IE either.
    Are there known issues with IE? Are there any fixes short of redoing the site in another program?
    The URL is:  www.ethosthree.com
    Any help or input would be greatly appreciated. Thanks.

    We are experiencing similar issues. We have used the slideshow widget in Muse on several pages and it fails to work under IE 10 or IE 11, but works fine on all current versions of Firefox, Chrome, and Safari.

Maybe you are looking for

  • Attaching ipad to external hard drive

    All of my music & photo's are saved on an external hard drive. In order to listen to them/view them, does anyone know if it's possible to connect the ipad to the external hard drive via a female to female USB connector.....will it work? Thanks

  • What is Communication Manager?

    if you now about that,plz give some information! i need to know what is the job of communication manager, and what functions are needed to build it?

  • Applications Continue To Crash

    Ever since installing Snow Leopard, Mail, Pages, Safari, & Photoshop CS4 continually crash on me. Usually it happens when I go to save something. I don't know how to read log files, so I am including that last crash log from Pages, hoping someone out

  • Command to see backup item of OSB  tape library disk

    Dear Friends , Using OSB enterprise manager , I take oracle dump backup into tape library . Now it is very difficult for me to see the backup contents of the library using OEM . I want to know , is there any command available on OSB (like ls ..)  to

  • ESS Technical system query

    Hi, We are trying to implement ESS on EP7 SP11 and ECC 6.0 system. In the SLD while creating the Technical ABAP system in the last step to select the Installed products i can find only ECC 5.0 listed but ECC 6.0 is not listed. I had imported the late