private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here
        try
        {
        String jobno=Mainframe_Txt_Subject.getText();
        String username=LoginFrame.USERNAME;
        String password=LoginFrame.PASSWORD;
        String subject=Mainframe_Txt_Subject.getText();
        String content=Mainframe_Txt_Message_Content.getText();
        String filename=Mainframe_Txt_Filename.getText();
        String to_email=Mainframe_Txt_To_Email_Ids.getText();
        String priority=(String)Mainframe_Combo_Priority.getSelectedItem();
        String deadline=Mainframe_Txt_Deadline_Time.getText();
      
        filepacket.Packet pack=null;

       
        pack=new filepacket.Packet(SCHEDLING_PACKET,username,password, to_email,subject,content,filename,deadline);
        pack.priority=priority;
       
      
        byte[] data_To_Send=PacketToObject.objectToBytes(pack);
        DatagramPacket packet=new DatagramPacket(data_To_Send,data_To_Send.length,InetAddress.getByName(LoginFrame.SERVER_ADDRESS),TASK_EXECUTOR_PORT);
        socket.send(packet);
        }
        catch(Exception e)
        {
            System.out.println(e.getLocalizedMessage());
        }
    }//GEN-LAST:event_jButton3ActionPerformed