First project, an applet game board.

Dear coders,
I cannot get my carefully constructed color arrays to color the tiles in my game board.
If some kind person would kindly peruse my scratchings and show me how to get my colors on to the tiles, I would be most grateful.
Here is the code as far as I have been able to take it.
import java.awt.*;
import java.applet.*;
import java.util.*;
public class JbGreed1 extends Applet
     int x;
     int y;
     int c;
     int rn;
     byte[] rd = new byte[16];
     byte[] gr = new byte[16];
     byte[] bl = new byte[16];
     int [][] displayBoard = new int[60][40];
     Random rnd = new Random ( ) ;
     public void colours ( )
     rd[ 0]= ( byte ) 255;     gr[ 0]= ( byte ) 255;     bl[ 0]= ( byte ) 255;
     rd[ 1]= ( byte ) 255;     gr[ 1]= ( byte ) 0;     bl[ 1]= ( byte ) 0;
     rd[ 2]= ( byte ) 0;     gr[ 2]= ( byte ) 0;     bl[ 2]= ( byte ) 255;
     rd[ 3]= ( byte ) 0;     gr[ 3]= ( byte ) 255;     bl[ 3]= ( byte ) 0;
     rd[ 4]= ( byte ) 255;     gr[ 4]= ( byte ) 255;     bl[ 4]= ( byte ) 0;
     rd[ 5]= ( byte ) 0;     gr[ 5]= ( byte ) 127;     bl[ 5]= ( byte ) 0;
     rd[ 6]= ( byte ) 0;     gr[ 6]= ( byte ) 160;     bl[ 6]= ( byte ) 255;
     rd[ 7]= ( byte ) 0;     gr[ 7]= ( byte ) 240;     bl[ 7]= ( byte ) 255;
     rd[ 8]= ( byte ) 200;     gr[ 8]= ( byte ) 190;     bl[ 8]= ( byte ) 0;
     rd[ 9]= ( byte ) 160;     gr[ 9]= ( byte ) 0;     bl[ 9]= ( byte ) 0;
     rd[10]= ( byte ) 0;     gr[10]= ( byte ) 155;     bl[10]= ( byte ) 155;
     rd[11]= ( byte ) 127;     gr[11]= ( byte ) 0;     bl[11]= ( byte ) 127;
     rd[12]= ( byte ) 79;     gr[12]= ( byte ) 79;     bl[12]= ( byte ) 79;
     rd[13]= ( byte ) 255;     gr[13]= ( byte ) 0;     bl[13]= ( byte ) 255;
     rd[14]= ( byte ) 127;     gr[14]= ( byte ) 127;     bl[14]= ( byte ) 127;
     rd[15]= ( byte ) 200;     gr[15]= ( byte ) 200;     bl[15]= ( byte ) 200;
     public void init ( )
          for ( y=0; y<40; y++ )
               for ( x=0; x<60; x++ )
                    int rn = rnd.nextInt ( ) *100;
                    if ( ( rn%14 ) == 2 ) displayBoard [x] [y] = 1;
                    else displayBoard [x] [y] = 0;
     public void paint ( Graphics g )
          setBackground ( Color.black ) ;
          int rn = ( rnd.nextInt ( ) *100 ) %14;
          g.setColorRGB ( rd[rn], gr[rn], bl[rn] ) ;
          for ( int x=0; x<60; x++ )
               for ( int y=0; y<40; y++ )
                    if ( displayBoard [x] [y] >0 )
                         g.fillRect ( 15+x*16, 15+y*16,16,16 ) ;
                    else
                         g.fillRect ( 16+x*16, 16+y*16,14,14 ) ;
}Thank you for your kind attention (-_-)
Edited by: julianbury on Jun 24, 2009 8:20 PM
Edited by: julianbury on Jun 24, 2009 8:22 PM

