Methods Summary |
---|
public java.awt.Dimension | getPreferredSize()
Dimension d = super.getPreferredSize();
if (d.width < 180)
return new Dimension(180,d.height);
else
return d;
|
public void | jbInit()
pieceCanvas.setImage(pieceImage);
pieceCanvas.addMouseListener(this);
add(pieceCanvas);
|
public void | mouseClicked(java.awt.event.MouseEvent parm1)
// java.awt.event.MouseListener method;
|
public void | mouseEntered(java.awt.event.MouseEvent parm1)
// java.awt.event.MouseListener method;
|
public void | mouseExited(java.awt.event.MouseEvent parm1)
// java.awt.event.MouseListener method;
|
public void | mousePressed(java.awt.event.MouseEvent parm1)
// java.awt.event.MouseListener method;
int piecesub = parm1.getX() * 4 / pieceCanvas.pieces.getWidth(this);
if (piecesub > 3)
piecesub = 3;
dlgParent.promote(piecesub);
dispose();
|
public void | mouseReleased(java.awt.event.MouseEvent parm1)
// java.awt.event.MouseListener method;
|