public void run(){
        while(true){
            try{
                System.out.println("workng");
                String line = reader.readLine();
                System.out.println(line);
                String[] rgb = line.split(" ");
                button.setBackground(new Color(Integer.parseInt(rgb[0]),Integer.parseInt(rgb[1]),Integer.parseInt(rgb[2])));
            }
            catch(IOException e){
                System.out.println(e.getMessage());
            }
    }
   
    }