Money converter doesn't show any output...

Hi, I have the following source :
package euros;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class converter extends Applet
double beginWaarde, franceuro, guldeneuro, uitkomst;
     Button knop1, knop2, knop3, knop4, knop5, knop6;
     TextField invoer, uitvoer;
     public void init()
     {   setLayout(null);
     knop1 = new Button( "gulden => euro" );
     knop2 = new Button( "franc => euro" );
knop3 = new Button( "euro => francs" );
knop4 = new Button( "franc => gulden" );
knop5 = new Button( "gulden => franc" );
knop6 = new Button( "euro => gulden" );
knop1.setBounds(0,25,100,25);
knop2.setBounds(100,25,100,25);
knop3.setBounds(200,25,100,25);
knop4.setBounds(300,25,100,25);
knop5.setBounds(400,25,100,25);
knop6.setBounds(500,25,100,25);
invoer = new TextField( "0" );
uitvoer = new TextField();
String invoer1 = invoer.getText();
Double menno = Double.valueOf( invoer1 );
beginWaarde = menno.doubleValue();
invoer.setBounds(50,100,100,25);
     uitvoer.setBounds(150,100,300,25);
add( knop1 );
          add( knop2 );
add( knop3 );
add( knop4 );
add( knop5 );
add( knop6 );
add(uitvoer);
add(invoer);
     public boolean action( Event e, Object o )
          if( e.target == knop1 )
          {       uitkomst = beginWaarde/2.20371;
uitvoer.setText( "Het aantal Euro's is : " + uitkomst );
               repaint();
return true;
          if( e.target == knop2 )
uitkomst = beginWaarde/6.3;
uitvoer.setText( "Het aantal Euro's is : " + uitkomst );
repaint();
               return true;
          if( e.target == knop3 )
uitkomst = beginWaarde*6.3;
               uitvoer.setText( "Het aantal Francs is : " + uitkomst );
repaint();
               return true;
if( e.target == knop4 )
uitkomst = beginWaarde/2.86;
               uitvoer.setText( "Het aantal Guldens is : " + uitkomst );
repaint();
               return true;
if( e.target == knop5 )
uitkomst = beginWaarde/2.86;
               uitvoer.setText( "Het aantal Francs is : " + uitkomst );
repaint();
               return true;
if( e.target == knop6 )
uitkomst = beginWaarde*2.2037;
               uitvoer.setText( "Het aantal Guldens is : " + uitkomst );
repaint();
               return true;
          return false;
and don't get any awnsers in the textfield called 'uitvoer'
It just shows 0.0 all the time instead of one of the calqulations specified...
I can't find out what's wrong with it.
Can someone help me ??
Thanks in advance,
Menno.

your code can be changed as below.
package euros;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
public class converter extends Applet
     double beginWaarde, franceuro, guldeneuro, uitkomst;
     Button knop1, knop2, knop3, knop4, knop5, knop6;
     TextField invoer, uitvoer;
     public void init()
          setLayout(null);
          knop1 = new Button( "gulden => euro" );
          knop2 = new Button( "franc => euro" );
          knop3 = new Button( "euro => francs" );
          knop4 = new Button( "franc => gulden" );
          knop5 = new Button( "gulden => franc" );
          knop6 = new Button( "euro => gulden" );
          knop1.setBounds(0,25,100,25);
          knop2.setBounds(100,25,100,25);
          knop3.setBounds(200,25,100,25);
          knop4.setBounds(300,25,100,25);
          knop5.setBounds(400,25,100,25);
          knop6.setBounds(500,25,100,25);
          invoer = new TextField( "0" );
          uitvoer = new TextField();
//          String invoer1 = invoer.getText();
//          Double menno = Double.valueOf( invoer1 );
//          beginWaarde = menno.doubleValue();
// This part should be moved to the method action(...)
          invoer.setBounds(50,100,100,25);
          uitvoer.setBounds(150,100,300,25);
          add( knop1 );
          add( knop2 );
          add( knop3 );
          add( knop4 );
          add( knop5 );
          add( knop6 );
          add(uitvoer);
          add(invoer);
     public boolean action( Event e, Object o )
          if( e.target == knop1 )
// getting the value in invoer
               String invoer1 = invoer.getText();
               Double menno = Double.valueOf( invoer1 );
               beginWaarde = menno.doubleValue();
               uitkomst = beginWaarde/2.20371;
               uitvoer.setText( "Het aantal Euro's is : " + uitkomst );
               repaint();
               return true;
}

Similar Messages

  • Multipath -ll command doesn't give any output

    Hi all,
    I am new to configure storage in multipath. I have configured multipath in a newly installed oracle Linux 6.0 following Linux documentation; however, when I tried to list the multipath using the commands, it doesn’t show any output. I have stop and restart services, reboot the server to no fix. I have also check the LUNs that I can see the storage array's FC target ports from the server as well as the storage admin confirm that they are properly connected. Blew is the output when I used the commands. Please help and let me know if you need more info...
    root@server1 ~]# multipath -ll
    [root@server1 ~]# <-- no output
    [root@server1 ~]# ps -ef |grep multipath
    root 2563 2437 0 16:10 pts/0 00:00:00 grep multipath
    root 20831 1 0 Jan09 ? 00:00:01 /sbin/multipathd
    [root@server1 ~]# multipath -d
    create: mpatha (3600508b10010414d5155594e56360008) undef HP,LOGICAL VOLUME
    size=137G features='0' hwhandler='0' wp=undef
    `-+- policy='round-robin 0' prio=1 status=undef
    `- 0:0:0:0 cciss!c0d0 104:0 undef ready running
    thank you,
    Lou

    Hi All,
    Here is the output that you have requested… thank you for the help
    Lou
    reply to: Dude
    Q: What device names are you expecting to see?
    A: Simmilar to the below output:
    [root@oldServer ~]# multipath -ll
    ocr_vote_1 (36001438005decdd10006e00003b30000) dm-0 HP,HSV450
    size=1.0G features='1 queue_if_no_path' hwhandler='0' wp=rw
    |-+- policy='round-robin 0' prio=50 status=active
    | |- 0:0:0:3 sdc 8:32 active ready running
    | |- 0:0:1:3 sdq 65:0 active ready running
    | |- 1:0:0:3 sdbg 67:160 active ready running
    | `- 1:0:1:3 sdbu 68:128 active ready running
    Reply to: Billy Verreynne
    Here is the output. I didn't post the repetitive output for the 'sd*'s
    [root@server1 ~]# multipath -v3
    Jan 14 10:23:24 | ram0: device node name blacklisted
    Jan 14 10:23:24 | ram1: device node name blacklisted
    Jan 14 10:23:24 | ram2: device node name blacklisted
    Jan 14 10:23:24 | ram3: device node name blacklisted
    Jan 14 10:23:24 | ram4: device node name blacklisted
    Jan 14 10:23:24 | ram5: device node name blacklisted
    Jan 14 10:23:24 | ram6: device node name blacklisted
    Jan 14 10:23:24 | ram7: device node name blacklisted
    Jan 14 10:23:24 | ram8: device node name blacklisted
    Jan 14 10:23:24 | ram9: device node name blacklisted
    Jan 14 10:23:24 | ram10: device node name blacklisted
    Jan 14 10:23:24 | ram11: device node name blacklisted
    Jan 14 10:23:24 | ram12: device node name blacklisted
    Jan 14 10:23:24 | ram13: device node name blacklisted
    Jan 14 10:23:24 | ram14: device node name blacklisted
    Jan 14 10:23:24 | ram15: device node name blacklisted
    Jan 14 10:23:24 | loop0: device node name blacklisted
    Jan 14 10:23:24 | loop1: device node name blacklisted
    Jan 14 10:23:24 | loop2: device node name blacklisted
    Jan 14 10:23:24 | loop3: device node name blacklisted
    Jan 14 10:23:24 | loop4: device node name blacklisted
    Jan 14 10:23:24 | loop5: device node name blacklisted
    Jan 14 10:23:24 | loop6: device node name blacklisted
    Jan 14 10:23:24 | loop7: device node name blacklisted
    Jan 14 10:23:24 | cciss!c0d0: not found in pathvec
    Jan 14 10:23:24 | cciss!c0d0: mask = 0x1f
    Jan 14 10:23:24 | cciss!c0d0: dev_t = 104:0
    Jan 14 10:23:24 | cciss!c0d0: size = 286677120
    Jan 14 10:23:24 | cciss!c0d0: subsystem = cciss
    Jan 14 10:23:24 | cciss!c0d0: h:b:t:l = 0:0:0:0
    Jan 14 10:23:24 | cciss!c0d0: vendor = HP
    Jan 14 10:23:24 | cciss!c0d0: product = LOGICAL VOLUME
    Jan 14 10:23:24 | cciss!c0d0: revision = 1.86
    Jan 14 10:23:24 | cciss!c0d0: get_state
    Jan 14 10:23:24 | loading /lib64/multipath/libchecktur.so checker
    Jan 14 10:23:24 | cciss!c0d0: path checker = tur (controller setting)
    Jan 14 10:23:24 | cciss!c0d0: checker timeout = 300000 ms (internal default)
    Jan 14 10:23:24 | cciss!c0d0: state = 3
    Jan 14 10:23:24 | cciss!c0d0: getuid = /lib/udev/scsi_id whitelisted device=/dev/%n (controller setting)
    Jan 14 10:23:24 | cciss!c0d0: uid = 3600508b10010414d5155594e56360008 (callout)
    Jan 14 10:23:24 | cciss!c0d0: prio = const (controller setting)
    Jan 14 10:23:24 | cciss!c0d0: const prio = 1
    Jan 14 10:23:24 | sda: not found in pathvec
    Jan 14 10:23:24 | sda: mask = 0x1f
    Jan 14 10:23:24 | sda: dev_t = 8:0
    Jan 14 10:23:24 | sda: size = 104857600
    Jan 14 10:23:24 | sda: subsystem = scsi
    Jan 14 10:23:24 | sda: vendor = HP
    Jan 14 10:23:24 | sda: product = HSV450
    Jan 14 10:23:24 | sda: rev = 0953
    Jan 14 10:23:24 | sda: h:b:t:l = 0:0:0:1
    Jan 14 10:23:24 | sda: tgt_node_name = 0x50001fe1501ec830
    Jan 14 10:23:24 | sda: serial = PAFURC19SYZ0AB
    Jan 14 10:23:24 | sda: get_state
    Jan 14 10:23:24 | sda: path checker = tur (controller setting)
    Jan 14 10:23:24 | sda: checker timeout = 30000 ms (sysfs setting)
    Jan 14 10:23:24 | sda: state = running
    Jan 14 10:23:24 | sda: state = 3
    Jan 14 10:23:24 | sda: getuid = /sbin/scsi_id -g -u -s /block/%n (controller setting)
    Jan 14 10:23:24 | /sbin/scsi_id exitted with 1
    Jan 14 10:23:24 | error calling out /sbin/scsi_id -g -u -s /block/sda
    Jan 14 10:23:24 | sda: state = running
    Jan 14 10:23:24 | /sbin/scsi_id exitted with 1
    Jan 14 10:23:24 | error calling out /sbin/scsi_id -g -u -s /block/sda
    Jan 14 10:23:24 | loading /lib64/multipath/libprioalua.so prioritizer
    Jan 14 10:23:24 | sda: prio = alua (controller setting)
    Jan 14 10:23:24 | reported target port group is 2
    Jan 14 10:23:24 | aas = 01 [active/non-optimized]
    Jan 14 10:23:24 | sda: alua prio = 10
    Jan 14 10:23:24 | sdb: not found in pathvec
    Jan 14 10:23:24 | sdb: mask = 0x1f
    Jan 14 10:23:24 | sdb: dev_t = 8:16
    Jan 14 10:23:24 | sdb: size = 209715200
    Jan 14 10:23:24 | sdb: subsystem = scsi
    Jan 14 10:23:24 | sdb: vendor = HP
    Jan 14 10:23:26 | sdav: not found in pathvec
    Jan 14 10:23:26 | sdav: mask = 0x1f
    Jan 14 10:23:26 | sdav: dev_t = 66:240
    Jan 14 10:23:26 | sdav: size = 2097152
    Jan 14 10:23:26 | sdav: subsystem = scsi
    Jan 14 10:23:26 | sdav: vendor = HP
    Jan 14 10:23:26 | sdav: product = HSV450
    Jan 14 10:23:26 | sdav: rev = 0953
    Jan 14 10:23:26 | sdav: h:b:t:l = 1:0:3:6
    Jan 14 10:23:26 | sdav: tgt_node_name = 0x50001fe1501ec830
    Jan 14 10:23:26 | sdav: serial = PAFURC19SYZ0AB
    Jan 14 10:23:26 | sdav: get_state
    Jan 14 10:23:26 | sdav: path checker = tur (controller setting)
    Jan 14 10:23:26 | sdav: checker timeout = 30000 ms (sysfs setting)
    Jan 14 10:23:26 | sdav: state = running
    Jan 14 10:23:26 | sdav: state = 3
    Jan 14 10:23:26 | sdav: getuid = /sbin/scsi_id -g -u -s /block/%n (controller setting)
    Jan 14 10:23:26 | /sbin/scsi_id exitted with 1
    Jan 14 10:23:26 | error calling out /sbin/scsi_id -g -u -s /block/sdav
    Jan 14 10:23:26 | sdav: state = running
    Jan 14 10:23:26 | /sbin/scsi_id exitted with 1
    Jan 14 10:23:26 | error calling out /sbin/scsi_id -g -u -s /block/sdav
    Jan 14 10:23:26 | sdav: prio = alua (controller setting)
    Jan 14 10:23:26 | reported target port group is 2
    Jan 14 10:23:26 | aas = 01 [active/non-optimized]
    Jan 14 10:23:26 | sdav: alua prio = 10
    ===== paths list =====
    uuid hcil dev dev_t pri dm_st chk_st v
    3600508b10010414d5155594e56360008 0:0:0:0 cciss!c0d0 104:0 1 undef ready H
    0:0:0:1 sda 8:0 10 undef ready H
    0:0:0:2 sdb 8:16 50 undef ready H
    0:0:0:3 sdc 8:32 10 undef ready H
    0:0:0:4 sdd 8:48 10 undef ready H
    0:0:0:5 sde 8:64 50 undef ready H
    0:0:0:6 sdf 8:80 10 undef ready H
    Jan 14 10:23:26 | Found matching wwid [3600508b10010414d5155594e56360008] in bindings file. Setting alias to mpatha
    Jan 14 10:23:26 | cciss!c0d0: ownership set to mpatha
    Jan 14 10:23:26 | cciss!c0d0: not found in pathvec
    Jan 14 10:23:26 | cciss!c0d0: mask = 0xc
    Jan 14 10:23:26 | cciss!c0d0: get_state
    Jan 14 10:23:26 | cciss!c0d0: state = 3
    Jan 14 10:23:26 | cciss!c0d0: const prio = 1
    Jan 14 10:23:26 | mpatha: pgfailback = -2 (config file default)
    Jan 14 10:23:26 | mpatha: pgpolicy = multibus (controller setting)
    Jan 14 10:23:26 | mpatha: selector = round-robin 0 (controller setting)
    Jan 14 10:23:26 | mpatha: features = 0 (controller setting)
    Jan 14 10:23:26 | mpatha: hwhandler = 0 (controller setting)
    Jan 14 10:23:26 | mpatha: rr_weight = 1 (controller setting)
    Jan 14 10:23:26 | mpatha: minio = 1 rq (controller setting)
    Jan 14 10:23:26 | mpatha: no_path_retry = 12 (controller setting)
    Jan 14 10:23:26 | pg_timeout = NONE (internal default)
    Jan 14 10:23:26 | mpatha: set ACT_CREATE (map does not exist)
    Jan 14 10:23:26 | mpatha: domap (0) failure for create/reload map
    Jan 14 10:23:26 | mpatha: ignoring map
    reply for: Theanswriz42:
    Here is part of the output from the scipt...
    sdaa 36001438005decdd10006e000051c0000
    sdab 36001438005decdd10006e000052c0000
    sdz 36001438005decdd10006e00005200000

  • This code didnt show any output

    hi i m little new bie in swings
    plz check the following code it compile well without error but diidnt show any output.
    plz chk ii
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class GoMoku1 extends JFrame{
    JButton newGameButton; // Button for starting a new game.
    JButton resignButton; // Button that a player can use to end the
    // game by resigning.
    JLabel message; // Label for displaying messages to the user.
    public void GoMoku1() {
    Container content = getContentPane(); // Content pane of applet.
    content.setLayout(null); // I will do the layout myself.
    content.setBackground(new Color(0,150,0)); // Dark green background.
    Board board = new Board(); // Note: The constructor for the
    // board also creates the buttons
    // and label.
    content.add(board);
    content.add(newGameButton);
    content.add(resignButton);
    content.add(message);
    /* Set the position and size of each component by calling
    its setBounds() method. */
    board.setBounds(16,16,220,220);
    newGameButton.setBounds(310, 60, 120, 30);
    resignButton.setBounds(310, 120, 120, 30);
    message.setBounds(0, 350, 350, 30);
    public static void main(String[] args)
              GoMoku1 gm=new GoMoku1();
    // ----------------------- Nested class -----------------------------------
    class Board extends JPanel implements ActionListener, MouseListener {
    int[][] board; // The data for the board is kept here. The values
    // in this array are chosen from the following constants.
    static final int EMPTY = 0, // Represents an empty square.
    WHITE = 1, // A white piece.
    BLACK = 2; // A black piece.
    boolean gameInProgress; // Is a game currently in progress?
    int currentPlayer; // Whose turn is it now? The possible values
    // are WHITE and BLACK. (This is valid only while
    // a game is in progress.)
    int win_r1, win_c1, win_r2, win_c2; // When a player wins by getting five or more
    // pieces in a row, the squares at the
    // ends of the row are (win_r1,win_c1)
    // and (win_r2,win_c2). A red line is
    // drawn between these squares. When there
    // are no five pieces in a row, the value of
    // win_r1 is -1. The values are set in the
    // count() method. The value of win_r1 is
    // tested in the paintComponent() method.
    public Board() {
    // Constructor. Create the buttons and label. Listen for mouse
    // clicks and for clicks on the buttons. Create the board and
    // start the first game.
    setBackground(Color.lightGray);
    addMouseListener(this);
    resignButton = new JButton("Resign");
    resignButton.addActionListener(this);
    newGameButton = new JButton("New Game");
    newGameButton.addActionListener(this);
    message = new JLabel("",JLabel.CENTER);
    message.setFont(new Font("Serif", Font.BOLD, 14));
    message.setForeground(Color.green);
    board = new int[ 15][ 15];
    doNewGame();
    public void actionPerformed(ActionEvent evt) {
    // Respond to user's click on one of the two buttons.
    Object src = evt.getSource();
    if (src == newGameButton)
    doNewGame();
    else if (src == resignButton)
    doResign();
    void doNewGame() {
    // Begin a new game.
    if (gameInProgress == true) {
    // This should not be possible, but it doesn't
    // hurt to check.
    message.setText("Finish the current game first!");
    return;
    for (int row = 0; row < 15; row++) // Fill the board with EMPTYs
    for (int col = 0; col < 15; col++)
    board[row][col] = EMPTY;
    currentPlayer = BLACK; // BLACK moves first.
    message.setText("BLACK: Make your move.");
    gameInProgress = true;
    newGameButton.setEnabled(false);
    resignButton.setEnabled(true);
    win_r1 = -1; // This value indicates that no red line is to be drawn.
    repaint();
    void doResign() {
    // Current player resigns. Game ends. Opponent wins.
    if (gameInProgress == false) {
    // This should not be possible.
    message.setText("There is no game in progress!");
    return;
    if (currentPlayer == WHITE)
    message.setText("WHITE resigns. BLACK wins.");
    else
    message.setText("BLACK resigns. WHITE wins.");
    newGameButton.setEnabled(true);
    resignButton.setEnabled(false);
    gameInProgress = false;
    void gameOver(String str) {
    // The game ends. The parameter, str, is displayed as a message.
    message.setText(str);
    newGameButton.setEnabled(true);
    resignButton.setEnabled(false);
    gameInProgress = false;
    void doClickSquare(int row, int col) {
    // This is called by mousePressed() when a player clicks on the
    // square in the specified row and col. It has already been checked
    // that a game is, in fact, in progress.
    /* Check that the user clicked an empty square. If not, show an
    error message and exit. */
    if ( board[row][col] != EMPTY ) {
    if (currentPlayer == BLACK)
    message.setText("BLACK: Please click an empty square.");
    else
    message.setText("WHITE: Please click an empty square.");
    return;
    /* Make the move. Check if the board is full or if the move
    is a winning move. If so, the game ends. If not, then it's
    the other user's turn. */
    board[row][col] = currentPlayer; // Make the move.
    repaint();
    if (winner(row,col)) {  // First, check for a winner.
    if (currentPlayer == WHITE)
    gameOver("WHITE wins the game!");
    else
    gameOver("BLACK wins the game!");
    return;
    boolean emptySpace = false; // Check if the board is full.
    for (int i = 0; i < 15; i++)
    for (int j = 0; j < 15; j++)
    if (board[i][j] == EMPTY)
    emptySpace = true;
    if (emptySpace == false) {
    gameOver("The game ends in a draw.");
    return;
    /* Continue the game. It's the other player's turn. */
    if (currentPlayer == BLACK) {
    currentPlayer = WHITE;
    message.setText("WHITE: Make your move.");
    else { 
    currentPlayer = BLACK;
    message.setText("BLACK: Make your move.");
    } // end doClickSquare()
    private boolean winner(int row, int col) {
    // This is called just after a piece has been played on the
    // square in the specified row and column. It determines
    // whether that was a winning move by counting the number
    // of squares in a line in each of the four possible
    // directions from (row,col). If there are 5 squares (or more)
    // in a row in any direction, then the game is won.
    if (count( board[row][col], row, col, 1, 0 ) >= 5)
    return true;
    if (count( board[row][col], row, col, 0, 1 ) >= 5)
    return true;
    if (count( board[row][col], row, col, 1, -1 ) >= 5)
    return true;
    if (count( board[row][col], row, col, 1, 1 ) >= 5)
    return true;
    /* When we get to this point, we know that the game is not
    won. The value of win_r1, which was changed in the count()
    method, has to be reset to -1, to avoid drawing a red line
    on the board. */
    win_r1 = -1;
    return false;
    } // end winner()
    private int count(int player, int row, int col, int dirX, int dirY) {
    // Counts the number of the specified player's pieces starting at
    // square (row,col) and extending along the direction specified by
    // (dirX,dirY). It is assumed that the player has a piece at
    // (row,col). This method looks at the squares (row + dirX, col+dirY),
    // (row + 2*dirX, col + 2*dirY), ... until it hits a square that is
    // off the board or is not occupied by one of the players pieces.
    // It counts the squares that are occupied by the player's pieces.
    // Furthermore, it sets (win_r1,win_c1) to mark last position where
    // it saw one of the player's pieces. Then, it looks in the
    // opposite direction, at squares (row - dirX, col-dirY),
    // (row - 2*dirX, col - 2*dirY), ... and does the same thing.
    // Except, this time it sets (win_r2,win_c2) to mark the last piece.
    // Note: The values of dirX and dirY must be 0, 1, or -1. At least
    // one of them must be non-zero.
    int ct = 1; // Number of pieces in a row belonging to the player.
    int r, c; // A row and column to be examined
    r = row + dirX; // Look at square in specified direction.
    c = col + dirY;
    while ( r >= 0 && r < 15 && c >= 0 && c < 15 && board[r][c] == player ) {
    // Square is on the board and contains one of the players's pieces.
    ct++;
    r += dirX; // Go on to next square in this direction.
    c += dirY;
    win_r1 = r - dirX; // The next-to-last square looked at.
    win_c1 = c - dirY; // (The LAST one looked at was off the board or
    // did not contain one of the player's pieces.
    r = row - dirX; // Look in the opposite direction.
    c = col - dirY;
    while ( r >= 0 && r < 15 && c >= 0 && c < 15 && board[r][c] == player ) {
    // Square is on the board and contains one of the players's pieces.
    ct++;
    r -= dirX; // Go on to next square in this direction.
    c -= dirY;
    win_r2 = r + dirX;
    win_c2 = c + dirY;
    // At this point, (win_r1,win_c1) and (win_r2,win_c2) mark the endpoints
    // of the line of pieces belonging to the player.
    return ct;
    } // end count()
    public void paintComponent(Graphics g) {
    super.paintComponent(g); // Fill with background color, lightGray
    /* Draw a two-pixel black border around the edges of the canvas,
    and draw grid lines in darkGray. */
    g.setColor(Color.darkGray);
    for (int i = 1; i < 15; i++) {
    g.drawLine(1 + 15*i, 0, 1 + 15*i, getSize().height);
    g.drawLine(0, 1 + 15*i, getSize().width, 1 + 15*i);
    g.setColor(Color.black);
    g.drawRect(0,0,getSize().width-1,getSize().height-1);
    g.drawRect(1,1,getSize().width-3,getSize().height-3);
    /* Draw the pieces that are on the board. */
    for (int row = 0; row < 15; row++)
    for (int col = 0; col < 15; col++)
    if (board[row][col] != EMPTY)
    drawPiece(g, board[row][col], row, col);
    /* If the game has been won, then win_r1 >= 0. Draw a line to mark
    the five winning pieces. */
    if (win_r1 >= 0)
    drawWinLine(g);
    } // end paintComponent()
    private void drawPiece(Graphics g, int piece, int row, int col) {
    // Draw a piece in the square at (row,col). The color is specified
    // by the piece parameter, which should be either BLACK or WHITE.
    if (piece == WHITE)
    g.setColor(Color.white);
    else
    g.setColor(Color.black);
    g.fillOval(3 + 15*col, 3 + 15*row, 10, 10);
    private void drawWinLine(Graphics g) {
    // Draw a 2-pixel wide red line from the middle of the square at
    // (win_r1,win_c1) to the middle of the square at (win_r2,win_c2).
    // This routine is called to mark the 5 pieces that won the game.
    // The values of the variables are set in the count() method.
    g.setColor(Color.red);
    g.drawLine( 8 + 15*win_c1, 8 + 15*win_r1, 8 + 15*win_c2, 8 + 15*win_r2 );
    if (win_r1 == win_r2)
    g.drawLine( 8 + 15*win_c1, 7 + 15*win_r1, 8 + 15*win_c2, 7 + 15*win_r2 );
    else
    g.drawLine( 7 + 15*win_c1, 8 + 15*win_r1, 7 + 15*win_c2, 8 + 15*win_r2 );
    public Dimension getPreferredSize() {
    // Specify desired size for this component. Note:
    // the size MUST be 172 by 172.
    return new Dimension(220, 220);
    public Dimension getMinimumSize() {
    return new Dimension(220, 220);
    public Dimension getMaximumSize() {
    return new Dimension(220, 220);
    public void mousePressed(MouseEvent evt) {
    // Respond to a user click on the board. If no game is
    // in progress, show an error message. Otherwise, find
    // the row and column that the user clicked and call
    // doClickSquare() to handle it.
    if (gameInProgress == false)
    message.setText("Click \"New Game\" to start a new game.");
    else {
    int col = (evt.getX() - 2) / 15;
    int row = (evt.getY() - 2) / 15;
    if (col >= 0 && col < 15 && row >= 0 && row < 15)
    doClickSquare(row,col);
    public void mouseReleased(MouseEvent evt) { }
    public void mouseClicked(MouseEvent evt) { }
    public void mouseEntered(MouseEvent evt) { }
    public void mouseExited(MouseEvent evt) { }
    } // end nested class Board
    } // end class GoMoku

    And doesn't work for me:
    init:
    deps-jar:
    Compiling 1 source file to C:\jdek\Prova\build\classes
    C:\jdek\Prova\src\gugi\GoMoku1.java:189: incomparable types: int[] and int
    if (board[j] == EMPTY)
    1 error
    BUILD FAILED (total time: 0 seconds)

  • My App Store Doesn't Show Any Thing , and not working .

    Today I've Noticed that My App Store Application is Not Working , and even I Can't Click On any Tabs ,and all of menu bar items such as sign out,sign in doesn't work . and doesn't Show Loading Status Bar, and doesn't show any message as you see in this picture :
    I've Tried There Solutions:
    Reset PRAM
    Delete App Store Cache Files
    Signed Out of Itunes And and signed in again
    clear History and web site data in safari
    But Nothing Changed .
    (Sorry My English is Not Good at all , But i'll be thankful if you help me )

    Test after taking each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes.
    Step 1
    Sign in to the App Store by selecting Sign In from the Store menu. If you're already signed in, sign out and then sign in again.
    Step 2
    Log out or restart the computer.
    Step 3
    Remove or disable "LittleSnitch" or any similar third-party software that blocks outgoing network connections according to the developer's instructions.
    Step 4
    Start up in safe mode and log in to the account with the problem.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    After testing, restart as usual (not in safe mode.)
    Step 5
    If possible, connect to a different network and test.
    Step 6
    There are reports that resetting the PRAM may solve the problem in some cases. I can't confirm.

  • Switch doesn't show any log when AC is put in back.

    I'm using two kind of switches i.e Cat2960S-24TD-L and Cat2960S-48TS-L with RPS2300 for backup power.
    One question was raising in my head during the power redundancy test on the switches.
    My question is how NMS can recognize that AC power is put in back as normal status without any log.
    Each switch has two power sources. One from AC built-in power and the other from RPS2300 as below.
    Access_SW#show env all
    FAN is OK
    TEMPERATURE is OK
    Temperature Value: 39 Degree Celsius
    Temperature State: GREEN
    Yellow Threshold : 50 Degree Celsius
    Red Threshold    : 60 Degree Celsius
    SW  PID                 Serial#     Status           Sys Pwr  PoE Pwr  Watts
    1  Built-in                                         Good
    2  Built-in                                         Good
    SW  Status          RPS Name          RPS Serial#  RPS Port#
    1   Active          RPS1              FDO1447YGT3  3
    2   Active          RPS1              FDO1447YGT3  6
    ~snipped~
    DCOut  State   Connected  Priority  BackingUp  WillBackup  Portname        SW#
        1       Active  No                6            No         Yes         <>                -
        2       Active  No                6            No         Yes         <>                -
        3       Active  Yes               6            No         Yes         Access_SW         1
        4       Active  No                6            No         Yes         <>                -
        5       Active  No                6            No         Yes         <>                -
        6       Active  Yes               6            No         Yes         Access_SW         2
    When I pull out the AC power cable out from the switch, it shows the proper log saying as below.
    Access_SW#
    Jul  8 17:15:46 UTC: %PLATFORM_ENV-1-PWR: Internal power supply not supplying power (Access_SW-2)
    Access_SW#show env all 
    FAN is OK
    TEMPERATURE is OK
    Temperature Value: 39 Degree Celsius
    Temperature State: GREEN
    Yellow Threshold : 50 Degree Celsius
    Red Threshold    : 60 Degree Celsius
    SW  PID                 Serial#     Status           Sys Pwr  PoE Pwr  Watts
    1  Built-in                                         Good
    2  Built-in                                         Unavail
    SW  Status          RPS Name          RPS Serial#  RPS Port#
    1   Active          RPS1             FDO1447YGT3  3
    2   Active          RPS1              FDO1447YGT3  6
    ~snipped~
    DCOut  State   Connected  Priority  BackingUp  WillBackup  Portname        SW#
        1       Active  No                6            No         Yes         <>                -
        2       Active  No                6            No         Yes         <>                -
        3       Active  Yes               6            No         Yes         Access_SW         1
        4       Active  No                6            No         Yes         <>                -
        5       Active  No                6            No         Yes         <>                -
        6       Active  Yes               6            Yes        Yes         Access_SW         2
    But I put AC power cable back into the switch, it doesn't show any log and any change to me. It still shows 'Built-in is Unavail' as below.
    Access_SW#show env all
    ~snipped~
    SW  PID                 Serial#     Status           Sys Pwr  PoE Pwr  Watts
    1  Built-in                                         Good
    2  Built-in                                         Unavail
    SW  Status          RPS Name          RPS Serial#  RPS Port#
    1   Active          RPS1              FDO1447YGT3  3
    2   Active          RPS1              FDO1447YGT3  6
    ~snipped~
    DCOut  State   Connected  Priority  BackingUp  WillBackup  Portname        SW#
        1  Active  No                6  No         Yes         <>                -
        2  Active  No                6  No         Yes         <>                -
        3  Active  Yes               6  No         Yes         Access_SW         1
        4  Active  No                6  No         Yes         <>                -
        5  Active  No                6  No         Yes         <>                -
        6  Active  Yes               6  Yes        Yes         Access_SW         2
    The problem is how the operator can decide 'Now AC power is okay so I will push the button on RPS to make it backup again' without getting any information from the switch.

    Hi innetee9228:
    If the output of "show env all" doesn't change when you put the AC power back in, that's indicating a bigger problem.  You see the %PLATFORM_ENV-1-PWR: message go when the power comes out, so there should be one when the power goes back.  That's more indicative of an IOS problem where the status isn't getting updated as it should. 
    The SNMP agent rides along side the guts of the IOS that feed the SHOW commands.  If the hardware isn't reporting correctly or whatever and "show env all" doesn't tell the truth, it's not likely that the SNMP agent is going to be receiving truth, either. 
    Once you have that addressed, you should be able to turn up power supply event traps and send them to whatever SNMP Manager you'd like, and have that alert your operator.
    nms-6506-e(config)#snmp-server enable traps envmon supply ?
      fan          Enable SNMP envmon fan traps
      shutdown     Enable SNMP environmental monitor shutdown traps
      status       Enable SNMP environmental status change traps
      temperature  Enable SNMP environmental monitor temperature traps
    nms-6506-e(config)#

  • HP probook 6450b running windows 8 display port to HDMI doesn't give any output

    Hi,
    My laptop HP probook 6450b running windows 8, display port to HDMI doesn't give any output. I gave windows+P and tried selecting duplicate/extend but no output. I even tried to change the DP to HDMI converter and the HDMI cable as well but no luck. Any help would be much appreciated.

    Dear Customer,
    Welcome and Thank you for posting your query on HP Support Forum
    It looks like you are using the Display Port on the Notebook get HDMI Ouput for better Audio and Video
    We will surely assist you with this issue
    Firstly I would like to keep you informed that the Display Port supports resolutions up to 2560 x 1600, 30-bit color depth at 60 Hz, and full HD (1920 x 1080) monitors, 24-bit color depth at 120 Hz
    NOTE: Resolutions are dependent upon monitor capability, and resolution and color depth settings.
    Please use an HP DisplayPort to HDMI Adapter for this setup. Please make sure that you are using HP Cable/Converter with the Product Number BP937AA.
    1. Please let me know if you have additional graphics card installed on your Notebook
    2. You can try download and installing the latest BIOS Update for your Notebook from the HP Website
    3. Make sure VGA Port on the Notebook is not in use when you are testing the Display Port
    Hope this helps, for any further queries reply to the post and feel free to join us again
     **Click the KUDOS star on left to say Thanks**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.
    Thank You,
    K N R K
    Although I am an HP employee, I am speaking for myself and not for HP

  • BPEL Console doesn't show any instances created

    Hi,
    We are using file protocol to read the files from trading partner into B2B. File is successfully processes by B2B. I can see that in reports.
    Then I have defined a BPEL process to Dequeue the messages from B2B using AQ Adapter, transforms and places the files in the local file system.
    The BPEL process is simple flow with one receive , transform and invoke activity.
    I have configured AQ adapter using WSIF browser. I can see the deployed document definition in browser.
    I have the TP agreement deployed, BPEL process deployed, but I don't see the 850 file processed. BPEL Console doesn't show any instances created. How would I know where what went wrong?
    Please help.

    Try using java oracle.tip.adapter.b2b.data.IPDequeue to dequeue the message and see if you can dequeue
    Then you'l be able to pin point if the issue is with your BPEL or with B2B Queue's
    Kalyan

  • "Dependecies" tab doesn't show any information for a selected table version 4.0

    Hello,
    I work with SQL Developer 4.0.0.13. I can see 20 tables in the list. When I select one table, in the tabs on the right side I can see information for "columns" and "data" and "constraints" and "indexes"... but the tab "Dependencies" doesn't show any information about references between this table and other tables in the schema.
    Oracle database is v11.2
    Can you please tell me what do I need to do in order to see information on "Dependencies" tab for a table?
    Thank you,
    Milan

    Hi, here is my example of XML extension showing referencing tables:
    Save the following XML to a file.
    <items>
      <item type="editor" objectType="TABLE">
        <title><![CDATA[*Referencing Tables]]></title>
          <query>
            <sql><![CDATA[SELECT
      cfk.owner "OWNER",
      cfk.table_name "TABLE NAME",
      cols.column_name "COLUMN",
      cfk.constraint_name "CONSTRAINT NAME",
      cfk.delete_rule "DELETE RULE",
      'SQLDEV:LINK:' || cfk.owner || ':TABLE:' || cfk.table_name ||
      ':oracle.dbtools.raptor.controls.grid.DefaultDrillLink' "LINK"
    FROM
      sys.all_constraints cpk,
      sys.all_constraints cfk,
      sys.all_cons_columns cols
    WHERE
      cpk.owner = :OBJECT_OWNER AND
      cpk.table_name = :OBJECT_NAME AND
      SUBSTR(cpk.table_name, 1, 4) != 'BIN$' AND
      SUBSTR(cpk.table_name, 1, 3) != 'DR$' AND
      cpk.constraint_type in ('P', 'U') AND
      cfk.r_owner = cpk.owner AND
      cfk.r_constraint_name = cpk.constraint_name AND
      cfk.constraint_type = 'R' AND
      cols.owner = cfk.owner AND
      cols.constraint_name = cfk.constraint_name
    ORDER BY
      cfk.owner, cfk.table_name, cfk.constraint_name,
      cols.column_name]]>
          </sql>
        </query>
      </item>
    </items>
    In SQLDeveloper select Preferences -> Database -> User Defined Extensions and click <Add Row>.
    In the "Type" field enter "EDITOR" and in the "Location" field enter the path to the file with XML.
    After restarting SQLDeveloper You should see a new tab "*Referencing Tables" for tables.

  • IPhoto app doesn't show any photos from my photos app

    I just upgraded my new iPad to iOS 6 beta. Maybe that's the problem but suddenly my iPhoto app doesn't show any photos at all. All the tabs (albums, photos, events, etc) are empty.  When I open the app it says "updating photo library" briefly, but that's it. I tried rebooting, deleting the app and reinstalling it, basically everything I could.  Is this a known iOs6 bug?

    Ok, I have the release and I have the issue, photos are just boxes w no pictures, is there a way to remove library and reload? The photo app works fine and all pictures are there.

  • When I try to access my emails the screen opens but doesn't show any emails

    When I try to access my emails the screen opens but doesn't show any emails

    Tap to open a new tab and Private will be at the bottom left of the page. If it is active, tap to turn it off.

  • Tools sync now doesn't show any progress bar???

    I have created sync module for firefox.
    But when i click on : Tools > sync now
    Why it doesn't show any progress bar???
    Firexfox team should look into this matter.
    I love firefox.
    Best Regards,
    Jason Malaysia

    Yup Okay..
    But i'm now wondering, if it run background:-
    Where does it update sync to?
    Is it into my firefox account?
    Where i can see my backup bookmarks?
    Best Regards,
    Jason Malaysia

  • Running Sync BPEL process doesn't show any HTML form /XML source for input

    Hi
    I designed,compiled and deployed SYNC BPEL process on to server
    but when I opened console and try to run the process, it doesn't show any form for input
    Actually it has to take input
    Where I am doing wrong...?
    Thanks for any help...

    Hi Praveen,
    That is correct, you're not doing anything wrong. The BPEL Console doesn't show any forms for testing the services if the service is synchronous.
    I test my synchronous webservices with Eviware SoapUI. This is a freeware tool. Check: http://www.soapui.org/
    Just create a new project in soapUI, create a new request from WSDL, copy and paste the WSDL in soapUI. It will generate a default request for you, which you can edit and execute.
    HTH,
    Bas

  • When i call someone who already connected with another call it doesn't show any wating notification. why? it is very important. all other mobiles have this potion. Please give me some solution.

    when i call someone who already connected with another call it doesn't show any wating notification. why? it is very important. all other mobiles have this option. Please give me some solution.

    Your iPhone can take multiple calls. If you answer your phone from one person or call someone and another call comes into you, you will hear a beep and if you pull your phone away from your ear, you will see that you can hang up the call with the 1st person or answer the 2nd call and then swap between the two.
    I have no idea what you mean by you calling someone who is already talking to someone. I've never been able to see on my iPhone that someone I'm calling is already talking to someone else.

  • I changed my username and now afp doesn't show any users. I have file sharing on. And also when I select "get more info" on the shared folders they don't have my username in there. it just has "applepc(me)" it my old username before changing it.

    I changed my username and now afp doesn't show any users. I have file sharing on. And also when I select "get more info" on the shared folders they don't have my username in there. it just has "applepc(me)" my old username before changing it showed the correct username? please any help would be great.

    Turn Time Machine OFF temporarily in its preference pane. Leave the window open.
    Navigate in the Finder to your backup disk, and then to the folder named "Backups.backupdb" at the top level of the volume. If you back up over a network, you'll first have to mount the disk image file containing your backups by double-clicking it. Descend into the folder until you see the snapshots, which are represented by folders with a name that begins with the date of the snapshot. Find the one you want to restore from. There's a link named "Latest" representing the most recent snapshot. Use that one, if possible. Otherwise, you'll have to remember the date of the snapshot you choose.
    Inside the snapshot folder is a folder hierarchy like the one on the source disk. Find one of the items you can't restore and select it. Open the Info dialog for the selected item. In the Sharing & Permissions section, you may see an entry in the access list that shows "Fetching…" in the Name column. If so, click the lock icon in the lower right corner of the dialog and authenticate. Then delete the "Fetching…" item from the icon list. Click the gear icon below the list and select Apply to enclosed items from the popup menu.
    Now you should be able either to copy the item in the Finder or to restore it in the time-travel view. If you use the time-travel view, be sure to select the snapshot you just modified. If successful, repeat the operation with the other items you were unable to restore. You can select multiple items in the Finder and open a single Info dialog for all of them by pressing the key combination option-command-I.
    When you're done, turn TM back ON and close its preference pane.

  • Ultiboard part wizard doesn't show any copper layers during part creation

    Ultiboard part wizard doesn't show any copper layers during part creation. I have to check the box to activate Copper Top in the part editor, once the part is made in order to see what I've made. I suspect there is a connection between this issue and my prior issue with the inability of the Multisim database to link to parts that I have recently made in Ultiboard. This all just began happening this week (of 8-27-12) Design Suite version is 10.1 & OS is Windows 7.
    Thanks.

    Hi Todc,
    This is very strange. My suggestion is that you can try to delete the configuration file. To delete the configuration file, go to Options >> Global Preferences. Under the Paths tab, select the path to the configuration file all the way upto config\ as shown in screen shot. Close Ultiboard and navigate to this folder. Delete all the files and then try to open Ultiboard again. This should resolve the issue.
    Please let me know what happens.
    Regards,
    Tayyab R,
    National Instruments.
    Attachments:
    v10 Global Preferences.JPG ‏77 KB

Maybe you are looking for