Hiya AndrewThompson,
I still have this color problem with the gameboard applet ...
It compiles ok but doesn't work the way it should.
This line sets random tile-color-numbers (0 to 13) thus:
board [x] [y] = ( ( rnd.nextInt ( ) *100 ) %14 );and the lines below are supposed to read color number for the tile and draw it accordingly:
g.setColor ( tileColour [ board [x] [y] ] ) ;
g.fillRect ( 16+x*16, 16+y*16,14,14 ) ;This is not working. It draws one tile in black and stops without throwing an error.
So, I commented it out
g.setColor ( tileColour [ board [x] [y] ] ) ;and substituted
g.setColor ( Color.cyan ) ;Just to check that it covers the board.
I cannot understand why it is not working.
Here are the HTM file contents:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>julianbury.com</title>
</head><body>
<center><applet code="GameBoard.class" width="992" height="672"></applet></center>
</body></html>
And here is the entire Java source for you to play with:
//     GameBoard.java
import java.applet.*;
import java.awt.*;
import java.util.*;
public class GameBoard extends Applet
     int x;
     int y;
     int c;
     int rr;
     int [][] board = new int[60][40];
     Random rnd = new Random ( ) ;
     Color [] tileColour = new Color[16];
     public void tileColours ( )
          tileColour[ 0] = new Color( 255, 255, 255);
          tileColour[ 1] = new Color( 255, 0, 0);
          tileColour[ 2] = new Color( 0, 0, 255);
          tileColour[ 3] = new Color( 0, 255, 0);
          tileColour[ 4] = new Color( 255, 255, 0);
          tileColour[ 5] = new Color( 0, 127, 0);
          tileColour[ 6] = new Color( 0, 160, 255);
          tileColour[ 7] = new Color( 0, 240, 255);
          tileColour[ 8] = new Color( 200, 190, 0);
          tileColour[ 9] = new Color( 160, 0, 0);
          tileColour[10] = new Color( 0, 155, 155);
          tileColour[11] = new Color( 127, 0, 127);
          tileColour[12] = new Color( 79, 79, 79);
          tileColour[13] = new Color( 255, 0, 255);
          tileColour[14] = new Color( 127, 127, 127);
          tileColour[15] = new Color( 200, 200, 200);
     public void init ( )
     {     // assign a random color to each tile -- colors 0 to 13
          for ( y=0; y<40; y++ )
               for ( x=0; x<60; x++ )
                    board [x] [y] = ( ( rnd.nextInt ( ) *100 ) %14 );
     public void paint ( Graphics g )
          setBackground ( Color.gray ) ;
          for ( int x=0; x<60; x++ )
               for ( int y=0; y<40; y++ )
//                    g.setColor ( tileColour [ board [x] [y] ] ) ;
                    g.setColor ( Color.cyan ) ;
                    g.fillRect ( 16+x*16, 16+y*16,14,14 ) ;
}Thank you in anticipation and hope (-_-)
==========================================================
Edited by: julianbury on Jun 26, 2009 6:12 AM

Similar Messages

  • Moving a jpg on a game board to the correct number of spaces

    I am currently doing a project for college and I am stuck. First of all I have a picture of a game board on screen. I have an array of objects which include position, x coord, y coord and instruction on each space. What I need to do is move a picture of a car the correct number of spaces that I have spun e.g if I spin a 3 then I would have to move 3 spaces. After I have draged the car I have to check if it is a valid move and if it is I have to follow the instructions on the space landed on. I was hoping someone could give me a few pointers in the right direction. Thanks
    Anne

    Here is a working example of something similar.
    import java.awt.*;
    import java.awt.Point;
    import java.awt.event.*;
    import java.util.*;
    public class GameBoard extends Panel implements ActionListener {
         GameCanvas gcan = null;
         public GameBoard() {
              gcan = new GameCanvas(500,500);
              Button b1 = new Button("START.....");
              b1.addActionListener(this);
              setLayout(new BorderLayout(0,0));
              add(gcan, BorderLayout.CENTER);
              add(b1, BorderLayout.SOUTH);
         public static void main(String args[]) {
              Frame frm = new Frame();
              frm.add(new GameBoard());
              frm.pack();
              frm.show();
         public void actionPerformed(ActionEvent e) {
              gcan.start();
    class GameCanvas extends Canvas {
         int width,height;
         java.util.List pcList = null;
         boolean started = false;
         Thread thread = null;
         public GameCanvas(int width, int height) {
              this.width=width;
              this.height=height;
              setSize(width,height);
         public void paint(Graphics g) {
              if(pcList == null) {
                   pcList = createList();
              if(started) {
                   Iterator e = pcList.iterator();
                   while(e.hasNext()) {
                        ((Square)e.next()).draw(g);
         public void update(Graphics g) {
              paint(g);
         public void delay(int d) {
              try { Thread.sleep(d);
              }catch(Exception e) { }
         public void inc() {
              if(pcList != null) {
                   Iterator e = pcList.iterator();
                   while(e.hasNext()) {
                        ((Square)e.next()).inc(5);
                        delay(25);
                        repaint();
         public java.util.List createList() {
              java.util.List tmpList = new ArrayList();
              for(int col=0; col<width; col+=10) {
                   for(int row=0; row<height; row+=10) {
                        tmpList.add(new Square( new Point(row,col), randColor(), 10));
              return tmpList;
         public Color randColor() {
              return ( new Color(rand(255),rand(255),rand(255) ));
         public int rand(int d) {
              return(  (int) (Math.random() * d) );
         public void start() {
              started = true;
              repaint();
              Runnable r = new Runnable() {
                   public void run() {
                        while(true) {
                             inc();
              thread = new Thread(r);
              thread.start();
              repaint();
    class Square {
         Color color = Color.blue;
         Point pnt = null;
         int size = 0;
         public Square(Point pnt, Color color, int size) {
              this.pnt=pnt;
              this.size=size;
              this.color=color;
         public void draw(Graphics g) {
              g.setColor(color);
              g.fillRect(pnt.x, pnt.y, pnt.x+size, pnt.y+size);
         public void inc(int d) {
              pnt.x += d;
              pnt.y += d;
    }import java.awt.*;
    import java.awt.Point;
    import java.awt.event.*;
    import java.util.*;
    public class GameBoard extends Panel implements ActionListener {
         GameCanvas gcan = null;
         public GameBoard() {
              gcan = new GameCanvas(500,500);
              Button b1 = new Button("START.....");
              b1.addActionListener(this);
              setLayout(new BorderLayout(0,0));
              add(gcan, BorderLayout.CENTER);
              add(b1, BorderLayout.SOUTH);
         public static void main(String args[]) {
              Frame frm = new Frame();
              frm.add(new GameBoard());
              frm.pack();
              frm.show();
         public void actionPerformed(ActionEvent e) {
              gcan.start();
    class GameCanvas extends Canvas {
         int width,height;
         java.util.List pcList = null;
         boolean started = false;
         Thread thread = null;
         public GameCanvas(int width, int height) {
              this.width=width;
              this.height=height;
              setSize(width,height);
         public void paint(Graphics g) {
              if(pcList == null) {
                   pcList = createList();
              if(started) {
                   Iterator e = pcList.iterator();
                   while(e.hasNext()) {
                        ((Square)e.next()).draw(g);
         public void update(Graphics g) {
              paint(g);
         public void delay(int d) {
              try { Thread.sleep(d);
              }catch(Exception e) { }
         public void inc() {
              if(pcList != null) {
                   Iterator e = pcList.iterator();
                   while(e.hasNext()) {
                        ((Square)e.next()).inc(5);
                        delay(25);
                        repaint();
         public java.util.List createList() {
              java.util.List tmpList = new ArrayList();
              for(int col=0; col<width; col+=10) {
                   for(int row=0; row<height; row+=10) {
                        tmpList.add(new Square( new Point(row,col), randColor(), 10));
              return tmpList;
         public Color randColor() {
              return ( new Color(rand(255),rand(255),rand(255) ));
         public int rand(int d) {
              return(  (int) (Math.random() * d) );
         public void start() {
              started = true;
              repaint();
              Runnable r = new Runnable() {
                   public void run() {
                        while(true) {
                             inc();
              thread = new Thread(r);
              thread.start();
              repaint();
    class Square {
         Color color = Color.blue;
         Point pnt = null;
         int size = 0;
         public Square(Point pnt, Color color, int size) {
              this.pnt=pnt;
              this.size=size;
              this.color=color;
         public void draw(Graphics g) {
              g.setColor(color);
              g.fillRect(pnt.x, pnt.y, pnt.x+size, pnt.y+size);
         public void inc(int d) {
              pnt.x += d;
              pnt.y += d;
    }import java.awt.*;
    import java.awt.Point;
    import java.awt.event.*;
    import java.util.*;
    public class GameBoard extends Panel implements ActionListener {
         GameCanvas gcan = null;
         public GameBoard() {
              gcan = new GameCanvas(500,500);
              Button b1 = new Button("START.....");
              b1.addActionListener(this);
              setLayout(new BorderLayout(0,0));
              add(gcan, BorderLayout.CENTER);
              add(b1, BorderLayout.SOUTH);
         public static void main(String args[]) {
              Frame frm = new Frame();
              frm.add(new GameBoard());
              frm.pack();
              frm.show();
         public void actionPerformed(ActionEvent e) {
              gcan.start();
    class GameCanvas extends Canvas {
         int width,height;
         java.util.List pcList = null;
         boolean started = false;
         Thread thread = null;
         public GameCanvas(int width, int height) {
              this.width=width;
              this.height=height;
              setSize(width,height);
         public void paint(Graphics g) {
              if(pcList == null) {
                   pcList = createList();
              if(started) {
                   Iterator e = pcList.iterator();
                   while(e.hasNext()) {
                        ((Square)e.next()).draw(g);
         public void update(Graphics g) {
              paint(g);
         public void delay(int d) {
              try { Thread.sleep(d);
              }catch(Exception e) { }
         public void inc() {
              if(pcList != null) {
                   Iterator e = pcList.iterator();
                   while(e.hasNext()) {
                        ((Square)e.next()).inc(5);
                        delay(25);
                        repaint();
         public java.util.List createList() {
              java.util.List tmpList = new ArrayList();
              for(int col=0; col<width; col+=10) {
                   for(int row=0; row<height; row+=10) {
                        tmpList.add(new Square( new Point(row,col), randColor(), 10));
              return tmpList;
         public Color randColor() {
              return ( new Color(rand(255),rand(255),rand(255) ));
         public int rand(int d) {
              return(  (int) (Math.random() * d) );
         public void start() {
              started = true;
              repaint();
              Runnable r = new Runnable() {
                   public void run() {
                        while(true) {
                             inc();
              thread = new Thread(r);
              thread.start();
              repaint();
    class Square {
         Color color = Color.blue;
         Point pnt = null;
         int size = 0;
         public Square(Point pnt, Color color, int size) {
              this.pnt=pnt;
              this.size=size;
              this.color=color;
         public void draw(Graphics g) {
              g.setColor(color);
              g.fillRect(pnt.x, pnt.y, pnt.x+size, pnt.y+size);
         public void inc(int d) {
              pnt.x += d;
              pnt.y += d;
    }Good Luck,
    -- Ian

  • Setting up a game board

    Hey, i was wondering if anyone could give me some pointers on how to set up a game board using JFrame or an Applet?
    fyi the game i am trying to make is checkers

    Ok got the game board i think...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class CheckersBoard
        final int EMPTY = 0;
        final int RED = 1;
        final int BLACK = 2;
        int board[][];
        void checkersData()
           board = new int[8][8];
           setUpGame();
        int pieceAt(int row, int col)
           return board[row][col];
         void setUpGame()    //* Set up the board with checkers in position for the beginning
                             //* of a game.
                             //* The first 3 rows contain black pieces, last 3 rows contain
                             //* red pieces
               for (int row = 0; row < 8; row++)
                for (int col = 0; col < 8; col++)
                   if ( row % 2 == col % 2 )
                      if (row < 3)
                            board[row][col] = BLACK;
                      else if (row > 4)
                         board[row][col] = RED;
                      else
                         board[row][col] = EMPTY;
                else
                   board[row][col] = EMPTY;
             }       }  // end setUpGame()
        public void paintComponent(Graphics g)
                /* Draw the squares of the checkerboard and the checkers. */
             for (int row = 0; row < 8; row++)
                for (int col = 0; col < 8; col++)
                   if ( row % 2 == col % 2 )
                      g.setColor(Color.LIGHT_GRAY);
                   else
                      g.setColor(Color.GRAY);
                      g.fillRect(2 + col*20, 2 + row*20, 20, 20);
                  switch (pieceAt(row,col))
                     case CheckersData.RED:
                         g.setColor(Color.RED);
                         g.fillOval(4 + col*20, 4 + row*20, 15, 15);
                         break;
                     case CheckersData.BLACK:
                         g.setColor(Color.BLACK);
                         g.fillOval(4 + col*20, 4 + row*20, 15, 15);
                         break;
       }//end class checkersboardbut now im stuck...I kno i need an abstract class piece, then create redPiece and blackPiece extending into piece. and i also need to input the rules, which i think i will add to the gameBoard class. And a class for people. Im not sure how to do any of that =P, ill be reading up on it more over the next couple of hours so plz drop some hints if u can.
    PS, I have no idea how to display my board...
    Edited by: JavaNoobie on Feb 15, 2008 2:18 AM

  • Connecting more than java file in an applet game

    I'm creating an applet game that consists of more than one java file, how can I connect those java files in one main program?....And also, how can I hide the first window of my applet and show the next window of my applet from the different java file?
    Can anyone give me a simple code that consists of 2 java files connected in one program and that can hide the first window when I click a button there and opens the next window....please help me with this....thanks....

    Components and windows in java have setVisible(boolean) methods. You can hide them by calling setVisible(false). Later you can make them visible again by calling setVisible(true).

  • Looking beginner applet game programmer

    Hi people. Iam quite new to java and currently learning stuff about how to program java games in an applet. So iam looking for a partner to start a little game/project together and hopefully we can learn stuff of each other and get a half decent game at the end aswell. I only really have 1 requirement.
    Please know atleast the fundementals of applet game programming
    Other information
    Age : 16
    Location : UnitedKingdom
    Chat : MSN Messenger
    Please get in contact with me through e-mail or MSN Chat. e-mail is : [email protected]
    Thanks alot.

    >>
    The age/location aren't requirements--the OP is describing himself.Yes, I think it's a bit too early in the day for my attempt at humor:);)
    kindly apologizing
    walkenNo need to apologize. Your humor is always welcome. If this is too early, I'd hate to see what's too late. ;)

  • How can i use a breakpoint on the first project ?

    This is a screenshot of my solution with two projects.
    But the breakpoint will work only on the second one the TestScreenshot but i want to be also to use a breakpoint/s on the Capture project. Tried to make that the Capture will be scope Scope to This but it didn't change anything.

    It's not in a release mode.
    The first project the upper one the Capture is set to class library and Active (debug)  Active (Any cpu) Any cpu
    The second project the TestScreenshot is windows application Active (debug)  Active (Any cpu) Any cpu
    I can use a breakpoint/s on the TestScreenshot but can't use breakpoint/s on the class library project.

  • New install of NWDS. Build error on creation of first project

    Hi,
    NWDS has just been installed. The first project I've created is essgbpdata, on the initial build I'm getting these errors.
    I have jsdk1.4.2_19 installed.
    Any help appreciated.
    DC Model check:
       All used DCs are available locally
       validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"
       validating dependency to  public part "default" of DC "sap.com/tc/col/api"
       validating dependency to  public part "default" of DC "sap.com/tc/cmi"
       validating dependency to  public part "default" of DC "sap.com/tc/ddic/ddicruntime"
       validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
       validating dependency to  public part "default" of DC "sap.com/tc/wd/webdynpro"
       validating dependency to  public part "default" of DC "sap.com/tc/logging"
       validating dependency to  public part "default" of DC "sap.com/tc/wdp/metamodel/content"
       validating dependency to  public part "default" of DC "sap.com/com.sap.aii.proxy.framework"
       validating dependency to  public part "default" of DC "sap.com/com.sap.aii.util.misc"
       validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
       validating dependency to  public part "default" of DC "sap.com/com.sap.mw.jco"
       validating dependency to used DC "sap.com/pcui_gp/xssfpm"
       validating dependency to used DC "sap.com/pcui_gp/xssutils"
       validating dependency to used DC "sap.com/ess/per"
       DC model check OK
    Preparing data context..
    No public part descriptor found for component "tc/col/api" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "tc/cmi" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "tc/ddic/ddicruntime" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "tc/ddic/metamodel/content" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "tc/wd/webdynpro" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "tc/logging" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "tc/wdp/metamodel/content" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "com.sap.aii.proxy.framework" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "com.sap.aii.util.misc" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "com.sap.exception" (vendor "sap.com"), public part "default", using legacy mode.
    No public part descriptor found for component "com.sap.mw.jco" (vendor "sap.com"), public part "default", using legacy mode.
    No 'default' JDK defined, will use running VM.
    Data context preparation finished in 0.172 seconds
         [wdgen] [Info]    Generating packages/com/sap/xss/hr/per/gb/personal/model/Hcmt_Bsp_Pa_Gb_R0002.java
         [wdgen] WARNING: Metadata of component VcPerPersonalGbDetail is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
         [wdgen] WARNING: Metadata of component VcPerPersonalGbReview is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.gb.personal.review.VcPerPersonalGbReview/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
         [wdgen] WARNING: Metadata of component VcPerPersonalGbOverview is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.gb.personal.overview.VcPerPersonalGbOverview/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
         [wdgen] WARNING: Metadata of component FcPerPersonalGb is not valid! ComponentUsage "//WebDynpro/Component:com.sap.xss.hr.per.gb.personal.fc.FcPerPersonalGb/ComponentUsage:FcPersInfo", Role "UsedComponent": A minimum of 1 object(s) is required
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> Component VcPerPersonalGbDetail: Has invalid component usage 'FcPersInfo'
         [wdgen] [Error]   .FutureDay: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .FutureDay.isRadiobuttonVisible: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextValueAttribute isRadiobuttonVisible [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   .FutureDay.As_of_radiobutton: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .FutureDay.As_of_radiobutton.Value: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextValueAttribute Value [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   .FutureDay.As_of_radiobutton.Text: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextValueAttribute Text [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   .FutureDay.As_of_radiobutton.isBegdaVisible: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextValueAttribute isBegdaVisible [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   .Subtypes: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextModelNode Subtypes [modelClass]: The context model node has not been bound to a model class (Hint: A Context model node has to be bound to a model class or mapped to a model node of another controller.)
         [wdgen] [Error]   .Subtypes.Subtype: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .Subtypes.Case: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .Subtypes.Stext: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   .Default_Begda: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextModelAttribute Default_Begda [referencedProperty]: The context model attribute has not been bound to a model property
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextModelAttribute Default_Begda: Context model attributes which are defined as top level attributes have to be mapped to attributes of other controllers.
         [wdgen] [Error]   .Begda: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextValueAttribute Begda [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   .Endda: The mapping definition is inconsistent, the mapped context element does not exist.
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> ContextValueAttribute Endda [type]: Type missing (Hint: The type property must be set to a simple type, a built in type or any java native type)
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.VcPerPersonalGbDetail --> Component VcPerPersonalGbDetail [FcPersInfo]: Component usage has no used component
         [wdgen] [Warning] com.sap.xss.hr.per.gb.personal.detail.DetailView --> Controller DetailView: Found orphaned translatable text "Back button" not belonging to any development object (Hint: Execute "repair texts" action for project WebDynpro)
         [wdgen] [Warning] com.sap.xss.hr.per.gb.personal.detail.DetailView --> Controller DetailView: Found orphaned translatable text "Cancel button" not belonging to any development object (Hint: Execute "repair texts" action for project WebDynpro)
         [wdgen] [Warning] com.sap.xss.hr.per.gb.personal.detail.DetailView --> Controller DetailView: Found orphaned translatable text "Next button" not belonging to any development object (Hint: Execute "repair texts" action for project WebDynpro)
         [wdgen] [Error]   com.sap.xss.hr.per.gb.personal.detail.DetailView --> TextView TextView_83 [text]: Context element and property are not compatible
         [wdgen] [Info]    com.sap.xss.hr.per.gb.personal.detail.DetailView --> TransparentContainer Space [Children]: Container does not contain children
         [wdgen] [Warning] com.sap.xss.hr.per.gb.personal.detail.DetailView --> Label Gender_Label [labelFor]: Value is not valid
         [wdgen] [Info]    com.sap.xss.hr.per.gb.personal.detail.DetailView --> TransparentContainer Space_12 [Children]: Container does not contain children
         [wdgen] [Info]    com.sap.xss.hr.per.gb.personal.detail.DetailView --> TextView TextView_83: UIElement does not have a label
         [wdgen] [Info]    com.sap.xss.hr.per.gb.personal.detail.DetailView --> TextView Name_Data_Title: UIElement does not have a label
         [wdgen] [Info]    com.sap.xss.hr.per.gb.personal.detail.DetailView --> TextView HR_Data_Title: UIElement does not have a label
         [wdgen] [Info]    com.sap.xss.hr.per.gb.personal.detail.DetailView --> TextView Marital_Status_Title_Label: UIElement does not have a label
         [wdgen] [Info]    Catching throwable null
         [wdgen] [Info]    com.sap.webdynpro.generation.ant.GenerationAntTaskError
         [wdgen] ERROR: Unknown exception during generation null (com.sap.webdynpro.generation.ant.GenerationAntTaskError)
         [wdgen] ERROR: Generation failed due to errors (0 seconds)
    Error: C:\Documents and Settings\rradam\.dtc\0\DCs\sap.com\ess\gb\pdata\_comp\gen\default\logs\build.xml:97: [Error]   Generation failed!
                    at com.sap.webdynpro.generation.ant.WDGenAntTask.execute(WDGenAntTask.java:254)
                    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                    at org.apache.tools.ant.Task.perform(Task.java:364)
                    at org.apache.tools.ant.Target.execute(Target.java:341)
                    at org.apache.tools.ant.Target.performTasks(Target.java:369)
                    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
                    at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:116)
                    at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:58)
                    at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:196)
                    at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:168)
                    at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
                    at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:324)
                    at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:350)
                    at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:99)
                    at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:73)
                    at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
                    at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:1750)
                    at com.sap.tc.devconf.impl.DCProxy.make(DCProxy.java:6004)
                    at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.buildDCsForDevConfig(BuildAction.java:307)
                    at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction.access$200(BuildAction.java:58)
                    at com.sap.ide.eclipse.component.provider.actions.dcproject.BuildAction$1.run(BuildAction.java:212)
                    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Ant runtime 2.062 seconds
    Ant build finished with ERRORS
    [Error]   Generation failed!
    Error: Build stopped due to an error: [Error]   Generation failed!

    Try Repair -> project Structure and ClassPath
    When you say "The first project I've created is essgbpdata"
    I believe you refer to first importing project DC from NWDI.
    Then you are creating the project...right ?
    If yes, then have you set proper dependencies in NWDI ?
    refer to SAP note : 872892

  • Applet Game Programming - player movement

    HI Java Experts,
    I have a very simple question applet game programming - jdk 1.02.
    Let's say you have a player on the applet window. He can move right and left.
    Naturally you have an image representing the player. When the player moves left you present an image loop with him running left. And vice versa for running right.
    Of course when he stops moving you just want to show a still image.
    What do you guys feel is the best technique for that situation ?
    Stephen

    Hi Thanks for the advice.
    I'm under the impression that if I used jdk1.4
    everybody who wanted to play the game would have to go
    through the trouble of downloading something . If
    that is so, then i would like to stick with 1.02 to
    have the widest possible audience.Use Java Web Start to deploy it as an application instead of an Applet. If your program is really cool, people will download the JDK 1.4 to use it. Then we will have more java users in the world :)
    By the way i have a URL perhaps someone could look > at the source code and give additional suggestions
    you can make sonic the hedge hog run and jump
    http://www.swebdev.com/Adventure.html
    That code has some good points. I like the nice object oriented flow of it. However, the way he sets up the Thread is all wrong. He uses yield and sleep, you would want to set up this using wait() and notifyAll() calls if you want to make it more interesting.
    Right now i'm trying to address the issue of how to
    reverse the image for when the player is running the
    opposite way -- ? perhaps a separate thread in 1.02
    might be an answer? I would be glad to hear all kinds
    of suggestions on the sample code seen thereYou shouldn't need a separate thread just to reverse the image. If your little guy is already in his own thread, just switch the image that is displayed when the player hits the opposite direction key.
    Think of threads like puppets, and you are the puppet master. Your little guys is a puppet, so he should be in his own thread. You can make him do whatever you want from your thread (the master) by pulling strings (changing globals, and message passing)
    Wow... Thats a really good analogy... I just thought that up :)

  • When using FF 5.0, rollover type ads on Facebook game Lexulous pages are 'enlarged' and block 1/3 of the game board. Using up to date versions of Win 7 Home Premium, Adobe Flash and ActiveX

    When using FF 5.0, rollover type ads (i.e. ads for XBOX) on Facebook game Lexulous pages are 'enlarged' and block 1/3 of the game board. Using up to date versions of Win 7 Home Premium, Adobe Flash and ActiveX on an HP Pavillion dv7 laptop. Does NOT happen at all in MS IE 8, but occurs every time in FF 5.0.
    Also, Google 'translate this page' links do not work in FF 5.0, but works in MS IE 8. All I get in FF is a blank page, time after time.

    Hi,
    I am using a Nvidia 4200M adapter in my Laptop, Driver 266.96, Direct X 11
    In my desktop I am using an ATI XFX 6950, latest revision drivers (I am not at home right now so I cant get that info).
    The issue I did describe above, but it was a long explanation.
    In some flash games the game files load initially and get as far as the "click to start" button. Then the flash area usually goes either all white or all black (usually depending on the falsh game default background color) and then it stays that color. Cant see anything after hitting start (usually most games have an intro video or animation before the game starts, but I cant see any of it.
    For the very few games that do start, the flash game or application does not seem to work correctly in that when the rare game starts, it wont save any game files or save files to the pc and so if I exit the game (navigate away to another page or close browser) and then later come back, even though I click the option to save games (and ensure that the flash application slider shows it can save files and lots of space) it does not save and I have to start from the beginning all the time.
    More explanation I gave above.

  • Doing first project with film. EDL questions.

    So I'm doing my first project with Super16 in a month or two and I've got a couple of questions. The workflow will be shoot on 16 > edit in 24p DV > finish on film. I know how to do almost everything right up until we finish editing, but actually getting all the information ready to do a negative cut is something I don't know about. How does Cinema Tools factor into this? What do I need to do about the audio? What sort of windowburn or keycode information do I need to have? Do I do anything different when I import the 24p DV footage? Your help is greatly appreciated.

    I have not done what you are attempting, but my understanding is that you should get flex files to bring into Cinema Tools that reflect the keycode/timecode relationship created in telecine. From there you can export a cutlist that should give you keycodes that the neg cutter can work from.
    Have you read the manual for Cinema Tools?
    Patrick

  • Game Board on Pogo Games is partially hidden

    For some reason the game board on my Pogo games has slid or moved over under the chat area.  I cannot get it to move back.  I can enlarge the outside screen but the game board doesn't move.  Their support services have been unable to resolve the problem.  I have tried changing the screen resolution, but it doesn't help.  Any help would be greatly appreciated.  Thanks.

    Is Java working now you have updated to Firefox 8.0.1?
    * http://www.java.com/en/download/help/testvm.xml - How do I test whether Java is working on my computer? - 1.4.2_xx, 1.5.0, 6.0

  • Newbie - First Project with SAP Team... Monitoring Solutions/Strategy?

    I just started my first job out of school two weeks ago. My first project is to work on a "monitoring strategy" for our large SAP enterprise system. We have CRM, SRM, ERP, Sol Man, EDOS, XI, etc... I am supposed to dig into each of these portions of SAP and determine what may need monitored and how to set that up... Does anyone have any ideas of how I should get started? I am new to SAP but have a decent high level understanding of it. Any help would be appreciated. Thanks

    The first thing about being a newbie (welcome though!) to monitoring questions at SDN is that you need to read the "rules of engagement" first.
    These clearly state:
    >- Please do not Cross post.
    > Post your question in the most appropriate forum; not multiple forums. This is bad netiquette and will might only aggravate potential repliers.
    Well, as this NW Admin forum is the most appropriate one and the other 5 which you have cross-posted to are (in my opinion) not, I will not lock this thread here. Most likely your other threads will be deleted or locked by other moderators though.
    Please also read the rest of the rules by end of week three... which explain further about what is monitoried in the forums...
    Cheers,
    Julius

  • What do you think of my applet game

    Over the last couple days, I made a java applet game. It is all complete except for the highscores. I am planning on doing some sort of global highscores and since I have little experience with internet programming, it is going to take a little while.
    Let me know what you think!
    http://www.geocities.com/scottrick49/targeteer/targeteer.html

    First of all I wanted to say that I like the game but I still think there is room to improve.
    To begin with yes, I think you've got way to many circles going in the start.
    If you had maybe 7 circles with higher speed I would think it more of a challenge or do as turingpest says and ramp up the number of circles.
    When I click the mouse button everything stops for a maybe 250 msec and then jumps to a new location, while it makes it more difficult I though it mainly annoying.
    One thing I would like to see in the game is if you remove the white corners of the circles and makes them explode in the color that they are.
    Adding sound would greatly benefit the game.
    Another thing that TuringPest points out, try making a credits part or something where you show any info about yourself.
    Another idea would be to give the circles different scores and when you've got enough score and accuracy you reach a new level.
    Something in the manner of adding time to the bar when you hit a circle and remove when you miss might be fun and as the difficulty increases you lose time faster.
    That's about what I can think of right now, but as I said, I actually enjoyed playing it :P

  • Getting started. My first project presents a blank IE page

    Hello! I just download the Studio Creator and followed the steps in the tutorial to get my first project done. When I press Ctrl+F5 to excute it. A web browse opens up but the page is blank. I do a view source code and I can the XML used to create the jsp page but still can't see anything. Has anybody else seen this problem? Any ideas what am I doing wrong?

    Hi!
    What do You want to see? Did You add some components to the page?
    By the way, did You try another browser?
    And one advise: download NetBeans 6.0 from http://www.netbeans.org and You also will be able to create Visual Web Application, but with more advanced IDE.
    Thanks,
    Roman.

  • First project with 16:9 film

    I am doing my first project with film that was captured using the 16:9 mode on my sony camera. My question is if I have to do anything different when importing this footage from the DV tapes to FCE? I noticed there are many posts on this but just want to make sure I am taking the right steps. Thanks.

    Anamorphic refers 16:9 and has nothing to do with audio. 32K is the audio sample rate. FireWire Basic should only be used with Canon cameras.
    You can select the captured items and in the Anamorphic browser column check them to tell the application the material is supposed to be treated as 16:9.
    Also make sure you make a new sequence that's in the correct widescreen aspect after you've changed to the correct settings.

Maybe you are looking for

  • Background job not invoking in CC.

    hi, I am facing a problem in running background job in CC. Actually its invoking a wrong url and when i am checking in application deployed url is different. We are at CC SP9. Url invoked is "is http://hostname:51700/webdynpro/dispatcher/virsa/ccappc

  • Macbook doesn't recognise it's Hard drive?

    Hi, Have been having real problems with my macbook over last few months. It would not boot up - just went to screen with flashing ? folder. I have inserted the OSX disc and it now starts up from there but when I try and select a disk to install to it

  • Database Search in PDF Form

    I am creating a PDF form and would like to know/learn to link a database that would appear in a dropdown menu when selected (e.g., Excel spreadsheet). Can this be done? If yes, how? Thank you

  • Windows XP Home OEM version - help!

    I've got XP Home (OEM) installed on my MacBook and it works great. However, I think it would be smarter to put it on my stupid PC (which runs slooooowly) and put XP Pro on my MacBook. If I erase my XP Home partition, will I be able to install XP Home

  • Uninstall Elements 6 failed because of javascript error

    I recently upgraded to Mac OS X Mountain Lion and was informed that I needed to uninstall and reinstall Photoshop Elements 6. The Setup application could not be opened, however, because of Javascript errors (according to the error message). I couldn'