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

Similar Messages

  • 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

  • FloralMatchMaker sample how do bring the game board to the front of the scene

    Want to use the example FloralMatchMaker but want to add an image in the background
    When I do this , the game board  is behind the pic in the final scene and can not be clicked
    How do I get the game board to come to the front

    Use CSS z-index to move your background back or board up.sym.$("background").css("z-index":1);
    And a higher number for the rest.
    I do not have a way to look at it right away, so I  not sure what the setting is. But usually z-index manipulation works.

  • [Newbie] Which JAVA API is a good choice for creating a game board?

    I'm a newbie in JAVA game programming.
    I would like to create a chess game for fun. I have a fairly good idea on how I want it to be, but I'm having some difficulty on the game board.
    I am not sure which set of JAVA API I should be using to design my board. I guess that the board will sits in the back, and in the front, there'll be my chess pieces that I can drag and drop.
    Should I be using JAVA Swing to do this? or JAVA 2D API? It will require some study for either one, so I figure I should pick a good one to learn.
    Thanks in advance! :-)

    Also if you would like to create a much simpler, 2D chess game, I would suggest you use the Swing API, which comes with Java from version 1.2 and on up. Naturally I would suggest at least using the latest 1.4 or 1.5 software development kit, because they have greater and more stable features, bug fixes and so on. I also would suggest you go to the library or Barnes and Noble nearest you, and pick up a book on Java. One recommendation that may be simpler to get an understanding of Java is from Deitel and Deitel: http://www.deitel.com/books/jHTP6/ though my beginner's Java book was geared directly toward how to program games (small games like memory, or tetris), though I can't remember what it was called. Anyway I believe it is very important to learn the basics of Java before you get into things that you may or may not understand. My opinion, so have a go at it.

  • 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.

  • I haven't set up my game center with my apple id so when i am trying to set it up and get to birth date part it starts all over how do i fix this?

    I haven't set up my game center with my apple id so when i am trying to set it up and get to birth date part it starts all over how do i fix this?

    If the problem persists, you'll probably have to make another apple id, it wont take off any games or music or apps or anything you've bought it will all stay there, i have two apple id's and i don't have a problem with anything.

  • 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

  • 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

  • HT4314 setting up multiple game center accounts

    how do i set up more than one Game Center accounts without having to set up more itunes accounts. my kids want to play each other in Blockheads but they are all logged into the same game center account that i set up when i started using the iphone way back...

    See:
    Multiple game center accounts for...: Apple Support Communities

  • HT201304 How do you set up multiple game center profiles on a single itunes account? Example, my daughter is too young for her own account but wants games on her ipod touch with her own profile. Any help would be great.

    How does one set up more than one game center profile on a single itunes account? For example, my daughter is too young for her own itunes account but would like her own Game Center profile to except invites and play games with her friends. Any help would be greatly appreciated.

    Maybe:
    Multiple game center accounts for...: Apple Support Communities

  • I play scrabble on Lexulus, when using firefox my current game board is not displayed, however, when I use internet explorer , the board is displayed. Any idea why?

    I play scrabble with a friend on Lexulus, when she has made a play
    I get an e-mail on AOL with a link to Lexulus. That link takes me to the site and the game but the board doesn't show. On internet explorer it does.

    I should have explained further. The game opens in a new window over to the upper left of my screen, leaving the original page underneath. I tried minimizing it so that I could get to my toolbar and did the View > Zoom > Reset. This has no effect. The lower portion of the game is still not showing. Using other browsers the window or frame of the game is much larger, therefore everything shows.

  • Creating a game board, as a grid

    Hi everyone,
    i have to write a cluedo like game in java for a class i'm taking. I've already created the game logic, and now i have to implemente a graphic interface using Swing: i have all the boxes contained in a large array. Now how can i print them on screen, using different boxes for each room, displaying walls, and so on, creating then the Cluedo board? Can anybody help me? Swing hasn't been covered much during the course... :(
    Thanks!
    Iacopo

    Ok, i read the tutorial, though i'm stucked trying to print the board in a JFrame as a JLayeredPanel. My intention is to print in the bottom layer, the backgroud (i.e. the grid where the pawns move) and in the layer above the pawns themselves.
    I wrote this code, but it just won't show the background of my boxes....please help me!
    Thanks... ;-)
         private void printBoard (Tabellone t) {
              frame.remove(low);
              frame.remove(startup);
              JSplitPane splitPane = new JSplitPane();
              frame.add(splitPane);
              right.setSize(250, frame.getHeight());
              right.setOrientation(JSplitPane.VERTICAL_SPLIT);
              JLayeredPane pane=new JLayeredPane();
              pane.setLayout(new GridLayout(NUMBER_OF_FILES,NUMBER_OF_ROWS));
              pane.setSize(new Dimension(frame.getWidth(),frame.getHeight()));
              ImageIcon pias=new ImageIcon("C:/Documents and Settings/Iacopo/Desktop/piastrella.jpg");
              for (int i = 380; i >=0; i -=20) {
                   for (int j = i; j < i + 20; j++) {
                        Casella cs = t.getArrayCaselle().get(j);
                        if (cs.getNome()!=""){
                             ImageIcon room=new ImageIcon("C:/Documents and Settings/Iacopo/Desktop/STANZE/"+cs.getIndex()+".jpg");
                             JLabel background=new JLabel(room);
                             JLayeredPane casella=new JLayeredPane();
                             casella.add(background,new Integer(10));
                             casella.setOpaque(true);
                             pane.add(casella);
                        } else {
                             JLabel square=new JLabel(pias);
                             square.setOpaque(true);
                             pane.add(square);
              splitPane.setRightComponent(right);
              splitPane.setLeftComponent(pane);
              frame.add(splitPane);
              frame.pack();
              frame.setLocation((int) (Toolkit.getDefaultToolkit().getScreenSize().getWidth() / 4 - frame
                        .getWidth() / 4),
                        (int) (Toolkit.getDefaultToolkit().getScreenSize().getHeight() / 4 - frame
                                  .getHeight() / 4));
              frame.setVisible(true);
         }

  • Websites blocked because of security settings I didn't set for Yahoo games

    I've been playing Yahoo games for years. About 3 days ago, they failed to load. When I asked about it, I saw that lots of other people were having the same problem. So I waited. This morning I tried to get into one of the games and got: Application Blocked because of Security Settings". I didn't set any different security settings. Then something about expired jre?? Wassup?

    hello, this dialog comes from the java plugin you've installed and is not related to firefox. please refer to the documentation about the issue provided by java/oracle: https://www.java.com/en/download/help/jcp_security.xml

  • I just got an iphone 3GS and am trying to set up a game center account and it lets me log in with my apple id and password but when it come time to set up a nickname it tells me my email is already in use with another apple id. How do I fix this?

    I have been trying to log in to the game center for 2 days now with no luck. I have an apple id and have never used game center before. It keeps telling me my email is already in use with another apple id and I have no idea how to get around this and would like to be able to play my games.

    If the problem persists, you'll probably have to make another apple id, it wont take off any games or music or apps or anything you've bought it will all stay there, i have two apple id's and i don't have a problem with anything.

  • How do  I set up a message board?

    Hi, I'd like to add a message board to my site similar to
    this one...
    http://forums.livewire-records.com/list.php?f=1
    I've never done one before, so does anyone know the easiest
    way to do this? I don't know php so I don't want to have to work it
    up from scratch. Is there some kind of "plug and play" way to put
    up a message board?

    Well, there are arguments for each. phpBB tends to be the
    most popular with arguably the largest community. However, it's
    previous version was very susceptible to hacks because it was so
    common although that was one of the areas they drastically improved
    on by completely rewriting their script from the ground up for
    version 3. I would say their Admin CP is one of the better looking
    ones.
    Simple Machines has a fairly strong community as well. They
    are in the process of going from version 1 to 2 right now which
    marks some major improvements. This project is *not* open-source
    even though it is free to download and use.
    myBB I would say right now has the most to gain from a new
    version. Their Admin CP is the worst of the 3 right now, although
    the next version currently in beta does show a lot more promise for
    this board. They are open-source like phpBB and the community is
    good.
    So just to simplify what I stated. phpBB is the only one that
    has completed their transition to the next version. Both SMF and
    myBB are currently both transitioning to newer versions. All of
    these have community based support. SMF is the only one of the
    three that has paid services because they are the only project that
    is not open-source. So they do have staff on hand if you choose to
    pay for yearly support which is a plus for them. The rest expect
    you to handle it on your own or ask community members for help.
    My best suggestion to you since they are free is to download
    and try them for yourself. They all have installers which make the
    setup process fairly easy. And if they have a demo of the next
    version which SMF does and myBB has a link to a demo (
    http://beta.mybbfans.com/mybb_140b/
    ). Just ignore waiting for the registration email even though it
    says you will get one. Once you register you should be able to log
    in and make yourself an admin to see it for yourself.

Maybe you are looking for

  • Error in image file upload using dreamweaver

    Greeting to you all! Please I need you PRO help. My case seem similar to some of the ones I have seen but my code is completely different. I wrote this code below using PHP in Dreamweaver and its used to upload images to MySQl database. Now when I up

  • [Forum FAQ] The Value drop down list is grayed out when you perform search for Group Policy Objects in GPMC

    Symptom On Windows Server 2012 or Windows Server 2012 R2, when you use the Search for Group Policy Objects feature in GPMC, the "Value" field is not populated when you choose "User Configuration" as the Search Item. (See Figure 1.) <Figure 1> Cause T

  • Apple id changed automatically i m shocked

    I have iPhone5 with ios7.1 was working well me just place my phone in lost mode via icloud to see how it works and it works very well fond my phone on my own location and with my own personal msg after a few minutes i want my phone to normal mode and

  • Element 9 error "Rolling back the installation of Elements 9" failed.??

    I just bought Elements 9 for Windows. And anytime I try to download it, it says "Rolling back the installation of Elements 9" then says "shared technologies failed"? I have tried multiple things listed on here and nothing helps. Does anyone know how

  • Drop down menus not working

    Hi, I am using DVDSP2.0.0 - it has been working fine for ages then suddenly about half of the drop down menus have stopped working - for example if I go to the "First Play" drop down menu in the "Disc" window and click on it - it goes blank. Any help