Need help... someone?

hey,
im currently having some problems with my project that im working on and really need some help. the code is too big and messy to post here so if your willing to help, plz leave your email address and ill send u the code as well as the problem. (btw its public domain software)
thanks in advance,
Vojnik

ok fine, if u think of it like that, here is the extremely long code:
import java.nio.*;
import java.nio.charset.*;
import java.nio.channels.*;
import java.util.*;
import java.net.*;
import java.io.*;
* ChatterClient.java
public class ChatterClient extends Thread {
    private static final int BUFFER_SIZE = 255;
    private static final long CHANNEL_WRITE_SLEEP = 10L;
    private static final int PORT = 10997;
    private ByteBuffer writeBuffer;
    private ByteBuffer readBuffer;
    private boolean running;
    private SocketChannel channel;
    private String host;
    private Selector readSelector;
    private CharsetDecoder asciiDecoder;
    private String username;
    private GUI gui;
    private InputThread it;
    public String nextMessage = "";
* Calls run() when created.
* @param host - String
* @param username - String
    public ChatterClient(String host, String username, GUI gui) {
     this.host = host;
     this.username = username;
     this.gui = gui;
     readBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
     writeBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
     asciiDecoder = Charset.forName("US-ASCII").newDecoder();
     this.start();
    public void run() {
     connect(host, username); //connects to the server using the ip or hostname, does not yet send username with it
     it = new InputThread(this);
     it.start();
     running = true;
                    readIncomingMessages();
               try {
                    this.sleep(100);
               }catch (InterruptedException ie) {
    private void connect(String hostname, String username) {
     try {
         readSelector = Selector.open();
         InetAddress addr = InetAddress.getByName(hostname);
         channel = SocketChannel.open(new InetSocketAddress(addr, PORT));
          gui.chatDisplay.append("Connected"); //give a signal to the user that they are connected to the server
         channel.configureBlocking(false);
         channel.register(readSelector, SelectionKey.OP_READ, new StringBuffer());
         sendMessage("/nick "+username); //sends the command to change the clients username, which is nothing when they first connect
         gui.connected = true;
     catch (UnknownHostException uhe) {
          gui.chatDisplay.append(gui.errorMsg2); //give an appropriate error message to the user when something is wrong
     catch (ConnectException ce) {
          gui.chatDisplay.append(gui.errorMsg2);
     catch (Exception e) {
          gui.chatDisplay.append(gui.errorMsg2);
    private void readIncomingMessages() {
     // check for incoming mesgs
     try {
         // non-blocking select, returns immediately regardless of how many keys are ready
         readSelector.selectNow();
         // fetch the keys
         Set readyKeys = readSelector.selectedKeys();
         // run through the keys and process
         Iterator i = readyKeys.iterator();
         while (i.hasNext()) {
          SelectionKey key = (SelectionKey) i.next();
          i.remove();
          SocketChannel channel = (SocketChannel) key.channel();
          readBuffer.clear();
          // read from the channel into our buffer
          long nbytes = channel.read(readBuffer);
          // check for end-of-stream
          if (nbytes == -1) {
              gui.chatDisplay.append("**WARNING**: Disconnected from Server");
              channel.close();
              shutdown();
          else {
              // grab the StringBuffer we stored as the attachment
              StringBuffer sb = (StringBuffer)key.attachment();
              // use a CharsetDecoder to turn those bytes into a string
              // and append to our StringBuffer
              readBuffer.flip( );
              String str = asciiDecoder.decode( readBuffer).toString( );
              sb.append( str );
              readBuffer.clear( );
              // check for a full line and write to STDOUT
              String line = sb.toString();
              if ((line.indexOf("\n") != -1) || (line.indexOf("\r") != -1)) {
               sb.delete(0,sb.length());
               gui.updateDisplay("test:" + line);
     catch (IOException ioe) {
     catch (Exception e) {
    public void sendMessage(String mesg) {
     prepWriteBuffer(mesg);
     channelWrite(channel, writeBuffer);
    private void prepWriteBuffer(String mesg) {
     // fills the buffer from the given string
     // and prepares it for a channel write
     writeBuffer.clear();
     writeBuffer.put(mesg.getBytes());
     writeBuffer.putChar('\n');
     writeBuffer.flip();
    private void channelWrite(SocketChannel channel, ByteBuffer writeBuffer) {
     long nbytes = 0;
     long toWrite = writeBuffer.remaining();
     // loop on the channel.write() call since it will not necessarily
     // write all bytes in one shot
     try {
         while (nbytes != toWrite) {
          nbytes += channel.write(writeBuffer);
          try {
              Thread.sleep(CHANNEL_WRITE_SLEEP);
          catch (InterruptedException e) {}
     catch (ClosedChannelException cce) {
     catch (Exception e) {
     // get ready for another write if needed
     writeBuffer.rewind();
    public void shutdown() {
         try { channel.close(); } catch  (IOException ioe) {}
     running = false;
     interrupt();
     public void setNextMessage(String msg){
          this.nextMessage = msg;
          gui.updateDisplay(nextMessage);
      * InputThread reads user input from STDIN
     class InputThread extends Thread {
     private ChatterClient cc;
     private boolean running;
     public InputThread(ChatterClient cc) {
          this.cc = cc;
public String getNextMessage(){
     return nextMessage;
     public void run() {
          String s = "";
          running = true;
          while (running) {
          s = getNextMessage();
          if (s.length() > 0)
          cc.sendMessage(s + "\n");
          if (s.equals("/quit"))
          running = false;
          cc.shutdown();
     public void shutdown() {
          running = false;
          interrupt();
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.border.*;
import javax.swing.ImageIcon;
import org.netbeans.lib.awtextra.*;
public class GUI extends JFrame implements ListSelectionListener, ListDataListener {
    public GUI()
         initComponents();
    private void initComponents()     {
         //initialization of all of the components
          ImageIcon logoIcon = new ImageIcon("logo.png");
        jLabel2 = new JLabel();
        jLabel3 = new JLabel();
        usernameField = new JTextField();
        jPanel2 = new JPanel();
        send = new JButton();
        messageInput = new JTextField();
        userListScrollPane = new JScrollPane();
        jScrollPane1 = new JScrollPane();
        chatDisplay = new JTextArea();
        logo = new JLabel(logoIcon);
        jPanel1 = new JPanel();
        away = new JButton();
        font = new JButton();
        logout = new JButton();
        connect = new JButton();
        menuBar = new JMenuBar();
        menuFile = new JMenu();
        menuConnect = new JMenuItem();
        menuLogout = new JMenuItem();
        jSeparator1 = new JSeparator();
        menuExit = new JMenuItem();
        menuHelp = new JMenu();
        menuItemHelp = new JMenuItem();
        jSeparator2 = new JSeparator();
        menuAbout = new JMenuItem();
        getContentPane().setLayout(new AbsoluteLayout());
        setTitle("Chat Mate - ver 2.7.1");
        setResizable(false);
        setName("frame");
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent evt)
                exitForm(evt);
        jPanel2.setLayout(new AbsoluteLayout());
        jPanel2.setBorder(new TitledBorder(null, "Message", 4, 2));
        send.setText("Send");
        send.setToolTipText("Click to send your message");
        send.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt)
                sendActionPerformed(evt);
        jPanel2.add(send, new AbsoluteConstraints(270, 20, -1, 30));
        messageInput.setText("Type your message here");
        jPanel2.add(messageInput, new AbsoluteConstraints(10, 20, 260, 30));
        getContentPane().add(jPanel2, new AbsoluteConstraints(140, 420, 340, 60));
        //the List on the side - not implemented yet
          DefaultListModel listModel = new DefaultListModel();
          listModel.addElement("John Citizen");
          listModel.addElement("James");
          listModel.addElement("Test 3");
          userList = new JList(listModel);
        userListScrollPane.setBorder(null);
        userList.setBackground(new Color(238,238,238));
        userList.setBorder(new TitledBorder(null, "Users Online", 2, 2));
        userList.setToolTipText("Users Currently online");
        userListScrollPane.setViewportView(userList);
          userList.setSelectedIndex(0);
          userList.addListSelectionListener(this);
        getContentPane().add(userListScrollPane, new AbsoluteConstraints(0, 10, 130, 470));
        jScrollPane1.setBorder(null);
        chatDisplay.setEditable(false);
        chatDisplay.setColumns(1);
        chatDisplay.setRows(10);
        chatDisplay.setToolTipText("This is where the messages are displayed");
        chatDisplay.setLineWrap(true);
        chatDisplay.setWrapStyleWord(true);
          chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
        jScrollPane1.setBorder(new TitledBorder(null, "Chat Display", 4, 2));
        jScrollPane1.setViewportView(chatDisplay);
        jScrollPane1.setAutoscrolls(true);
        getContentPane().add(jScrollPane1, new AbsoluteConstraints(140, 10, 340, 410));
        logo.setHorizontalAlignment(0);
          logo.setBackground(new Color(238,238,238));
        getContentPane().add(logo, new AbsoluteConstraints(473, 20, 155, 225));
        jPanel1.setLayout(new AbsoluteLayout());
        jPanel1.setBorder(new TitledBorder(null, "Options", 2, 2));
        away.setText("Away");
        away.setToolTipText("Changes your status to away");
          away.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent evt) {
                    awayActionPerformed(evt);}});
        jPanel1.add(away, new AbsoluteConstraints(30, 30, 80, -1));
        font.setText("Font");
        font.setToolTipText("Change your font settings");
          font.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent evt) {
                    fontActionPerformed(evt);}});
        jPanel1.add(font, new AbsoluteConstraints(30, 80, 80, -1));
        logout.setText("Logout");
        logout.setToolTipText("Click to disconnect");
          logout.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent evt) {
                    logoutActionPerformed(evt);}});
        jPanel1.add(logout, new AbsoluteConstraints(30, 130, 80, -1));
        connect.setText("Connect");
        connect.setToolTipText("Connect to the server if disconnected");
        connect.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent evt) {
                  connectActionPerformed(evt);}});
        jPanel1.add(connect, new AbsoluteConstraints(30, 180, -1, -1));
        getContentPane().add(jPanel1, new AbsoluteConstraints(480, 250, 140, 230));
        menuFile.setText("File");
        menuConnect.setText("Connect");
          menuConnect.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent evt){
                    connectActionPerformed(evt);}});
        menuFile.add(menuConnect);
        menuLogout.setText("Logout");
          menuLogout.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent evt){
                    logoutActionPerformed(evt);}});
        menuFile.add(menuLogout);
        menuFile.add(jSeparator1);
        menuExit.setText("Exit");
        menuExit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent evt)
                menuExitActionPerformed(evt);
        menuFile.add(menuExit);
        menuBar.add(menuFile);
        menuHelp.setText("Help");
        menuItemHelp.setText("Help");
        menuHelp.add(menuItemHelp);
        menuHelp.add(jSeparator2);
        menuAbout.setText("About");
          menuAbout.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent evt){
                    menuAboutActionPerformed(evt);}});
        menuHelp.add(menuAbout);
        menuItemHelp.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent evt){
                  menuHelpActionPerformed(evt);}});
        menuBar.add(menuHelp);
        setJMenuBar(menuBar);
          messageInput.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent evt)
                    sendActionPerformed(evt);
          pack();
    private void sendActionPerformed(ActionEvent actionevent)
         String s = "" + messageInput.getText();
         if (s.length() > 0){
               if (connected)     // is the client connected to the server?
                      if (cc!=null)
                       cc.setNextMessage(s); //send message to server
               else
              chatDisplay.append("\n\n**You are not connected to the server**");
               messageInput.setText(""); //clears the textbox
          chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());          
     private void connectActionPerformed(ActionEvent evt){
          boolean validation;
          serverInfo = JOptionPane.showInputDialog(null, "Please enter the server's IP Address or hostname if on a network");
          chatDisplay.append("Connecting...");
          validation = validateServer(serverInfo); //tests to see if the ip or name entered is vaild before attempting to connect
          if (!(connected)){
          if (validation) {
               ConnectToServer();
          }else if (!(validation))
          chatDisplay.append(errorMsg1);
          } else {
                    if (num > 2) {
                         connected = false;
                         num = 0; }
          num++;
          chatDisplay.append("**Already connected to server** Try:" + num +"\n");
          chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength()); //sets the message display area      
     static GUI gui = new GUI();
     public static void main(String args[])
          gui.setVisible(true);
          gui.getUsername();
     private void logoutActionPerformed(ActionEvent evt){
          chatDisplay.append("\nLogout: This button will be for users who wish to disconnect from the server while leaving the GUI open.\n");
                    chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());
     private void fontActionPerformed(ActionEvent evt){
          chatDisplay.append("\nFont: This button will give users the option of which font they want to use for their messages.\n");
                    chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());          
     private void awayActionPerformed(ActionEvent evt) {
          chatDisplay.append("\nAway: This button will switch the users status to away.\n");
                    chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());          
    private void menuExitActionPerformed(ActionEvent evt)
        if(cc != null)
        cc.shutdown();
          System.exit(0);
    private void menuHelpActionPerformed(ActionEvent evt) {
          chatDisplay.append("\nQUICK HELP\n\nTo connect to a server, click connect and supply the server's ip address or the server's hostname. More help is found in the online help file \"ReadMe.txt\"\n");
                              chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());          
    private void menuAboutActionPerformed(ActionEvent evt){
          chatDisplay.append("\nABOUT\n\nMade by Nedim Jackman, Year 12 HSC SDD 2004.\nAny comments/questions/critiscisms, email: [email protected]\n");
                                        chatDisplay.setCaretPosition(chatDisplay.getDocument().getLength());          
    private void exitForm(WindowEvent evt)
        if (cc != null)
            cc.shutdown(); //closes the connection to the server with a graceful exit
         System.exit(0); //**** NEED TO CHANGE TO PREVENT ERROR 2 SERVER
     public void getUsername() { //gets the users name to be displayed with each message
                            //If nothing is entered, a random name is generated and used. The user can change this later
          username = JOptionPane.showInputDialog(null, "Please enter your username"); //opens the input dialog which asks for the name
          if ((username == null) || (username.length() < 1)) 
          username = "Guest" +(int)(Math.random() * 10000); //create random name if nothing is entered or is cancelled
          setUsername(username);
          chatDisplay.append("\nWelcome to Chat Mate� " + username + "!\n\nClick connect to start.\n");
     public void updateDisplay(String s) {
          chatDisplay.append(s);
     public String getText(){
          return messageInput.getText();
     //this method required by the ListListener.
     //an optional improvement in the program would be to
     //retrieve the details of the user by double clicking their name, or to start a private conversation
     public void valueChanged(ListSelectionEvent e) {
          if (e.getValueIsAdjusting() == false) {
               if (userList.getSelectedIndex() == -1) {
                  //No selection, disable userInfo
               } else {
                  //Selection, enable userInfo
     public void intervalRemoved(ListDataEvent e){
     public void contentsChanged(ListDataEvent e){
     public void intervalAdded(ListDataEvent e){
     public void ConnectToServer() {
          ChatterClient cc = new ChatterClient(serverInfo,this.username,this);
      * @param String - username
     public void setUsername(String username) {
          this.username = username;
      * @param String - serverInfo
     public void setServerInfo(String serverInfo){
          this.serverInfo = serverInfo;
     public boolean validateServer(String serverInfo){
          if (serverInfo != null)
          if (serverInfo.length() > 0)
          //need more validation
               return true;
     return false;
    private JButton away;
    public JTextArea chatDisplay;
    private JButton connect;
    private JTextField connectionField;
    private JButton font;
    private JLabel logo;
    private JLabel jLabel2;
    private JLabel jLabel3;
    private JPanel jPanel1;
    private JPanel jPanel2;
    private JScrollPane jScrollPane1;
    private JSeparator jSeparator1;
    private JSeparator jSeparator2;
    private JButton logout;
    private JMenuItem menuAbout;
    private JMenuBar menuBar;
    private JMenuItem menuConnect;
    private JMenuItem menuExit;
    private JMenu menuFile;
    private JMenu menuHelp;
    private JMenuItem menuItemHelp;
    private JMenuItem menuLogout;
    private JTextField messageInput;
    private JButton send;
    private JList userList;
    private JScrollPane userListScrollPane;
    private JTextField usernameField;
    private DefaultListModel listModel;
    private String username;
    private String serverInfo;
    public ChatterClient cc;
     boolean connected = false;
     private byte num = 0;
     String errorMsg1 = "\n\n**Error: Invalid Server IP/Hostname.\nPlease try different settings**";
     String errorMsg2 = "\n\n**Error: Could not establish connection.\nRetry server settings and make sure the server is active**\n";
import java.nio.*;
import java.nio.channels.*;
import java.nio.charset.*;
import java.util.*;
import java.net.*;
import java.io.*;
import org.apache.log4j.*;
* ChatterServer,java
public class ChatterServer extends Thread {
    private static final int BUFFER_SIZE = 255;
    private static final long CHANNEL_WRITE_SLEEP = 10L;
    private static final int PORT = 10997; //port number is the same used by the client
     //initialize variables to be used
    private Logger log = Logger.getLogger(ChatterServer.class);
    private ServerSocketChannel sSockChan;
    private Selector acceptSelector;
    private Selector readSelector;
    private SelectionKey selectKey;
    private boolean running;
    private ArrayList clients;
    private ByteBuffer readBuffer;
    private ByteBuffer writeBuffer;
    private CharsetDecoder asciiDecoder;
    private String username;
    public static void main(String args[]) {
     // configure log4j
     BasicConfigurator.configure();
     // instantiate the ChatterServer and fire it up
     ChatterServer cs = new ChatterServer();
     cs.start();
    public ChatterServer() {
     clients = new ArrayList();
     readBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
     writeBuffer = ByteBuffer.allocateDirect(BUFFER_SIZE);
     asciiDecoder = Charset.forName("US-ASCII").newDecoder();;
    private void initServerSocket() {
     try {
         // open a non-blocking server socket channel
         sSockChan = ServerSocketChannel.open();
         sSockChan.configureBlocking(false);
         // bind to localhost on designated port
           InetAddress addr = InetAddress.getLocalHost();
           log.info("Server's Address: " + addr.getHostAddress());
           log.info("Server's Name: "+ addr.getHostName());
      sSockChan.socket().bind(new InetSocketAddress(addr, PORT));
         // get a selector for multiplexing the client channels
         readSelector = Selector.open();
     catch (Exception e) {
         log.error("error initializing server", e);
    public void run() { //"mainline"
    System.out.println("**Chat Mate Server**");
    System.out.println("The server has more power than normal users.");
    System.out.println("For more information, consult the help file");
     initServerSocket();
     log.info("ChatterServer running");
     running = true;
     int numReady = 0;
     // block while we wait for a client to connect
     while (running) {
         // check for new client connections
         acceptNewConnections();
         // check for incoming mesgs
         readIncomingMessages();
         // sleep a bit to reduce the strain on the CPU
         try {
          Thread.sleep(100);
         catch (InterruptedException ie) {
    } //end "mainline"
    private void acceptNewConnections() {
     try {
         SocketChannel clientChannel;
         // since sSockChan is non-blocking, this will return immediately
         // regardless of whether there is a connection available
         while ((clientChannel = sSockChan.accept()) != null) {
          addNewClient(clientChannel);
          log.info("got connection from: " + clientChannel.socket().getInetAddress());
          sendBroadcastMessage("login from: " + clientChannel.socket().getInetAddress());
          sendMessage(clientChannel, "\n\nWelcome to Chat Mate, there are " +
                   clients.size() + " users online.\n");
     catch (IOException ioe) {
         log.warn("error during accept(): ", ioe);
     catch (Exception e) {
         log.error("exception in acceptNewConnections()", e);
    private void readIncomingMessages() {
     try {
         // non-blocking select, returns immediately regardless of how many keys are ready
         readSelector.selectNow();
         // fetch the keys
         Set readyKeys = readSelector.selectedKeys();
         // run through the keys and process
         Iterator i = readyKeys.iterator();
         while (i.hasNext()) {
          SelectionKey key = (SelectionKey) i.next();
          i.remove();
          SocketChannel channel = (SocketChannel) key.channel();
          readBuffer.clear();
          // read from the channel into our buffer
          long nbytes = channel.read(readBuffer);
          // check for end-of-stream
          if (nbytes == -1) {
              log.info("disconnect: " + channel.socket().getInetAddress() + ", end-of-stream");
              channel.close();
              clients.remove(channel);
              sendBroadcastMessage("logout: " + channel.socket().getInetAddress());
          else {
              // grab the StringBuffer stored as the attachment
              StringBuffer sb = (StringBuffer)key.attachment();
              // use a CharsetDecoder to turn those bytes into a string
              // and append to our StringBuffer
              readBuffer.flip( );
              String str = asciiDecoder.decode( readBuffer).toString( );
              readBuffer.clear( );
              sb.append( str);
              // check for a full line
              String line = sb.toString();
              if ((line.indexOf("\n") != -1) || (line.indexOf("\r") != -1)) {
               line = line.trim();
               if (line.startsWith("quit")) {
                   // client is quitting, close their channel, remove them from the list and notify all other clients
                   log.info("got quit msg, closing channel for : " + channel.socket().getInetAddress());
                   channel.close();
                   clients.remove(channel);
                   sendBroadcastMessage("logout: " + channel.socket().getInetAddress());
               }else if (line.startsWith("/nick")) {
                    sendBroadcastMessage("test > change name");
               else {
                   // got one, send it to all clients
                   log.info("broadcasting: " + line);
                   sendBroadcastMessage(channel.socket().getInetAddress() + ": " + line);
                   sb.delete(0,sb.length());
     catch (IOException ioe) {
         log.warn("error during select(): ", ioe);
     catch (Exception e) {
         log.error("exception in run()", e);
    private void addNewClient(SocketChannel chan) {
     // add to our list
     clients.add(chan);
     // register the channel with the selector
     // store a new StringBuffer as the Key's attachment for holding partially read messages
     try {
         chan.configureBlocking( false);
         SelectionKey readKey = chan.register(readSelector, SelectionKey.OP_READ, new StringBuffer());
     catch (ClosedChannelException cce) {
     catch (IOException ioe) {
    private void sendMessage(SocketChannel channel, String mesg) {
     prepWriteBuffer(mesg);
     channelWrite(channel, writeBuffer);
    private void sendBroadcastMessage(String mesg) {
     prepWriteBuffer(mesg);
     Iterator i = clients.iterator();
     while (i.hasNext()) {
         SocketChannel channel = (SocketChannel)i.next();
          channelWrite(channel, writeBuffer);
    private void prepWriteBuffer(String mesg) {
     // fills the buffer from the given string
     // and prepares it for a channel write
     writeBuffer.clear();
     writeBuffer.put(mesg.getBytes());
     writeBuffer.putChar('\n');
     writeBuffer.flip();
    private void channelWrite(SocketChannel channel, ByteBuffer writeBuffer) {
     long nbytes = 0;
     long toWrite = writeBuffer.remaining();
     // loop on the channel.write() call since it will not necessarily
     // write all bytes in one shot
     try {
         while (nbytes != toWrite) {
          nbytes += channel.write(writeBuffer);
          try {
              Thread.sleep(CHANNEL_WRITE_SLEEP);
          catch (InterruptedException e) {}
     catch (ClosedChannelException cce) {
     catch (Exception e) {
     // get ready for another write if needed
     writeBuffer.rewind();
}i wasnt actually trying to scam anyone or whateva u were thinking, i just hate having to put up pages of code in a forum. SORRY TO ANYONE WHO WAS OFFENDED

Similar Messages

Maybe you are looking for

  • Table footer issue in body page of adobe form

    Form has 1 master page and 1 body page. Body page has table within which there is a footer header and detail (2 footers) in the form. My intention is to make footer (both the footers) appear in the last page of the form. For most of the scenarios, fo

  • IPhone 3gs needs to be restored but won't

    I just a new iPhone 3gs and I hooked it up to my computer and updated my iTunes. Once I did that it told me I had to restore my iPhone, and I tried to do so, but once it gets to the end it says "could not be restored. An unknown error has occurred (1

  • Air runtime

    I just created an Air app. and tried to run it on another computer. I had to install the runtime package to get it to work. Is there anyway to attach the runtime package? Or include it. Thanks

  • Activation shows Unknown

    Hello friends, I have created an variable with the customer exit and created the code for it in ZXRSRU01. When i tried to activate it it shows an error the Variable XXX is unknown. Could some one help me on this ... Thanks in advance and points will

  • Where's the 1GB of bonus data?

    To Verizon Customer Service, I ordered an iPhone 6 on 9/22/14 and received it in 10/15/14. My Order Confirmation states that I will receive 1 GB of bonus data for 2 yrs. Still have not seen the 1GB of additional data on My Verizon account. Please hel