Advertisement
Kira-kun

ui.addTextArea()

Dec 6th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.69 KB | None | 0 0
  1. public void UIaddTextArea(int id,String message, String name,int x, int y, int w, int h, String bg, String bb, int a){
  2.     try {
  3.         ByteArrayOutputStream toPacket = new ByteArrayOutputStream();
  4.         DataOutputStream packet = new DataOutputStream(toPacket);
  5.         packet.writeInt(id);
  6.         packet.writeUTF(message);
  7.         packet.writeShort(x);
  8.         packet.writeShort(y);
  9.         packet.writeShort(w);
  10.         packet.writeShort(h);
  11.         packet.writeInt(Integer.parseInt(bg, 16));
  12.         packet.writeInt(Integer.parseInt(bb, 16));
  13.         packet.writeByte(a);
  14.         packet.writeByte(0);
  15.         this.sendPacket(29, 20, toPacket.toByteArray());
  16.     } catch (IOException ex) {
  17.         Logger.getLogger(Client.class.getName()).log(Level.SEVERE, null, ex);
  18.     }  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement