FireTableDataChanged() doesnt update?

When I in my ActionListener try to update mu JTable by fireTableDataChanged() nothing happens? Can anyone help me with this?
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.sql.*;
import java.util.*;
import javax.swing.table.*;
import java.text.*;
class Kalender extends JFrame implements ActionListener
Container contentPane = getContentPane();
JScrollPane scrollPane;
     JTable table;
     MyTableModel myModel;
     JButton back = new JButton("<<");
     JButton forward = new JButton(">>");
     JLabel frem = new JLabel();     
Icon fremIcon= new ImageIcon(this.getClass().getResource("frem.gif"));
JLabel tilbage = new JLabel();
     Icon tilbageIcon = new ImageIcon(this.getClass().getResource("tilbage.gif"));
     Kalender()
          contentPane.setLayout(null);
myModel = new MyTableModel();
table = new JTable(myModel);
table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
DefaultTableCellRenderer tcrColumn = new DefaultTableCellRenderer();
tcrColumn.setHorizontalAlignment(JTextField.CENTER);
table.getColumnModel().getColumn(0).setCellRenderer(tcrColumn);
table.getColumnModel().getColumn(1).setCellRenderer(tcrColumn);
table.getColumnModel().getColumn(2).setCellRenderer(tcrColumn);
table.getColumnModel().getColumn(3).setCellRenderer(tcrColumn);
table.getColumnModel().getColumn(4).setCellRenderer(tcrColumn);
table.getColumnModel().getColumn(5).setCellRenderer(tcrColumn);
table.getColumnModel().getColumn(6).setCellRenderer(tcrColumn);
//table.getColumnModel().getColumn(7).setCellRenderer(tcrColumn);
table.getColumnModel().getColumn(0).setPreferredWidth(80);
table.getColumnModel().getColumn(1).setPreferredWidth(80);
table.getColumnModel().getColumn(2).setPreferredWidth(80);
table.getColumnModel().getColumn(3).setPreferredWidth(80);
table.getColumnModel().getColumn(4).setPreferredWidth(80);
table.getColumnModel().getColumn(5).setPreferredWidth(80);
table.getColumnModel().getColumn(6).setPreferredWidth(80);
//table.getColumnModel().getColumn(7).setPreferredWidth(80);
table.setRowHeight(50);
scrollPane = new JScrollPane(table);
scrollPane.setBounds(20,20,604,330);
getContentPane().add(scrollPane);
back.setBounds(280,400,50,20);
back.addActionListener(this);
contentPane.add(back);
forward.setBounds(340,400,50,20);
forward.addActionListener(this);
contentPane.add(forward);
public void actionPerformed( ActionEvent e )
     if(e.getSource()==back)
          myModel.maaned--;          
          myModel.fireTableDataChanged();           
          System.out.println(myModel.maaned);
     if(e.getSource()==forward)
          myModel.maaned++;
     myModel.fireTableDataChanged();
     System.out.println(myModel.maaned);
class MyTableModel extends AbstractTableModel
final String[] columnNames = {//"Uge",
     "Mandag",
"Tirsdag",
"Onsdag",
"Torsdag",
"Fredag",
"L�rdag",
"S�ndag"};
final Object[][] data=new Object[6][7];
     int aarTaeller=0;
int maanedTaeller=0;
int maaned=0;
MyTableModel()
Calendar calendar = new GregorianCalendar();
int aar = calendar.get(calendar.YEAR+aarTaeller);
maaned = (calendar.get(calendar.MONTH)+maanedTaeller);
Calendar c = new GregorianCalendar(aar,maaned,1);
int dageMaaned = c.getActualMaximum(c.DAY_OF_MONTH);
int dageUge=0;
int dageUge2 = (c.get(c.DAY_OF_WEEK));
int ugeAar = c.get(c.WEEK_OF_YEAR);
SimpleDateFormat sdf = new SimpleDateFormat( "EEEE" );
String dagNavn = sdf.format( c.getTime());
if(dagNavn.equals("mandag")) dageUge=0;
if(dagNavn.equals("tirsdag")) dageUge=1;
if(dagNavn.equals("onsdag")) dageUge=2;
if(dagNavn.equals("torsdag")) dageUge=3;
if(dagNavn.equals("fredag")) dageUge=4;
if(dagNavn.equals("l�rdag")) dageUge=5;
if(dagNavn.equals("s�ndag")) dageUge=6;
System.out.println("maaned "+maaned);
System.out.println("uge dag "+dageUge);
System.out.println("uge dag "+dageUge2);
System.out.println("dage maaned "+dageMaaned);
System.out.println("dag navn "+dagNavn);
     int taeller=1;
int taeller2=0;
          for(int i=0;i<6;i++)
               int ii = 0;
          if(taeller2<dageUge)// MANDAG
               data[i][ii] ="";
          ii++;          
          if(taeller==dageMaaned)break;
          taeller2++;               
          else
               data[i][ii] =""+taeller;
          ii++;          
          if(taeller==dageMaaned)break;
          taeller++;
          taeller2++;               
          if(taeller2<dageUge)// TIRSDAG
               data[i][ii] ="";
          ii++;          
          if(taeller==dageMaaned)break;
          taeller2++;               
          else
               data[i][ii] =""+taeller;
          ii++;          
          if(taeller==dageMaaned)break;
          taeller++;
          taeller2++;               
          if(taeller2<dageUge)// ONSDAG
               data[i][ii] ="";
          ii++;          
          if(taeller==dageMaaned)break;
          taeller2++;               
          else
               data[i][ii] =""+taeller;
          ii++;          
          if(taeller==dageMaaned)break;
          taeller++;
          taeller2++;               
          if(taeller2<dageUge)// TORSDAG
               data[i][ii] ="";
          ii++;          
          if(taeller==dageMaaned)break;
          taeller2++;               
          else
               data[i][ii] =""+taeller;
          ii++;          
          if(taeller==dageMaaned)break;
          taeller++;
          taeller2++;               
          if(taeller2<dageUge)// FREDAG
               data[i][ii] ="";
          ii++;          
          if(taeller==dageMaaned)break;
          taeller2++;               
          else
               data[i][ii] =""+taeller;
          ii++;          
          if(taeller==dageMaaned)break;
          taeller++;
          taeller2++;               
          if(taeller2<dageUge)// L�RDAG
               data[i][ii] ="";
          ii++;          
          if(taeller==dageMaaned)break;
          taeller2++;               
          else
               data[i][ii] =""+taeller;
          ii++;          
          if(taeller==dageMaaned)break;
          taeller++;
          taeller2++;               
          if(taeller2<dageUge)// S�NDAG
               data[i][ii] ="";
          ii++;          
          if(taeller==dageMaaned)break;
          taeller2++;               
          else
               data[i][ii] =""+taeller;
          ii++;          
          if(taeller==dageMaaned)break;
          taeller++;
          taeller2++;               
          for(int i=0;i<5;i++)
               data[0] =""+ugeAar;
               ugeAar++;
               if(ugeAar==52)
                    ugeAar=1;
public int getColumnCount()
return columnNames.length;
public int getRowCount()
return data.length;
public String getColumnName(int col)
return columnNames[col];
public Object getValueAt(int row, int col)
return data[row][col];
public boolean isCellEditable(int row, int col)
     return true;
public void setValueAt(Object value, int row, int col)
data[row][col] = value;
fireTableCellUpdated(row, col);
fireTableDataChanged();      

Kalender()
contentPane.setLayout(null);
myModel = new MyTableModel();
You've done it here on the above line.
What error are you getting now?

