N73 WHY DOSE IT SHOW CONECTION ERROR??

Hi every1 during converasation the phone just cuts off with a message ( conection error) can any 1 help to solve it?

My phone the same. On old FW I rarely, if ever, had Connection Error.
Now with 3- FW it happens frequently. Extremely annoying as turning off and on phone seems to fix it but takes absolutely ages.
Seems a bit of a coincidence that others with 3-FW are having the same problem as me since the upgrade.
Anyway...
Regards...

Similar Messages

  • Why is Intellisense showing this error in VS2013?

    Intellisense is showing a red wiggly line below the function name `get_today` in its definition below, with the following error message: "cannot overload functions distinguished by return type alone". Note that the code compiles and executes without
    any problem.
    #define _CRT_SECURE_NO_WARNINGS
    #include <ctime>
    #include <iostream>
    struct today { int d, m, y; };
    struct today get_today() {
    std::time_t t = std::time(0);
    struct tm* now = std::localtime(&t);
    return { now->tm_mday, now->tm_mon + 1, now->tm_year + 1900 };
    struct today today = get_today();
    class Date {
    int d, m, y;
    public:
    Date(int, int, int);
    Date(int, int);
    Date(int);
    Date();
    int get_day() { return d; }
    int get_month() { return m; }
    int get_year() { return y; }
    Date::Date(int d, int m, int y) : d{ d }, m{ m }, y{ y } {}
    Date::Date(int d, int m) : d{ d }, m{ m } { y = today.y; }
    Date::Date(int d) : d{ d } { m = today.m; y = today.y; }
    Date::Date() { d = today.d; m = today.m; y = today.y; }
    int main() {
    Date d;
    std::cout << d.get_day() << ' ' << d.get_month() << ' ' << d.get_year() << '\n';

    Further to Simon's reply, the problem reproduces in the latest VS2015
    CTP so I suggest that you submit it as a bug report on the MS connect
    site. https://connect.microsoft.com/visualStudio/
    Post a link back here to your report so that we can find it and
    vote/validate it.
    Dave

  • Why is it showing this error

    Here is the code:
    import java.sql.*;
    import javax.sql.*;
    import java.util.*;
    import javax.ejb.*;
    import javax.naming.*;
    public class sngEJB implements EntityBean
              private String songID;
              private String category;
              private String title;
              private String artist;
              private EntityContext context;
              private Connection con;
              private String dbName = "java:/comp/env/jdbc/pubs";
                   /* Implement the business methods*/
                   public String getsongID(){
                        return songID;
                   public String getcategory(){
                        return category;
                   public String gettitle(){
                        return title;
                   public String getartist(){
                        return artist;
         /*call back methods*/
         public String ejbCreate(String songID, String category, String title, String artist)                     throws CreateException
              try
              /*Invoke a database routine to insert values in the database table*/
                   insertRow(songID, category, title, artist);
              catch(Exception ex)
                   throw new EJBException("ejbCreate:"+
                   ex.getMessage());
              this.songID = songID;
              this.category = category;
              this.title = title;
              this.artist = artist;
         /* Method to retrieve primary key.*/
         public String ejbFindByPrimaryKey(String primaryKey) throws FinderException
                   boolean result;
                   try
                   /* Invoke a database routine to retrieve the primary key*/
                        result = selectByPrimaryKey(primaryKey);
                   catch (Exception ex)
                        throw new EJBException("ejbFindByPrimaryKey: "+ ex.getMessage());
              if (result)
                        return primaryKey;
              else
                        throw new ObjectNotFoundException
                        ("Row for id" + primaryKey + " not found.");
         public void ejbRemove()
                   try
                        /*invoke database routine to delete a record from the database*/
                        deleteRow(songID);
                   catch (Exception ex)
                        throw new EJBException("ejbRemove: "+ ex.getMessage());
         public void setEntityContext(EntityContext context)
                   this.context = context;     
                   try
                        /*Invoke a database routine to establish a connection with DB*/
                        makeConnection();
                   catch (Exception ex)
                        throw new EJBException ("Unable to connect to database."                     + ex.getMessage());
         public void unsetEntityContext()
                   try
                        con.close();
                   catch (SQLException ex)
                        throw new EJBException("UnsetEntityContext: " + ex.getMessage());
         public void ejbActivate()
                   songID = (String)context.getPrimaryKey();
         public void ejbPassivate()
                   songID = null;
         public void ejbLoad()
                   try
                        /*invoke a DB routine to recieve values from DB table*/
                        loadRow();
                   catch (Exception ex)
                        throw new EJBException("ejbLoad: " + ex.getMessage());
         public void ejbStore()
                   try
                        /*Invoke a DB routine to update Values in the DB table*/
                        storeRow();
                   catch (Exception ex)
                        throw new EJBException ("ejbLoad: " +ex.getMessage());
         public void ejbPostCreate(String songID, String category, String title, String artist){}
         /*** Routines to access Database***/
         /* Connect to the Database*/
         private void makeconnection() throws NamingException, SQLException
                   InitialContext ic = new InitialContext();
                   DataSource ds = (DataSource) ic.lookup(dbName);
                   con = ds.getConnection();
         /*Insert values in the table*/
         private void insertRow (String songID, String category, String title, String artist)                          throws SQLException
                   String insertStatement = "insert into songAccount values(?,?)";
                   PreparedStatement prepStmt = con.prepareStatement(insertStatement);
                   prepStmt.setString(1, songID);
                   prepStmt.setString(2, category);
                   prepStmt.setString(3, title);
                   prepStmt.setString(4, artist);
                   prepStmt.executeUpdate();
                   prepStmt.close();
         /* Delete values from the DB table*/
         private void deleteRow(String songID) throws SQLException
                   String deleteStatement = "delete from songAccount where csongID = ?";
                   PreparedStatement prepStmt = con.prepareStatement(deleteStatement);
                   prepStmt.setString(1, songID);
                   prepStmt.executeUpdate();
                   prepStmt.close();
         /* Retrieve the primary key from the Artist table*/
         private boolean selectByPrimaryKey(String primaryKey) throws SQLException
                   String selectStatement = "select csongID " + "from songAccount where                               csongID = ? ";
                   PreparedStatement prepStmt = con.prepareStatement(selectStatement);
                   prepStmt.setString(1, primaryKey);
                   ResultSet rs = prepStmt.executeQuery();
                   boolean result = rs.next();
                   prepStmt.close();
                   return result;
         /* Retrieve values from the table */
         private void loadRow() throws SQLException
         /* Update values in the DB table*/
         private void storeRow() throws SQLException
                   String updateStatement = "update songAccount set ccategory = ? ,                          ctitle = ? ,cartist = ? , where     csongID = ?";
                   PreparedStatement prepStmt = con.prepareStatement (updateStatement);
                   prepStmt.setString(1, category);
                   prepStmt.setString(2, title);
                   prepStmt.setString(3, artist);
                   prepStmt.setString(4, songID);
                   int rowCount = prepStmt.executeUpdate();
                        prepStmt.close();
                   if (rowCount == 0)
                        throw new EJBException("Storing row for id" + songID + "failed.");
    IT throws following error:
    sngEJB.java:90: cannot resolve symbol
    symbol : method makeConnection ()
    location: class sngEJB
    makeConnection();
    ^
    1 error

    The method has been defined as makeconnection and not makeConnection. Careful about case-sensitivity...
    ***Annie***

  • Why i can't update my iphone6 new version 8.1.1 with wifi? I tried to update in my pc but it showed an error and now i can't update it with wifi in my phone too would mind please tell me whats the problem or if you can fix it please. Thank you.

    HEllo!
    why I can't update my iphone6 with wifi in my phone and when i tried to update with pc it also showed and error and stopped downloading?

    Hi WahidAryaa1,
    If you can't update your iPhone to the latest version, there are a couple of articles you will want to check out.
    For Wi-Fi issues please see
    Resolve issues with an over-the-air iOS update - Apple Support
    If you are updating with iTunes please follow
    Resolve iOS update and restore errors in iTunes - Apple Support
    The later has a link to more detailed troubleshooting if you know the error you are getting.
    Resolve iOS update and restore errors - Apple Support
    Take care,
    Nubz

  • Why Firefox not Sync will automatically showing unknown error?

    why Firefox not Sync will automatically showing unknown error?

    How long has been this happening? Have you tried again?
    I will encourage you to use the recommendations on this article whenever Sync returns Unknown errors for a long period of time.
    [[Firefox Sync is not working]]
    Sometimes it's just as simple as a connection issue between your computer and the servers.

  • HT1918 i don't understand why i cannot purchase anything using my Mastercard. Each time i enter the card expiry date, it will show an error.

    Last time i usually pay the purchasing item using my debit visa card.
    after that i no more use the debit visa card.
    i'm using mastercard.
    now each time i want to purchase anything, i cannot pay using the mastercard.
    when i insert all the details including the expiry date, apple will show an error. only the expiry date.
    i don't understand why.

    Does it have to be an applet?
    If you want the same behaviour as in the code with traffic lights, change
    class MortgageApplet extends JApplet implements ActionListener {
    to
    class MortgageApplet extends JFrame implements ActionListener {
    and change
    public void init() {
    to
    public MortgageApplet() {                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Hi why I can't download itunes on my hubby's laptop?It showing an error message "windows cannot find C:\document and settings\pistolero\mymusic...

    Hi why I can't download itunes on my hubby's laptop?It showing an error message "windows cannot find C:\document and settings\pistolero\mymusic... We have itunes before and he accidentally delete it..

    ... We have itunes before and he accidentally delete it..
    If Windows cannot find then the path you referenced (C:\document and settings\pistolero\mymusic...) then it is gone.
    Download and install iTunes again: http://www.apple.com/itunes/
    Once iTunes is installed you can download your purchased music again. This assumes what you purchased is still available in the Store. Here is the procedure:
    Launch iTunes.
    Click on iTunes Store on the left
    On the right you will see this
    Sign in with your Apple ID, then click on "Purchased" (with the orange blob)
    On the summary page that appears select the tab "Not on This Computer" on the right.
    On the list that appears, select what you want and then click the "Download" button.

  • Why is showing an error of 3194 when i try to restored my phone

    why is showing an error of 3194 when i try to restored my iphone

    http://support.apple.com/kb/TS3694#error3194
    Error 1004, 1013, 1638, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. FollowiTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.

  • Why the iPhone dose not show the witting in case if the other person have a call and I'm on witting?

    Why the iPhone dose not show the witting in case if the other person have a call and I'm on witting? really I'm dissappointed with this point Why we do not have this service?

    That is not a feature of the iPhone (or of any phone I've ever had so apparently it's far from universal). Apple has not said why they have no such feature.
    You can request such a feature here:
    http://www.apple.com/feedback
    Either the person you're calling will answer you or they won't. What difference does it make why?

  • When i go into finder   click on pictures why dose it not show all photos just lets me open iphoto

    when i go into finder   click on pictures why dose it not show all photos just lets me open iphoto 

    Ralph9430 offers a good suggestion.  But you may need to do this before taking his advice:
    Check in iPhoto's Preferences (which you can open from the iPhoto menu).  Look in General, and make sure "Connecting Camera Opens" is set to "Image Capture").
    If it is set to "iPhoto", you won't be able to get to Image Capture easily.

  • After i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    after i updated my firefox from 3.16 to 4.0.1, have some websites i can't load, and they showed: " database error" but b4 i never got this problem. Can someone tell me why ?

    Nothing is working and I can't find the Roboform toolbar. Your lack of direct support is really irritating- a live chat at least would be helpful.

  • Hi, i have problem timed me conect to itunse show me error 2 please hallp?

    Hi, i have problem timed me conect to itunse show me error 2 please hallp me ?

    Hi, i have problem timed me conect to itunse show me error 2 please hallp me ?

  • Why the Image dose not show?

    the program can run, however, the image just dose not show on the container, I've mad ....
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.image.*;
    import java.awt.geom.*;
    import javax.imageio.*;
    import java.io.*;
    public class gui extends JFrame{
    private stack s=new stack();
    private queue q1=new queue();
    private queue q2=new queue();
    private JRadioButton rbutton1,rbutton2,rbutton3,rbutton4,rbutton5;
    private JTextArea point1,point2,infoarea;
    private JButton ok ,exit;
    int state=0;
    private JLabel b=new JLabel(new ImageIcon("abc.jpg"));
    public gui() {    
    creatUserInterface();
    private void creatUserInterface(){
    Container contentPane=getContentPane();
    contentPane.setLayout(null);
    b.setBounds(0, 0,127,127);
    contentPane.add(b);
    rbutton1=new JRadioButton();
    rbutton1.setBounds(45, 270, 20,20);
    rbutton1.setBackground(Color.decode("170800"));
    contentPane.add(rbutton1);
    rbutton2=new JRadioButton();
    rbutton2.setBounds(145, 270, 20,20);
    rbutton2.setBackground(Color.decode("170800"));
    contentPane.add(rbutton2);
    rbutton3=new JRadioButton();
    rbutton3.setBounds(245, 270, 20,20);
    rbutton3.setBackground(Color.decode("170800"));
    contentPane.add(rbutton3);
    rbutton4=new JRadioButton();
    rbutton4.setBounds(345, 270, 20,20);
    rbutton4.setBackground(Color.decode("170800"));
    contentPane.add(rbutton4);
    rbutton5=new JRadioButton();
    rbutton5.setBounds(445, 270, 20,20);
    rbutton5.setBackground(Color.decode("170800"));
    contentPane.add(rbutton5);
    point1=new JTextArea();
    point1.setBounds(585, 20, 43, 20);
    contentPane.add(point1);
    point2=new JTextArea();
    point2.setBounds(585, 205, 43, 20);
    contentPane.add(point2);
    infoarea=new JTextArea();
    infoarea.setBounds(30, 300, 450, 100);
    infoarea.setText("click \"ok \" to start game, click \"exit \" to exit");
    contentPane.add(infoarea);
    ok=new JButton();
    ok.setBounds(520, 255, 75, 60);
    ok.setText("OK");
    contentPane.add(ok);
    ok.addActionListener(
    new ActionListener(){
    public void actionPerformed(ActionEvent event){          
    okButton(event);
    exit=new JButton();
    exit.setBounds(520, 340, 75, 65);
    exit.setText("EXIT");
    contentPane.add(exit);
    exit.addActionListener(
    new ActionListener(){
    public void actionPerformed(ActionEvent event){          
    exitButton(event);
    contentPane.setBackground(Color.decode("170800"));
    setTitle("Change it or Not");
    setSize(640, 480);
    setVisible(true);
    Message was edited by:
    explosivealan

    because the code is very long and i just cut the code i think is not related, i post all the code here, should i post the code of stack , queue and others class?My objective is to show all cardLabel as jpg, abc is to test only.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.image.*;
    import java.awt.geom.*;
    import javax.imageio.*;
    import java.io.*;
    public class gui extends JFrame{
        private stack s=new stack();                                      // a stack with 52 node to store 52 cards
        private queue q1=new queue();                                     // a queue to hold the computer player's cards
        private queue q2=new queue();                                     // a queue to hold the human player's cards
        private cardoperation op=new cardoperation();                    // contain all card operation that require to run the game       
        private handcompare hc=new handcompare();                        // pass two queue to handcompare, if the first queue defealt the second queue, return true, otherwise reture false
        private JLabel cardlabel1,cardlabel2,cardlabel3,cardlabel4,cardlabel5,cardlabel6,cardlabel7,cardlabel8,cardlabel9,cardlabel10;     // label to show the cards
        private JLabel computerpoint,playerpoint,inputbet,dollarsign;        
        private JRadioButton rbutton1,rbutton2,rbutton3,rbutton4,rbutton5;   //radio button for selecting which card to be changed
        private JTextField bet;                                               //Textfield to input the amount of bet
        private JTextArea point1,point2,infoarea;                             //textarea to show player's point and futher infomation;
        private JButton ok ,exit;                                             //button to confirm or to exit game
        int compoint=10000,playpoint=10000;                                    // integer to store the player's current point;'
        int betamount;                                                         // integer to store the current bet amount
        int state=0;                                                           // store the state of the program
        private JLabel b=new JLabel(new ImageIcon("abc.jpg"));
        public gui() {    
            super();
            creatUserInterface();
        private void creatUserInterface(){
        Container contentPane=getContentPane();   
        contentPane.setLayout(null);
        cardlabel1=new JLabel();
        cardlabel1.setBounds(50, 15, 50, 30);
        cardlabel1.setText("");
        contentPane.add(cardlabel1);
        b.setBounds(0, 0,127,127);
        contentPane.add(b);
        cardlabel2=new JLabel();
        cardlabel2.setBounds(150, 15, 50, 30);
        cardlabel2.setText("");
        contentPane.add(cardlabel2);
        cardlabel3=new JLabel();
        cardlabel3.setBounds(250, 15, 50, 30);
        cardlabel3.setText("");
        contentPane.add(cardlabel3);
        cardlabel4=new JLabel();
        cardlabel4.setBounds(350, 15, 50, 30);
        cardlabel4.setText("");
        contentPane.add(cardlabel4);
        cardlabel5=new JLabel();
        cardlabel5.setBounds(450, 15, 50, 30);
        cardlabel5.setText("");
        contentPane.add(cardlabel5);
        cardlabel6=new JLabel();
        cardlabel6.setBounds(50, 200, 50, 30);
        cardlabel6.setText("");
        contentPane.add(cardlabel6);
        cardlabel7=new JLabel();
        cardlabel7.setBounds(150, 200, 50, 30);
        cardlabel7.setText("");
        contentPane.add(cardlabel7);
        cardlabel8=new JLabel();
        cardlabel8.setBounds(250, 200, 50, 30);
        cardlabel8.setText("");
        contentPane.add(cardlabel8);
        cardlabel9=new JLabel();
        cardlabel9.setBounds(350, 200, 50, 30);
        cardlabel9.setText("");
        contentPane.add(cardlabel9);
        cardlabel10=new JLabel();
        cardlabel10.setBounds(450, 200, 50, 30);
        cardlabel10.setText("");
        contentPane.add(cardlabel10);
        rbutton1=new JRadioButton();
        rbutton1.setBounds(45, 270, 20,20);
        rbutton1.setBackground(Color.decode("170800"));
        contentPane.add(rbutton1);
        rbutton2=new JRadioButton();
        rbutton2.setBounds(145, 270, 20,20);
        rbutton2.setBackground(Color.decode("170800"));
        contentPane.add(rbutton2);
        rbutton3=new JRadioButton();
        rbutton3.setBounds(245, 270, 20,20);
        rbutton3.setBackground(Color.decode("170800"));
        contentPane.add(rbutton3);
        rbutton4=new JRadioButton();
        rbutton4.setBounds(345, 270, 20,20);
        rbutton4.setBackground(Color.decode("170800"));
        contentPane.add(rbutton4);
        rbutton5=new JRadioButton();
        rbutton5.setBounds(445, 270, 20,20);
        rbutton5.setBackground(Color.decode("170800"));
        contentPane.add(rbutton5);
        computerpoint=new JLabel();
        computerpoint.setBounds(500, 15, 80, 30);
        computerpoint.setText("computer has");
        contentPane.add(computerpoint);
        playerpoint=new JLabel();
        playerpoint.setBounds(500, 200, 80, 30);
        playerpoint.setText("you have");
        contentPane.add(playerpoint);
        inputbet=new JLabel();
        inputbet.setBounds(500, 90, 130, 20);
        inputbet.setText("please input bet here");
        contentPane.add(inputbet);   
        dollarsign=new JLabel();
        dollarsign.setBounds(510, 115, 20, 20);
        dollarsign.setText("$");
        contentPane.add(dollarsign);   
        point1=new JTextArea();
        point1.setBounds(585, 20, 43, 20);   
        contentPane.add(point1);  
        point2=new JTextArea();
        point2.setBounds(585, 205, 43, 20);
        contentPane.add(point2);  
        infoarea=new JTextArea();
        infoarea.setBounds(30, 300, 450, 100);
        infoarea.setText("click \"ok \" to start game, click \"exit \" to exit");
        contentPane.add(infoarea);
        bet=new JTextField();
        bet.setBounds(530, 115, 60, 20);
        contentPane.add(bet);  
        ok=new JButton();
        ok.setBounds(520, 255, 75, 60);
        ok.setText("OK");
        contentPane.add(ok);
        ok.addActionListener(
                    new ActionListener(){
               public void actionPerformed(ActionEvent event){          
                 okButton(event);
        exit=new JButton();
        exit.setBounds(520, 340, 75, 65);
        exit.setText("EXIT");
        contentPane.add(exit);
        exit.addActionListener(
                    new ActionListener(){
               public void actionPerformed(ActionEvent event){          
                 exitButton(event);
        contentPane.setBackground(Color.decode("170800"));
        setTitle("Change it or Not");
        setSize(640, 480);
        setVisible(true);
        private void displayLabel(){
            int a[]=new int[5];
            int b[]=new int[5];
            String a1[]=new String[5];
            String b1[]=new String[5];
            a=q1.copy_queue();
            b=q2.copy_queue();
            int i;
                for(i=0;i<5;i++){
            if(a%100==13) a1[i]="A";
    else if(a[i]%100>0&&a[i]%100<10)a1[i]=String.valueOf(a[i]%100+1);
    else if(a[i]%100==10)a1[i]="J";
    else if(a[i]%100==11)a1[i]="Q";
    else if(a[i]%100==12)a1[i]="K";
    for(i=0;i<5;i++){
    if(b[i]%100==13) b1[i]="A";
    else if(b[i]%100>0&&b[i]%100<10)b1[i]=String.valueOf(b[i]%100+1);
    else if(b[i]%100==10)b1[i]="J";
    else if(b[i]%100==11)b1[i]="Q";
    else if(b[i]%100==12)b1[i]="K";
    cardlabel1.setText(a1[0]);
    if(a[0]/100==4)
    cardlabel1.setForeground(Color.PINK);
    else if(a[0]/100==3)
    cardlabel1.setForeground(Color.BLUE);
    else if(a[0]/100==2)
    cardlabel1.setForeground(Color.RED);
    else if(a[0]/100==1)
    cardlabel1.setForeground(Color.BLACK);
    cardlabel2.setText(a1[1]);
    if(a[1]/100==4)
    cardlabel2.setForeground(Color.PINK);
    else if(a[1]/100==3)
    cardlabel2.setForeground(Color.BLUE);
    else if(a[1]/100==2)
    cardlabel2.setForeground(Color.RED);
    else if(a[1]/100==1)
    cardlabel2.setForeground(Color.BLACK);
    cardlabel3.setText(a1[2]);
    if(a[2]/100==4)
    cardlabel3.setForeground(Color.PINK);
    else if(a[2]/100==3)
    cardlabel3.setForeground(Color.BLUE);
    else if(a[2]/100==2)
    cardlabel3.setForeground(Color.RED);
    else if(a[2]/100==1)
    cardlabel3.setForeground(Color.BLACK);
    cardlabel4.setText(a1[3]);
    if(a[3]/100==4)
    cardlabel4.setForeground(Color.PINK);
    else if(a[3]/100==3)
    cardlabel4.setForeground(Color.BLUE);
    else if(a[3]/100==2)
    cardlabel4.setForeground(Color.RED);
    else if(a[3]/100==1)
    cardlabel4.setForeground(Color.BLACK);
    cardlabel5.setText(a1[4]);
    if(a[4]/100==4)
    cardlabel5.setForeground(Color.PINK);
    else if(a[4]/100==3)
    cardlabel5.setForeground(Color.BLUE);
    else if(a[4]/100==2)
    cardlabel5.setForeground(Color.RED);
    else if(a[4]/100==1)
    cardlabel5.setForeground(Color.BLACK);
    cardlabel6.setText(b1[0]);
    if(b[0]/100==4)
    cardlabel6.setForeground(Color.PINK);
    else if(b[0]/100==3)
    cardlabel6.setForeground(Color.BLUE);
    else if(b[0]/100==2)
    cardlabel6.setForeground(Color.RED);
    else if(b[0]/100==1)
    cardlabel6.setForeground(Color.BLACK);
    cardlabel7.setText(b1[1]);
    if(b[1]/100==4)
    cardlabel7.setForeground(Color.PINK);
    else if(b[1]/100==3)
    cardlabel7.setForeground(Color.BLUE);
    else if(b[1]/100==2)
    cardlabel7.setForeground(Color.RED);
    else if(b[1]/100==1)
    cardlabel7.setForeground(Color.BLACK);
    cardlabel8.setText(b1[2]);
    if(b[2]/100==4)
    cardlabel8.setForeground(Color.PINK);
    else if(b[2]/100==3)
    cardlabel8.setForeground(Color.BLUE);
    else if(b[2]/100==2)
    cardlabel8.setForeground(Color.RED);
    else if(b[2]/100==1)
    cardlabel8.setForeground(Color.BLACK);
    cardlabel9.setText(b1[3]);
    if(b[3]/100==4)
    cardlabel9.setForeground(Color.PINK);
    else if(b[3]/100==3)
    cardlabel9.setForeground(Color.BLUE);
    else if(b[3]/100==2)
    cardlabel9.setForeground(Color.RED);
    else if(b[3]/100==1)
    cardlabel9.setForeground(Color.BLACK);
    cardlabel10.setText(b1[4]);
    if(b[4]/100==4)
    cardlabel10.setForeground(Color.PINK);
    else if(b[4]/100==3)
    cardlabel10.setForeground(Color.BLUE);
    else if(b[4]/100==2)
    cardlabel10.setForeground(Color.RED);
    else if(b[4]/100==1)
    cardlabel10.setForeground(Color.BLACK);
    point1.setText("$"+String.valueOf(compoint)); //show the value back if player has change it accdentially
    point2.setText("$"+String.valueOf(playpoint));
    if(betamount==0)
    bet.setText("");
    else
    bet.setText(String.valueOf(betamount));
    private void displayHalf(){
    int b[]=new int[5];
    String b1[]=new String[5];
    b=q2.copy_queue();
    int i;
    for(i=0;i<5;i++){
    if(b[i]%100==13) b1[i]="A";
    else if(b[i]%100>0&&b[i]%100<10)b1[i]=String.valueOf(b[i]%100+1);
    else if(b[i]%100==10)b1[i]="J";
    else if(b[i]%100==11)b1[i]="Q";
    else if(b[i]%100==12)b1[i]="K";
    cardlabel6.setText(b1[0]);
    if(b[0]/100==4)
    cardlabel6.setForeground(Color.PINK);
    else if(b[0]/100==3)
    cardlabel6.setForeground(Color.BLUE);
    else if(b[0]/100==2)
    cardlabel6.setForeground(Color.RED);
    else if(b[0]/100==1)
    cardlabel6.setForeground(Color.BLACK);
    cardlabel7.setText(b1[1]);
    if(b[1]/100==4)
    cardlabel7.setForeground(Color.PINK);
    else if(b[1]/100==3)
    cardlabel7.setForeground(Color.BLUE);
    else if(b[1]/100==2)
    cardlabel7.setForeground(Color.RED);
    else if(b[1]/100==1)
    cardlabel7.setForeground(Color.BLACK);
    cardlabel8.setText(b1[2]);
    if(b[2]/100==4)
    cardlabel8.setForeground(Color.PINK);
    else if(b[2]/100==3)
    cardlabel8.setForeground(Color.BLUE);
    else if(b[2]/100==2)
    cardlabel8.setForeground(Color.RED);
    else if(b[2]/100==1)
    cardlabel8.setForeground(Color.BLACK);
    cardlabel9.setText(b1[3]);
    if(b[3]/100==4)
    cardlabel9.setForeground(Color.PINK);
    else if(b[3]/100==3)
    cardlabel9.setForeground(Color.BLUE);
    else if(b[3]/100==2)
    cardlabel9.setForeground(Color.RED);
    else if(b[3]/100==1)
    cardlabel9.setForeground(Color.BLACK);
    cardlabel10.setText(b1[4]);
    if(b[4]/100==4)
    cardlabel10.setForeground(Color.PINK);
    else if(b[4]/100==3)
    cardlabel10.setForeground(Color.BLUE);
    else if(b[4]/100==2)
    cardlabel10.setForeground(Color.RED);
    else if(b[4]/100==1)
    cardlabel10.setForeground(Color.BLACK);
    cardlabel1.setText("");
    cardlabel2.setText("");
    cardlabel3.setText("");
    cardlabel4.setText("");
    cardlabel5.setText("");
    point1.setText("$"+String.valueOf(compoint)); //show the value back if player has change it accdentially
    point2.setText("$"+String.valueOf(playpoint));
    if(betamount==0)
    bet.setText("");
    else
    bet.setText(String.valueOf(betamount));
    private void okButton(ActionEvent event){
    switch(state){
    case(0):{
    op.reshuffle(s);
    op.CardDistribe(s, q1, q2);
    displayHalf();
    infoarea.setText("please input your bet and click \"ok \" \n\nSpace is Black Heart is Red \nClub is Bleu Diamond is Pink");
    break;
    case(1):{  
    try{
    betamount=Integer.parseInt(bet.getText());
    catch(NumberFormatException e){
    infoarea.setText("invaild input, please try again");
    state=state-1;
    if(state==1)
    if(betamount<=0||betamount>playpoint)
    {infoarea.setText("please input between 1 & "+String.valueOf(playpoint));
                           state=state-1;}
    else
    {infoarea.setText("please choose the cards to be changed \n\nSpace is Black    Heart is Red \nClub is Bleu         Diamond is Pink"); 
                           displayLabel();}
    break;
    case(2):{           
    infoarea.setText("choosed card has been changed");
    int a[]=new int[5];
    for(int i=0;i<5;i++)
    a[i]=0;
    if(rbutton1.isSelected())
    a[0]=1;
    if(rbutton2.isSelected())
    a[1]=1;
    if(rbutton3.isSelected())
    a[2]=1;
    if(rbutton4.isSelected())
    a[3]=1;
    if(rbutton5.isSelected())
    a[4]=1;
    op.computerChangeCard(s, q1, hc);
    op.playerChangeCard(s, q2, a);
    displayLabel();
    break;
    case(3):{          
    if(hc.compare(q1, q2)){
    infoarea.setText("you loss\n\nclick \"ok \" to continue");
    playpoint=playpoint-betamount;
    compoint=compoint+betamount;
    else{
    infoarea.setText("you win\n\nclick \"ok \" to continue");
    playpoint=playpoint+betamount;
    compoint=compoint-betamount;
    betamount=0;
    displayLabel();
    if(playpoint<=0)
    infoarea.setText("you have loss the game, press \"ok \" or \"exit \" to end game");
    else if(compoint<=0)
    infoarea.setText("you have win the game, press \"ok \" or \"exit \" to end game");
    else{
    state=-1;
    break;
    case(4):{
    exit(); // player's point <=0, so force to exit'
    default:
    rbutton1.setSelected(false);
    rbutton2.setSelected(false);
    rbutton3.setSelected(false);
    rbutton4.setSelected(false);
    rbutton5.setSelected(false);
    state=state+1;
    private void exitButton(ActionEvent event){
    exit();
    private void exit(){
    System.exit(0);

  • I am using Windows 8.1 i have an External Hard Disk and one drive is now inaccessible due to sudden power failure few days ago. Now it shows "Data error (Cyclic redundancy check)". I want all my important files and Pics. How ?

    Hi,
    I am using Windows 8.1
    I have an External Hard Disk i have partitioned it to 4 parts.
    One drive is now inaccessible due to sudden power failure while listening Music from that drive few days ago.
    Now it shows "Data error (Cyclic redundancy check)".
    I tried all the procedures provided here like
    chkdsk /f, diskpart, rescan etc
    but no result :( (i mean all processes failed. They could not detect the drive).
    Please help me to get those data, pictures and project files.
    thank you

    Then why aren't you posting this in the Windows 8 forums found @
    http://social.technet.microsoft.com/Forums/windows/en-US/home?category=w8itpro
    This is a Windows 7 forum for discussion about Windows 7.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Why PSA data show red status when opened but green on PSA page?

    Run RSA1 -> click PSA to open PSA page, locate one infosource and find the PSA under it, find the status column shows it's green, but when opening it, find the 1st column shows red for each row.  How does the inconsitance occur?
    BTW, if we open the infopackage monitor for the above one, find a weird thing is that each request get two consecutive processes running with a circle of red ball and green ball in the left frame.  Double click one of them, in the right frame and click the monitor Status tab, the msg window is as following (in between two dashed lines below):
    Incorrect data records - error requests (total status GREEN)
    Diagnosis
    Data records were recognized as incorrect.
    System response
    The valid records were updated in the data target and can be used in reporting.
    The incorrect records were not written to the data target, but were posted retractively under a new request number in the PSA.
    Procedure
    Check the data in the error requests, correct the errors, and post the error requests.
    Sounds like the data failed to uploaded to data target due to error in PSA, but why the status show green in somewhere?   And if clicking the Details tab, all show green!  Weird!
    Thanks

    Hi Kevin,
    In your InfoPackage Update tab, click the Error Handling button. It seems that the Valid records update, request green option is chosen. This is why you see the green request and some error records.
    This means that the corect reocrds were loaded and are available for reporting, but the incorrect ones were left behind. This is used to check the erro records separatelt so that they do not disrupt the entire data load.
    Hope this helps...

Maybe you are looking for