- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
6 Posted Topics
[ICODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author beelzibub */ import java.awt.*; import java.awt.event.*; import javax.swing.*; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); GridChessBoard brd; int xMove, yMove, … | |
[ICODE] ... am i right to think that the call in the main ( new Grid ...) sets up the board then the (new Che ...) calls to set up the men/pieces which it does (i hope) but it also encounters a setLayout(new Grid ...) which iverwrites all the (new … | |
... what i am trying to do use thr GridChessBoard clas to paint/drae an empty board then return to the program which adds the men/pieces to the board. ... i can get the empty board but it doesn't add the meb/pieces. i don't know why. i suppose i bit off … | |
Re: ... i'd say to have a method that reads the time from thr base then get the HOURs convert it IF needed ex: public Date convert(Date time){ int mask 12; if (time <= mask) time=time+12 | |
[ICODE]package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = … | |
package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = … |
The End.