Similar Messages

  • Hi, I've a 3GS and iPad (on 5.1.1) and Macbook (10.6.8) all connected to iCal on iCloud, but when I change an event on phone it doesnt update on iCloud/other devices - any ideas?

    Hi,
    I've an iPhone 3GS and iPad '1' (both on IOS 5.1.1) and Macbook (on 10.6.8) - all connect happily to my iCloud iCal (using the iCal app for iPhone/iPad and Firefox browser for access to my iCloud).
    But ... when I change an event (add/delete) on my iPhone it doesnt update on the iCal on my iCloud, therefore neither on iCal on my iPad!
    Yet if I change anything on my iCal iPad / iCal iCloud it updates/refreshes on the iPhone fine?
    So - it clearly recognises/refreshes any updates but can't update the iCloud!
    Any ideas?
    Don

    If you're also having problems changing the account on your iOS devices, go to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iDevice, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • [SOLVED]Pacman warning, why It doesnt update??

    :: Synchronizing package databases...
    core                      36.2K   52.7K/s 00:00:01 [#####################] 100%
    extra                    451.8K   80.8K/s 00:00:06 [#####################] 100%
    community                371.8K   77.5K/s 00:00:05 [#####################] 100%
    arch-games                33.6K   65.9K/s 00:00:01 [#####################] 100%
    archlinuxfr               10.3K   37.9K/s 00:00:00 [#####################] 100%
    :: Starting full system upgrade...
    warning: codecs: local (20100303-1) is newer than archlinuxfr (20071007-6)
    resolving dependencies...
    looking for inter-conflicts...
    I always get that when I do sudo pacman -Syu, then update process continues normally, why pacman doesnt update the package if its supposed to be newer? Or am I getting this the wrong way?
    If that no problem, Is there a way I can remove the warning?
    cheers
    Last edited by 655321 (2010-06-17 07:52:24)

    I really cant remember why I put on that repo, but yeah its slow to update so, Will remove it.
    But i do remember I installed the codecs to get something working on my system (cant remember what, maybe video/audio codecs?)
    So I guess you are advising to remove codecs, remove archlinuxfr repo and then reinstall codecs?
    UPDATE, checking my pacman.conf I remembered that I enable archlinuxfr repo because I have installed Playonlinux, but I guess I can get that from the aur. Is there anything special to do after removing a repo? will -Syu be enough?
    cheers
    Last edited by 655321 (2010-06-17 07:24:12)

  • App Kindle doesnt update

    I am trying to update Kindle app but it is idle and doesnt update, what can I do?, I am trying to update Kindle app but it is idle and doesnt update, what can I do?

    by update and fixes i mean gingerbread 2.3 update with fixes.

  • Itunes doesnt update apps automaticaly

    hi
    Why Itunes doesnt update automaticaly the apps?
    after updating from Ipad and Iphone, I "transfer purchases" to my itunes. I click SYNC but nothing.  If I go to check the app windows, some of them shows UPDATE status?? I have to click individually each app??? really??
    Is there a good alternative (PC friendly) to Itunes? I cant stand this software anymore
    chris

    Do you have iTunes 10.5 installed on yur computer?
    What happens when you try to update?
    If you iPod is 8 or 16 GB it is really a 2G iPod and those can only go to 4.2.1.  A 32 GB one can be either a 2G or 3G. To identify yours see:
    Apple - Support - Check Your Service and Support Coverage
    Identifying iPod models

  • My Ipod's version is 4.2.1 but i cant update it to IOS5 .. i have tried many ways to do it it just doesnt update.. and i have the last version of itunes ... plz helpp!!!!!!

    my Ipod's version is 4.2.1 but i cant update it to IOS5 .. i have tried many ways to do it it just doesnt update.. and i have the last version of itunes ... plz helpp!!!!!!

    To identify ur iPod:
    http://support.apple.com/kb/HT1353#iPod_touch_late2009
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • Why my ipad 4th gen doesnt update apps using wifi connection instead works on 3G?

    MY ipad 4th gen is updating apps only using 3g connection whereas my wifi is working fine with chrome and other softwares, but it doesnt update softwares using wifi connection whic. Is unlimited data for me.

    The WiFi only iPad does not have a GPS chip and does location through WiFi routers. Tethering to your iPhone will allow you to use the GPS chip on it and utilize Apple and Google Maps.

  • I rate a song but it doesnt show in itunes and doesnt update Smart Playlist

    I have a problem i cant figure out. I have a smart playlist on my iphone for songs rated 5 stars. When i rate a song 5 stars on my iphone it doesn't update the playlist with it. Whats weird is the very same playlist does update on my wifes iphone without going into itunes to sync. She runs 3.0 nd im on 3.1.
    aNy ideas why the rating doesnt update when i do it on the phone and not in itunes?

    Hello there, Double-d2014.
    The following Knowledge Base article provides the steps for downloading your purchase to your iPhone:
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Remove object and doesnt update salary

    i was testing my app today and found out that for some reason, when i unattach and object from each other - it doesnt update the mentor's salary for some reason :-/
    it kinda does but not properly
    for every java programmer the salary increased by 5% - thats done. so lets say we start with basic salary of 1000 - 10% of it is 1100
    it does that fine
    then if a mentor has a mentee - 5% increase PER mentee
    so if we have 1 mentee to a mentor it should be 1155
    if we remove the mentee from the mentor - the mentors salary should be 1100
    but it doesnt do it :-/
    must be invalid calcs in my program but dont know what
    if we add a mentee to a mentor - mentors salary is 1270
    then if we remove the mentee from mentor - the mentors salary is 1210
    any ideas?
    //this is in the programmer class:
        public int    getMonthlySalary() {   
            int monthlysalary = super.getMonthlySalary();
            int bonus = 0;
            if(theLanguage.equals("Java") == true || theLanguage.equals("java") == true)
                 bonus = (int) (monthlysalary * 0.1);
            return monthlysalary + bonus;
        }  this is in the mentor class:
            int monthlySalary = super.getMonthlySalary();
            int bonus = 0;
            int numberOfProgrammers = theMentorings.size();
            bonus = (int) (numberOfProgrammers * 0.05 * monthlySalary);
            return monthlySalary + bonus;and the toString method in the mentor class:
            int thesalary = 0;
            String thesalfin = null;
            String menteesdetails = "";
            //ConsoleIO.out.println("\nMentees: \t");
            Iterator mentees = theMentorings.iterator();
            while(mentees.hasNext() == true)
                 Programmer mentee = (Programmer)mentees.next();             
                // increase the salary
                thesalary = thesalary + this.getMonthlySalary();
                menteesdetails = menteesdetails + "\n" + mentee.toString() + "\n\n";
            thesalfin = new Integer (thesalary).toString();
            return "<----------------------------------->\n" + super.toString() + "\n\n\tMentors Mentee's:\n<=>\n" + menteesdetails + "\n<=>\n<----------------------------------->\n\n"; //+ "\n\nThe MENTOR monthly salary: " + thesalfin + "\n";

    i have done that but found where the problem is
    when adding mentee and mentor method in Softwarehouse - if the programmer is NOT an instanceof Mentor - it creates the mentor object, removes programmer and adds the mentor object in the softwarehouse - if they obviously do java it increases the salary AGAIN by 10% - thats the problem it does it twice :(
         anotherage = mentorage;
         foundMentor = true;     
    mentorname = prog.getName();
    mentorproglang = prog.getCertainLang();
    mentorpn = prog.getPayrollNumber();
    mentorage = prog.getAge();
    mentoryob = year - mentorage;
    mentorsal = prog.getMonthlySalary();     
    if(prog instanceof Mentor)
    ((Mentor)prog).addMentee(mentee);
    else
    createit = true;
    mentorjavalang = prog.getCertainLang();
    mentortemp = prog;
    if(createit == true)
    theStaff.remove(mentortemp);
    Mentor mentormain = new Mentor(mentorname, mentorpn, mentorsal, mentoryob, mentorjavalang);               
    theStaff.add(mentormain);
    mentormain.addMentee(mentee);               
    }

  • I have iphone 4 and it doesnt update with my itunes.how can i get it work?, i have iphone 4 and it doesnt update with my itunes.how can i get it work?

    i have iphone 4 and it doesnt update with my itunes. i'm runing 4.2.1(8C148) with baseband 03.10.01. whenever i update it, it says "the iphone could not update. this device is not eligible for the requested build". i dont know what this mean? can anyone help me??
    thanks

    Hello,
    I have had the same problem as you, and have spent the past 2 days figuring it out. I have been on the phone with AppleCare 3 times, and been to the Apple Store once as well. I ended up reinstalling iTunes completely, creating a new Administrator account on my Mac, and getting a brand new iPhone 4. None of these fixed the problem. I did figure it out, and hopefully this helps you as well:
    http://support.apple.com/kb/TS3297?viewlocale=en_US
    Follow the drop menu for "Blocked by Configuration"
    Follow these steps
    I have a Mac, and I skipped everything except for the Terminal instructions.
    I did the Terminal command, added # and a space in front of the only line it showed that had apple.com in it, then saved and exited. My update worked perfectly immediately after I completed those steps. Again, I hope this helps you as well!

  • Ipod doesnt update

    i know ipods 4th  cant update higher than 6.1.3 but wheni update it says updating 6.1.5 and then stops,
    It says lost connection and error.
    why doesnt it update?? why does it say 6.1.5??
    i tried mines and my dads
    my dads says update ios 4 but it doesnt update at all
    mine says update ios 6.1.5 and it dosnt update either, but mine is jailbroken so i dont really expect it becuase you can fix jailbroken stuff can you?
    help me!! please!!

    See my response to your other post. Posting again just confuses potential repliers.

  • 2nd iPod doesnt update when connected to iTunes

    I have 2 iPod Nano's 2nd Gen. When I connect the first one itunes updates then shows the message "iPod update is complete. OK to disconnect." Then the iPod disply shows the charging icon. When I connect the second nano it does not try to update. It shows do not disconnect in the iPod display. It shows that it is connected in Devices. I tried restore but still get the same problem. I looked around but couldnt find any solutions. Any help would be appreciated.

    Thansk for the answer. but i conenct it to another pc and doesnt work neither ..
    i'm very sad cause i use my ipod A LOT and beeing without it makes my day boring, lol.
    Any other suggestions?
    Thanks so much for the help

  • E63 SMS doesnt update if contact is updated

    hi,
    just got my e63 around 3 weeks ago.
    just a few question/ need help on a few things.
    1) I just noticed that when i update the name of a contact info on my address book, the name / sender in my SMS inbox doesnt change.
    eg: someone texted me who is not in my phonebook, then I add him as a new contact.
    His SMS prior to the name add in the address book remains a number, but the succeeding ones have already his name as the sender.
    I've tried restarting it, didnt work.
    Been looking for a refresh or something button but cant find any.
    2) is there a way to move your SMS that is originally saved in the phone memory to the memory card?
    transfer it there, something like that.
    3) and another thing,
    is there a media player available that has a navigation bar for the e63?
    the real player that is already installed doesnt have any.
    watching something longer than a minute is a pain if you have to watch it from the start to see the middle part.
    version is
    400.21.013
    22-10-2009
    rm-437
    c Nokia e63-1 (27)
    thanks in advance for your help

    I got the E63 recently and have the same problem. Would like to know if there is some refresh technique because I find it highly inconvenient. Restarting don't seem to work for me either. Thanks!

  • Multithreading server /- client doesnt update need a little help

    I have three classes, one is my client called lobby, the second is my server, then my third is the server thread. Everything works but the client doesnt seem to update unless you type stuff in and hit enter or press send and that isbecause of the key and action listeners, how do i go about having to updating every 10 seconds or less..? I tried doing a while statement and of course it freezed it because its an infinite loop, tried making it a thread, not to good at that, i just need some advice on how to solve this problem, thanks.
    public class Lobby extends JPanel {
         public Lobby()
              listenSocket();
              send = new JButton("Send");
              chatter = new JTextField();
              motd = new JLabel("The Lobby");
              this.setLayout(new MigLayout());
              this.setSize(800, 600);
              this.setBackground(Color.white);
              this.setAutoscrolls(true);
              this.add(motd, "span 1, align center");
              this.add(UserListTop(), "align center, wrap");
              this.add(ChatBox(), "");
              this.add(UserList(), "wrap");
              this.add(Chatter(), "");
              this.add(Send(), "");
              this.setVisible(true);
         public Component ChatBox()
              Dimension dscroll = new Dimension(590, 400);
              chatbox = new JTextArea(20, 50);
              chatbox.setLineWrap(true);
              chatbox.setEditable(true);
              chatbox.setWrapStyleWord(true);
              JScrollPane areaScrollPane = new JScrollPane(chatbox);
              areaScrollPane.setVerticalScrollBarPolicy(
                        JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
              areaScrollPane.setAutoscrolls(true);
              areaScrollPane.setPreferredSize(dscroll);
              return areaScrollPane;
         public Component Chatter()
              KeyListener enter = new KeyListener()
                   @Override
                   public void keyPressed(KeyEvent event) {
                        if((event.getKeyChar() == KeyEvent.VK_ENTER) && (chatter.getText() != "") && (chatter.getText() != null))
                             //Send data over socket
                             String text = chatter.getText();
                             out.println(text);
                             chatter.setText(new String());
                             //Receive text from server
                             try{
                                  String line = in.readLine();
                                  chatbox.append("Usernamehere: " + line + "\n");
                             } catch (IOException e){
                                  System.out.println("Read failed");
                                  System.exit(1);
                   @Override
                   public void keyReleased(KeyEvent e) {
                   @Override
                   public void keyTyped(KeyEvent e) {
              String line;
              try {
                   line = in.readLine();
                   chatbox.append("usernamehere: " + line + "\n");
              } catch (IOException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              chatter.addKeyListener(enter);
              Dimension chattersize = new Dimension(590, 30);
              chatter.setPreferredSize(chattersize);
              chatter.setVisible(true);
              return chatter;
         public Component Send()
              ActionListener sendl = new ActionListener()
                   @Override
                   public void actionPerformed(ActionEvent event) {
                        Object source = event.getSource();
                        if(source == send){
                             //Send data over socket
                             String text = chatter.getText();
                             out.println(text);
                             chatter.setText(new String(""));
                             //Receive text from server
                             try{
                                  String line = in.readLine();
                                  System.out.println("UserNameHere: " + line);
                                  chatbox.append("Usernamehere: " + line + "\n");
                             } catch (IOException e){
                                  System.out.println("Read failed");
                                  System.exit(1);
              send.addActionListener(sendl);
              send.setVisible(true);
              return send;
         public Component UserListTop()
              JLabel userlisttop = new JLabel("Players");
              return userlisttop;
         public Component UserList()
              Dimension scrollsize = new Dimension(170, 400);
              String names[] = new String[1500];
              for(int i = 0; i < 1500; i++)
                   names[i] = "Player" + i;
              userlist = new JList( names );
              userlist.setBackground(Color.white);
              userlist.setSize(50, 200);
              JScrollPane userlistscroll = new JScrollPane(userlist);
              userlistscroll.setPreferredSize(scrollsize);
              return userlistscroll;
         public void listenSocket(){
              //Create socket connection
              try{
                   socket = new Socket("localhost", 4444);
                   out = new PrintWriter(socket.getOutputStream(), true);
                   in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
              } catch (UnknownHostException e) {
                   System.out.println("Unknown host: localhost");
                   System.exit(1);
              } catch  (IOException e) {
                   System.out.println("No I/O");
                   System.exit(1);
    }

    3rd class
    package server;
    import java.io.DataInputStream;
    import java.io.IOException;
    import java.io.PrintStream;
    // This client thread opens the input and the output streams for a particular client,
    // ask the client's name, informs all the clients currently connected to the
    // server about the fact that a new client has joined the chat room,
    // and as long as it receive data, echos that data back to all other clients.
    // When the client leaves the chat room this thread informs also all the
    // clients about that and terminates.
    import java.net.Socket;
    public class clientThread extends Thread{
        DataInputStream is = null;
        PrintStream os = null;
        Socket clientSocket = null;      
        clientThread t[];
        public clientThread(Socket clientSocket, clientThread[] t){
         this.clientSocket=clientSocket;
            this.t=t;
        public void run()
         String line;
            String name;
         try{
             is = new DataInputStream(clientSocket.getInputStream());
             os = new PrintStream(clientSocket.getOutputStream());
             os.println("Enter your name.");
             name = is.readLine();
             os.println("Hello "+name+" to our chat room.\nTo leave enter /quit in a new line");
             for(int i=0; i<=9; i++)
              if (t!=null && t[i]!=this)
              t[i].os.println("*** A new user "+name+" entered the chat room !!! ***" );
         while (true) {
              line = is.readLine();
    if(line.startsWith("/quit")) break;
              for(int i=0; i<=9; i++)
              if (t[i]!=null) t[i].os.println("<"+name+"> "+line);
         for(int i=0; i<=9; i++)
              if (t[i]!=null && t[i]!=this)
              t[i].os.println("*** The user "+name+" is leaving the chat room !!! ***" );
         os.println("*** Bye "+name+" ***");
         // Clean up:
         // Set to null the current thread variable such that other client could
         // be accepted by the server
         for(int i=0; i<=9; i++)
              if (t[i]==this) t[i]=null;
         // close the output stream
         // close the input stream
         // close the socket
         is.close();
         os.close();
         clientSocket.close();
         catch(IOException e){};

  • HT4623 im trying to updat emy phone to the new software it says its downloading but then doesnt update and reboot my phone to update it , keeps sayin errror how do i sort this ?

    hi there i wonder if anyone can help me im trying to update my phone to the new software 7.2 an it says its downloaded but then doesnt rebot my phone to complete the update it just says there an error an throws me out !! any help on this ?

    gemsmobiletans wrote:
    my phone does not have software update option on it.
    If you have iOS 4... See Here...
    http://support.apple.com/kb/HT4972
    OR...
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    Make sure you have the Latest Version of iTunes Installed
    iTunes free download from www.itunes.com/download
    Note:
    The Current iOS for the iPhone 4s is iOS 7.

Maybe you are looking for

  • Creating and Selecting a line in After Effects CC?

    OK, So I suppose this is a two part question... But there is a little thing in After Effects CC that is annopying me alot, and it could just be me, and the way I've been doing things... 1) The way I have creating a simple Line in After effects, is by

  • Synchornization of Palm M515 & to Outlook 2000 suddenly stopped operating...........

    I have a Palm M515 which I  synchornize daily to Outlook 2000 using HotSync Manager 4.1.0. I have been using this set-up for years, and it suddenly stopped operating. I get the following error message on the screen of my Palm:  "The connection betwee

  • Lockbox Overpayments and tolerance

    Hi, Is there a way to post the incoming customer overpayments thru lockbox, to post to customer as " On account"? I tried to do so, but the system still applies the full payment to the invoice ( eg $1000 payment applied to $500 invoice")  regardless

  • Edge Commons and  adding external data?

    I'm trying to add information from a script.  Specifically, this script simply checks the ip address of the user to display the closest city to them and the weather. The docs on Edge Commons are still sparce, so I don't really have an idea of how to

  • Forte IIOP / Corba / Java more questions...

    Hi, I wonder if any Forte / IIOP / Java people can help... We are a Forte site developing an application using the Forte Web SDK ( window converter / Javascript etc ) and using the Forte external connection class to enable direct communication betwee