Need help with Program Please!

// Name: John Weir 02/03/2006
Please read the comments as they will explain what help I need.
All help greatly appreciated! Am new to working with GUI.
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class FeverDiagnosis extends JFrame
     // diagnoisis constants
     private final String MENIGITIS = "menigitis";
     private final String DIGESTIVE_TRACT_INFECTION = "digestive tract infection";
     private final String PNEUMONIA_OR_AIRWAYS_INFECTION  ="pneumonia or airways infection";
     private final String VIRAL_INFECTION = "viral infection";
     private final String THROAT_INFECTION = "throat infection";
     private final String KIDNEY_INFECTION = "kidney infection";
     private final String URINARY_INFECTION = "urinary tract infection";
     private final String SUNSTROKE_OR_HEAT_EXHAUSTION = "sunstroke or heat exhaustion";
     // symptom constants
     private final String FEVER = "fever";
     private final String COUGHING = "coughing";
     private final String HEADACHE = "headache";
     private final String BREATHING_WITH_DIFFICULTY = "shortness of breath, wheezing, or coughing up phlegm";
     private final String ACHING_BONES_JOINTS = "aching bones or joints";
     private final String RASH = "rash";
     private final String SORE_THROAT = "sore throat";
     private final String BACK_PAIN_AND_CHILLS_AND_FEVER = "back pain just above the waist with chills and fever";
     private final String URINARY_DIFFICULTY = "pain urinating or are urinating more often";
     private final String TOO_MUCH_SUN = "sun overexposure due to spending the day in the sun or in hot conditions";
     public final String VOMITING_OR_DIARRHEA = "vomitting spell or diarrhea";
     private final String MENIGITIS_POSSIBILITIES =
                      "pain when bending your head forward,\n"
                    + "    nausea or vomiting, eye ache from \n"
                    + "    bright lights, drowsiness or confusion";
     // GUI varibles
     private JTextArea textArea;
     private JFrame theFrame;
     private JLabel stuff2;
     private JButton b1;
     private JButton b2;
     // instance variable
     private String symptoms = "";
     private Scanner cin = new Scanner (System.in);
     char response;
     String input;
     public FeverDiagnosis()
          JFrame.setDefaultLookAndFeelDecorated(true);
          JFrame theFrame = new JFrame("John Weir");
          theFrame.setSize(650, 400);
          Dimension frameSize = theFrame.getSize();
          Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
          theFrame.setLocation((screenSize.width - frameSize.width)/2,(screenSize.height - frameSize.height)/2);
          theFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          Container contentPane = theFrame.getContentPane();
          theFrame.getContentPane().setLayout(new FlowLayout());
          JLabel stuff2 = new JLabel("Test");
          textArea = new JTextArea(12,50);
          textArea.setEditable(true);
          textArea.setBackground(Color.black);
          textArea.setForeground(Color.green);
          textArea.setFont(new Font("Serif", Font.ITALIC, 16));
          textArea.setLineWrap(true);
          textArea.setWrapStyleWord(true);
          b1 = new JButton("Yes");
          b2 = new JButton("No");
          contentPane.add(stuff2);
          contentPane.add(new JScrollPane(textArea));
          contentPane.add(b1);
          b1.setEnabled(true);
          contentPane.add(b2);
          b2.setEnabled(true);
          ActionListener l = new ActionListener()
            public void actionPerformed(ActionEvent e)
               if((e.getSource() == b1))
               //   HELP NEEDED
               //   NEED BUTTON TO PASS
               //   STRING VALUE "Y" TO
               //   METHOD: have(String s)
               input.equals("y");
               else
               if((e.getSource() == b2))
          b1.addActionListener(l);
          b2.addActionListener(l);
          theFrame.setVisible(true);
          theRules();
public void theRules()
     displayNote();
     if (! have(FEVER) )
          displayUnsure();
     else
     if(are(COUGHING))
          if( are(BREATHING_WITH_DIFFICULTY))
               addSymptom( PNEUMONIA_OR_AIRWAYS_INFECTION );
               displayDiagnosis(PNEUMONIA_OR_AIRWAYS_INFECTION);
          }else
          if(have(HEADACHE))
               addSymptom( VIRAL_INFECTION );
               displayDiagnosis(VIRAL_INFECTION);
          }else
          if(have(ACHING_BONES_JOINTS))
               addSymptom( VIRAL_INFECTION );
               displayDiagnosis(VIRAL_INFECTION);
          }else
          if(have(RASH))
               displayUnsure();
          }else
          if(have(SORE_THROAT))
               addSymptom( THROAT_INFECTION );
               displayDiagnosis(THROAT_INFECTION);
          }else
          if(have(BACK_PAIN_AND_CHILLS_AND_FEVER))
               addSymptom( KIDNEY_INFECTION );
               displayDiagnosis(KIDNEY_INFECTION);
          }else
          if(have(URINARY_DIFFICULTY))
               addSymptom( URINARY_INFECTION );
               displayDiagnosis(URINARY_INFECTION);
          }else
          if(have(TOO_MUCH_SUN))
               addSymptom( SUNSTROKE_OR_HEAT_EXHAUSTION );
               displayDiagnosis(SUNSTROKE_OR_HEAT_EXHAUSTION);
          }else
               displayUnsure();
          else
          if(have(HEADACHE))
               addSymptom(VIRAL_INFECTION);
               displayDiagnosis(VIRAL_INFECTION);
          }else
          if(are(MENIGITIS_POSSIBILITIES))
               addSymptom( MENIGITIS );
               displayDiagnosis(MENIGITIS);
          }else
          if(are(VOMITING_OR_DIARRHEA))
               addSymptom( DIGESTIVE_TRACT_INFECTION );
               displayDiagnosis(DIGESTIVE_TRACT_INFECTION);
          }else
          displayUnsure();
     public void displayNote()
          textArea.append("\n\n"
               + "Fever Diagnostic Tool\n"
               + "---------------------\n\n"
               + "Please note that this program performs no true diagnostic activity.\n"
               + "No decisions should be made based upon the tool's analysis. If users\n"
               + "have a fever, they should contact their doctor.\n\n");
     public boolean have(String s)
          // prompt and extract
          textArea.append("Do you have you " + s + " (y, n): " + "\n");
          // NEED BUTTON TO PASS STRING  FROM ActionPerformed
          // AND HAVE IT RETURNED AS A CHAR RESPONCE!
          input = cin.nextLine();
          response = (char) Character.toLowerCase(input.charAt(0));
          while ( (response != 'y') && (response != 'n') )
               textArea.append("Are you " + s + " (y, n): " + "\n");
               input = cin.nextLine();
               response = (char) Character.toLowerCase(input.charAt(0));
          textArea.append("");
          return response == 'y';
     private boolean are(String s)
          textArea.append("Are you " + s + " (y, n): " + "\n");
          input = cin.nextLine();
          char response = (char) Character.toLowerCase(input.charAt(0));
          while ( (response != 'y') && (response != 'n') )
               textArea.append("Are you " + s + " (y, n): " + "\n");
               input = cin.nextLine();
               response = (char) Character.toLowerCase(input.charAt(0));
          textArea.append("");
          return response == 'y';
     public void addSymptom(String s)
          symptoms += "*   " + s + "\n";
     public void displayDiagnosis(String diagnosis)
          textArea.setText("");
          textArea.append("\nSymptoms:\n" + symptoms + "\n" + "Diagnosis"
               + "\n   Possibilities include " + diagnosis  + "\n");
          textArea.append("\n");
          //System.exit(0);
     public void displayUnsure()
          textArea.append("\nInsufficient information to make a diagnosis" + "\n");
          textArea.append("\n");
          //System.exit(0);
     public static void main(String[] args)
          new FeverDiagnosis();
}

If you're looking to use a JTextArea as a console you can use these two classes
you are free to use and modify these classes but please do not change the package or take credit for it as your own work.
TextAreaReader.java
=================
* Created on Jul 7, 2005 by @author Tom Jacobs
package tjacobs;
import java.awt.TextArea;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.TextEvent;
import java.awt.event.TextListener;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import javax.swing.JFrame;
import javax.swing.JTextArea;
public class TextAreaReader extends Reader implements KeyListener {
     JTextArea mJArea;
     TextArea mAWTArea;
     Object mKeyLock = new Object();
     Object mLineLock = new Object();
     String mLastLine;
     int mLastKeyCode = 1;
     public TextAreaReader(JTextArea area) {
          super();
          mJArea = area;
          mJArea.addKeyListener(this);
     public TextAreaReader(TextArea area) {
          super();
          mAWTArea = area;
          mAWTArea.addKeyListener(this);
     public void keyPressed(KeyEvent ke) {
          mLastKeyCode = ke.getKeyCode();
          synchronized(mKeyLock) {
               mKeyLock.notifyAll();
          if (ke.getKeyCode() == KeyEvent.VK_ENTER) {
               if (mJArea != null) {
                    String txt = mJArea.getText();
                    int idx = txt.lastIndexOf('\n', mJArea.getCaretPosition() - 1);
                    mLastLine = txt.substring(idx != -1 ? idx : 0, mJArea.getCaretPosition());//txt.length());
                    synchronized(mLineLock) {
                         mLineLock.notifyAll();
               else {
                    String txt = mAWTArea.getText();
                    int idx = txt.lastIndexOf('\n', mAWTArea.getCaretPosition() - 1);
                    mLastLine = txt.substring(idx != -1 ? idx : 0, mAWTArea.getCaretPosition());//txt.length());
                    synchronized(mLineLock) {
                         mLineLock.notifyAll();
     public void keyReleased(KeyEvent ke) {
     public void keyTyped(KeyEvent ke) {
     public int read(char[] arg0, int arg1, int arg2) throws IOException {
          throw new IOException("Not supported");
     public String readLine() {
          synchronized(mLineLock) {
               try {
                    mLineLock.wait();
               catch (InterruptedException ex) {
          return mLastLine;
     public int read() {
          synchronized(mKeyLock) {
               try {
                    mKeyLock.wait();
               catch (InterruptedException ex) {
          return mLastKeyCode;
     public void close() throws IOException {
          // TODO Auto-generated method stub
     public static void main(String args[]) {
          JFrame f = new JFrame("TextAreaInput Test");
          JTextArea area = new JTextArea();
          final TextAreaReader tar = new TextAreaReader(area);
          f.add(area);
          Runnable r1 = new Runnable() {
               public void run() {
                    while (true) {
                         int code = tar.read();
                         System.out.println("read: " + code);
          Runnable r2 = new Runnable() {
               public void run() {
                    while (true) {
                         String line = tar.readLine();
                         System.out.println("read line: " + line);
          Thread t1 = new Thread(r1);
          Thread t2 = new Thread(r2);
          t1.start();
          t2.start();
          f.setBounds(100, 100, 200, 200);
          f.setVisible(true);
     public InputStream toInputStream() {
          return new MyInputStream();
     private class MyInputStream extends InputStream {
          public int read() {
               return TextAreaReader.this.read();
==================
TextAreaOutputStream
==================
* Created on Mar 13, 2005 by @author Tom Jacobs
package tjacobs;
import java.io.IOException;
import java.io.OutputStream;
import javax.swing.JTextArea;
import javax.swing.text.JTextComponent;
public class TextAreaOutputStream extends OutputStream {
     public static final int DEFAULT_BUFFER_SIZE = 1;
     JTextArea mText;
     byte mBuf[];
     int mLocation;
     public TextAreaOutputStream(JTextArea component) {
          this(component, DEFAULT_BUFFER_SIZE);
     public TextAreaOutputStream(JTextArea component, int bufferSize) {
          mText = component;
          if (bufferSize < 1) bufferSize = 1;
          mBuf = new byte[bufferSize];
          mLocation = 0;
     @Override
     public void write(int arg0) throws IOException {
          //System.err.println("arg = "  + (char) arg0);
          mBuf[mLocation++] = (byte)arg0;
          if (mLocation == mBuf.length) {
               flush();
     public void flush() {
          mText.append(new String(mBuf, 0, mLocation));
          mLocation = 0;
          try {
               Thread.sleep(1);
          catch (Exception ex) {}
}

Similar Messages

  • I have need help with something Please respond Quickly :)

    I have need help with something Please respond Quickly  ok so i have the linksys wrt54g Version 2.2 and i upgraded the firmware to V4.21.4 from this site http://homesupport.cisco.com/en-us/wireless/lbc/WRT54G and i clicked V2.2 for the router. So after i upgraded i lost internet ability i can't use the internet so i had to downgrade back to V4.21.1 but i want the things that newer update sloves. Please Help. Everything thing says DNS error? aka Modem.
    $$Cgibbons$$

    Ya i tried that i tried restoring and redoing everything when i downgrade back to .1 it works fine though?
    $$Cgibbons$$

  • Help With Program Please

    Hi everybody,
    I designed a calculator, and I need help with the rest of the scientific actions. I know I need to use the different Math methods, but what exactly? Also, it needs to work as an applet and application, and in the applet, the buttons don't appear in order, how can I fix that?
    I will really appreciate your help with this program, I need to finish it ASAP. Please e-mail me at [email protected].
    Below is the code for the calcualtor.
    Thanks in advance,
    -Maria
    // calculator
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class calculator extends JApplet implements
    ActionListener
    private JButton one, two, three, four, five, six, seven,
    eight, nine, zero, dec, eq, plus, minus, mult, div, clear,
    mem, mrc, sin, cos, tan, asin, acos, atan, x2, sqrt, exp, pi, percent;
    private JLabel output, blank;
    private Container container;
    private String operation;
    private double number1, number2, result;
    private boolean clear = false;
    //GUI
    public void init()
    container = getContentPane();
    //Title
    //super("Calculator");
    JPanel container = new JPanel();     
    container.setLayout( new FlowLayout( FlowLayout.CENTER
    output = new JLabel("");     
    output.setBorder(new MatteBorder(2,2,2,2,Color.gray));
    output.setPreferredSize(new Dimension(1,26));     
    getContentPane().setBackground(Color.white);     
    getContentPane().add( "North",output );     
    getContentPane().add( "Center",container );
    //blank
    blank = new JLabel( " " );
    container.add( blank );
    //clear
    clear = new JButton( "CE" );
    clear.addActionListener(this);
    container.add( clear );
    //seven
    seven = new JButton( "7" );
    seven.addActionListener(this);
    container.add( seven );
    //eight
    eight = new JButton( "8" );
    eight.addActionListener(this);
    container.add( eight );
    //nine
    nine = new JButton( "9" );
    nine.addActionListener(this);
    container.add( nine );
    //div
    div = new JButton( "/" );
    div.addActionListener(this);
    container.add( div );
    //four
    four = new JButton( "4" );
    four.addActionListener(this);
    container.add( four );
    //five
    five = new JButton( "5" );
    five.addActionListener(this);
    container.add( five );
    //six
    six = new JButton( "6" );
    six.addActionListener(this);
    container.add( six );
    //mult
    mult = new JButton( "*" );
    mult.addActionListener(this);
    container.add( mult );
    //one
    one = new JButton( "1" );
    one.addActionListener(this);
    container.add( one );
    //two
    two = new JButton( "2" );
    two.addActionListener(this);
    container.add( two );
    //three
    three = new JButton( "3" );
    three.addActionListener(this);
    container.add( three );
    //minus
    minus = new JButton( "-" );
    minus.addActionListener(this);
    container.add( minus );
    //zero
    zero = new JButton( "0" );
    zero.addActionListener(this);
    container.add( zero );
    //dec
    dec = new JButton( "." );
    dec.addActionListener(this);
    container.add( dec );
    //plus
    plus = new JButton( "+" );
    plus.addActionListener(this);
    container.add( plus );
    //mem
    mem = new JButton( "MEM" );
    mem.addActionListener(this);
    container.add( mem );
    //mrc
    mrc = new JButton( "MRC" );
    mrc.addActionListener(this);
    container.add( mrc );
    //sin
    sin = new JButton( "SIN" );
    sin.addActionListener(this);
    container.add( sin );
    //cos
    cos = new JButton( "COS" );
    cos.addActionListener(this);
    container.add( cos );
    //tan
    tan = new JButton( "TAN" );
    tan.addActionListener(this);
    container.add( tan );
    //asin
    asin = new JButton( "ASIN" );
    asin.addActionListener(this);
    container.add( asin );
    //acos
    acos = new JButton( "ACOS" );
    cos.addActionListener(this);
    container.add( cos );
    //atan
    atan = new JButton( "ATAN" );
    atan.addActionListener(this);
    container.add( atan );
    //x2
    x2 = new JButton( "X2" );
    x2.addActionListener(this);
    container.add( x2 );
    //sqrt
    sqrt = new JButton( "SQRT" );
    sqrt.addActionListener(this);
    container.add( sqrt );
    //exp
    exp = new JButton( "EXP" );
    exp.addActionListener(this);
    container.add( exp );
    //pi
    pi = new JButton( "PI" );
    pi.addActionListener(this);
    container.add( pi );
    //percent
    percent = new JButton( "%" );
    percent.addActionListener(this);
    container.add( percent );
    //eq
    eq = new JButton( "=" );
    eq.addActionListener(this);
    container.add( eq );
    //Set size and visible
    setSize( 190, 285 );
    setVisible( true );
    public static void main(String args[]){
    //execute applet as application
         //applet's window
         JFrame applicationWindow = new JFrame("calculator");
    applicationWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         //applet instance
         calculator appletObject = new calculator();
         //init and start methods
         appletObject.init();
         appletObject.start();
    } // end main
    public void actionPerformed(ActionEvent ae)
    JButton but = ( JButton )ae.getSource();     
    //dec action
    if( but.getText() == "." )
    //if dec is pressed, first check to make shure there
    is not already a decimal
    String temp = output.getText();
    if( temp.indexOf( '.' ) == -1 )
    output.setText( output.getText() + but.getText() );
    //clear action
    else if( but.getText() == "CE" )
    output.setText( "" );
    operation = "";
    number1 = 0.0;
    number2 = 0.0;
    //plus action
    else if( but.getText() == "+" )
    operation = "+";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //minus action
    else if( but.getText() == "-" )
    operation = "-";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //mult action
    else if( but.getText() == "*" )
    operation = "*";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //div action
    else if( but.getText() == "/" )
    operation = "/";
    number1 = Double.parseDouble( output.getText() );
    clear = true;
    //output.setText( "" );
    //eq action
    else if( but.getText() == "=" )
    number2 = Double.parseDouble( output.getText() );
    if( operation == "+" )
    result = number1 + number2;
    else if( operation == "-" )
    result = number1 - number2;
    else if( operation == "*" )
    result = number1 * number2;
    else if( operation == "/" )
    result = number1 / number2;
    //output result
    output.setText( String.valueOf( result ) );
    clear = true;
    operation = "";
    //default action
    else
    if( clear == true )
    output.setText( "" );
    clear = false;
    output.setText( output.getText() + but.getText() );

    Multiple post:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=474370&tstart=0&trange=30

  • Need Help With Home Please

    If anyone here is good with Java, I need serious help with my homework, please give me your instant messenger screen name and we can chat, thanks alot!!
    Angela

    I don't understand how people get themselves into
    these situations as school, if you don't want to learn
    it don't sign up for the class.....You never got yourself into this situation.... I think everyone has on occassion.
    My very first "serious" university program was to solve a second order, non-linear differential equation using the Runge-Kutta method. This is NOT the easy way to learn a computer language and I have to admit I did take "shortcuts" using more experienced people than me.
    That was before the web though...
    God am I really that old?

  • Need help with Fancybox please

    Hola
    I need some help with Fancybox.
    I bought this template and it came without facybox, so I thought
    that this will be a great help to learn some about jQuerry, but I'm lost
    Why is NOT working on my page?
    I just cannot figure this out.
    Can you please check my page?
    http://tummytime.biz/pages/portfolio_fancy.html
    I got Windows 8, Dreamweaver CC
    Thanks a lot.

    There are a couple things that could be causing a couple browsers' collective heads to implode.
    Remove the <! right before your </head> tag...
    </script>
    <!
    </head>
    <body>
    You have two calls to the fancybox css file, you only need one.
    Aside from that I'm not seeing any code problems jump out at me.
    EDIT: Ah, didn't scroll far enough. You have more than one reference to the jquery library. Typically, only one is needed and two or more will cause them all to fail. Usually, you can use the "latest" link and cover all your bases.
    If you aren't using those referenced scripts at the bottom of your page, delete them.

  • Need help with debugging PLEASE

    Hi,
    I'm new to Java and was given an assignment to debug a program. I am completely lost and really havent gone over most of the stuff that is in this program. I would greatly appreciate any help with this that I can get.
    Here is my code:
    import java.util.*;
    import javax.swing.*;
    public class IndexHitFrequency
    private final int NUMBER_OF_SIMULATIONS = 1000;
    private int indexHit[] = new int [10];
    public IndexHitFrequency()
    Random generator = new Random(); // for generating random number
    int array[] = {6, 2, 4, 8, 5, 0, 1, 7, 3, 9 };
    //convert to ArrayList and sort it
    List list = new ArrayList(Arrays.asList(array));
    for (int i = 0; i < NUMBER_OF_SIMULATIONS; i++)
    //generate random number
    int randomNumber = generator.nextInt(array.length);
    // get index hit
    int index = Collections.binarySearch(list, randomNumber) ;
    // save index hit to array
    if(index > -1)
    indexHit[index]++;
    }//end for
    String output = "Index\tFrequency\t\n";
    //append the frequency of index hit to output
    for (int i = 0; i < indexHit.length; i++)
    output += i + "\t" + indexHit[i] + "\t\n";
    //display result
    JTextArea outputArea = new JTextArea();
    outputArea.setText(output);
    JOptionPane.showMessageDialog(null, outputArea, "Search random number 1000 times" ,
    JOptionPane.INFORMATION_MESSAGE);
    System.exit(0);
    }// end constructor
    public static void main (String [] args)
    new IndexHitFrequency();
    } // end class IndexHitFrequency
    I get these errors after trying to compile:
    "IndexHitFrequency.java": Error #: 300 : method asList(int[]) not found in class java.util.Arrays at line 17, column 40
    "IndexHitFrequency.java": Error #: 300 : method binarySearch(java.util.List, int) not found in class java.util.Collections at line 24, column 34

    C:\Java\Tutorial\rem>javac IndexHitFrequency.java
    IndexHitFrequency.java:15: asList(java.lang.Object[]) in java.util.Arrays cannot
    be applied to (int[])
    List list = new ArrayList(Arrays.asList(array));
                                    ^
    IndexHitFrequency.java:22: cannot find symbol
    symbol  : method binarySearch(java.util.List,int)
    location: class java.util.Collections
    int index = Collections.binarySearch(list, randomNumber) ;
                           ^
    2 errors
    C:\Java\Tutorial\rem>Copied source and compiled in DOS window ( XP's cmd.exe) and got these error messages...
    I think these error are more clear than the ones you posted, so this should help you resolve the problem...
    - MaxxDmg...
    - ' He who never sleeps... '

  • HT3702 need help with purchase please!!!

    My husband mistakenly hit the purchase button las night for an apple app and now it has been taken out of our account, but was deleted off the phone as soon has he realized that he hit the purchase button how do we get a refund please we need HELP!!!

    All sales are final
    You can try contacting itunes and asking for an exception

  • I need help with this please

    javax.servlet.ServletException
    at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
    at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
    at jsp.addservice._jspService(addservice.jsp:515)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:356)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:847)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:229)
    at mil.usmc.m4l.servlets.M4LServlet.forward(M4LServlet.java:34)
    at mil.usmc.m4l.servlets.EditService.doGet(EditService.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at mil.usmc.m4l.filters.M4LCMSFilter.doFilter(M4LCMSFilter.java:150)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    Edited by: user11237193 on Apr 27, 2010 10:58 AM
    I am getting error and I ned help with it Thank you for your help.

    I'd enter the dell service tags in here to find out what OS the pc was designed for.
    http://www.dell.com/support/contents/us/en/19/Category/Product-Support/Self-support-Knowledgebase/locate-service-tag?~ck=mn
     For windows I'd ask over here.
    http://answers.microsoft.com/en-us/windows
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Rookie needs help with program!!

    Hi everyone,
    I am new to JAVA programming and am trying to figure out my first progam. Any suggestions? Here's what I have to come up with...
    This program will test your ability to code a loop function and some work with the strings methods.
    INPUT
    A SENTENCE OF UNKNOWN LENGTH.
    OUTPUT
    THE NUMBER OF WORDS IN THE SENTENCE AND EACH WORD ON A SEPARATE LINE. Two spaces are not a word; "a" is a word.
    HINT
    Use a loop until the end of the sentence and count each word that is removed from the front of the sentence (one at a time). Each time the sentence should be shortened.
    I know I need to use a string method...Here's what I have so far...
    public class jmstr
    public static void main (String[ ] args)
    System.out.println ("Please enter a sentence starting with some spaces ");
    inputline = SavitchIn.readLine ( ) ;
    System.out.println (inputline);
    I'm not really sure what to do next....?
    Any help would be appreciated!
    materman

    http://java.sun.com/j2se/1.4.2/docs/api/java/util/StringTokenizer.html
    look at the example on the page, then scroll down to the Methods section and click on
    countTokens()

  • New to itunes and need help with library please

    some of my albums have various artists. i cant get them to show up as 1 album it shows as an album for every song. can anyone help me please?
    another problem i am having is my album artwork does not show up when I insert a cd to rip. I am also having trouble with the itunes suddenly getting all garbled up so i cant even see the screen untill I close itunes and open it back up. grrrr!! i sold my Zune to get this ipod touch and am wondering if I have made a mistake.
    thanks for any help you can give me
    Carri

    according to you we are on the same page here. When you rip a regular cd into itunes, it does not have the album artwork engrained into the song file. This is just an example, Say you ripped a Metallica cd into itunes such as "Master of Puppets." The song on the album "Disposable Heroes" will not have the album artwork with it.
    You need to get an apple account, just go to the itunes store and sign up. After you do that you can click on one of the songs from the album you ripped. Right click it, and go to the choice "get album artwork". itunes will automatically modify the artwork for all the songs on that album. That is it. I may have a post later on your other problems. Ask me if you don't fully understand what i said.

  • Need help with program for Inner join

    Hello Experts,
    I need to create a list from table sbook containing booking number (sbook-bookid), customer number (sbook-customid), customer name (scustom-name) , customer class (sbook-class) and ticket price (sflight-price). I am new to ABAP and am very confused I tried reading up some examples and came up with the attached program
    Attached is my program for inner join
    Kindly Help
    Thanks Su

    Hi Su K
              You May use key fields , Foreign keys for joining , Here
    SELECT SBOOK~BOOKID SBOOK~CUSTOMID SBOOK~CLASS
      SCUSTOM~ID SCUSTOM~NAME  FROM SFILGHT
       INNER JOIN SBOOK ON   SBOOK~CARRID EQ SFILGHT~CARRID
                                              SBOOK~CONNID EQ SFILGHT~CONNID
                                              SBOOK~FLDATE EQ SFILGHT~FLDATE
      INNER JOIN SCUSTOM ON SCUSTOM~ID = SBOOK~ID

  • I need help with hyperlink PLEASE!!!!!!!

    I hope somebody can help me with this question. I create some
    button in flash 8. My web page is divided in three frames( using
    the frame tag), two rows and the second row has two colums. My
    question is how can i make one of my buttons to open a new web page
    but in a different frame. The button is in column number 1 of row 2
    and when the user click this button i want that this new page open
    in column number 2 of row 2. How can ia do that? please help
    me

    valla23 wrote:
    > I hope somebody can help me with this question. I create
    some button in flash
    > 8. My web page is divided in three frames( using the
    frame tag), two rows and
    > the second row has two colums. My question is how can i
    make one of my buttons
    > to open a new web page but in a different frame. The
    button is in column number
    > 1 of row 2 and when the user click this button i want
    that this new page open
    > in column number 2 of row 2. How can ia do that? please
    help me
    Always best to google before posting, especially if you
    urgent to meet deadline.
    Forum archives:
    http://groups.google.com/advanced_group_search?q=group:macromedia.flash.*&hl=en&lr=&ie=UTF -8
    Search "flash in frames"
    the very second result, so happen to be from me, exhaling
    exactly how to set it up.
    http://groups.google.com/group/macromedia.flash/browse_thread/thread/6b0047b0a65be8a0/9f8f c0765bf2297e?lnk=st&q=&rnum=2&hl=en#9f8fc0765bf2297e
    Personally posted that couple of hundreds of times in past 8
    years.
    Please try to utilize the search before posting so we don't
    need to hammer same
    topic over and over and over and over and over .....again...
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Need help with dates  please-urgent

    Hi folks, please help me with this if you can.
    I run a weekly job, and need to have my java code create and use 2 dates to capture data for the whole week.
    begin_date mm/dd/yyyy (String) to be 7 days prior to current date
    end_date mm/dd/yyyy (String) to be the currecnt date
    Note: please take into account the cases where the CURRENT_DATE is the first week of the month. As a result the 7 days prior will fall into the previous month. i.e if end_date="06/04/2003" then the begin_date will be "05/29/2003 Thanks a bunch

    http://java.sun.com/j2se/1.4.1/docs/api/index.html
    See the Calendar and DateFormat classes.

  • Need Help with Printer Please

    I am a new MAC user. So please, if you have a solution for me, speak slowly. (LOL)
    I have the new G5. Bought the Epson printer to go with it. It's the CX4200.
    I loaded the software for it. But can't get it to print. It seems the computer won't or can't find it in their list of printers.
    Ok, so I go to a Word Doc., for example. And select print. The window says that I need to select a printer. I hit the arrow down button and there's my printer listed. So I choose that, but still won't print. Seems I have to go down to another line in the same box and find the printer in this long list. There are many Epsons listed but not mine, which is the CX4200.
    And darn-it, tech support on the phone is closed at 6pm!!!??? I sure hope to see a reply soon. I really need to print something tonight.
    Thanks for any help you can provide.
    My personal e-mail is
    [email protected]
    Thanks!
    Cary
    PS: This process asked me to choose an OS for my G5. I have no idea what my OS is. All's I know is I have a G5. Gosh, I feel soooo dumb!

    What have you done so far?
    I suggest you connect it via a usb  cable first.  Once you get the printer working, move to wifi.  You will have to use an existing printer usb cable or purchase a cable.  Be sure to get the correct cable.  Ask for help.
    The warrenty indicates there is phone support.  Give HP a call.
    Warranty
    One-year limited hardware warranty; 24-hour, 7 days a week phone support
    Robert

  • Need Help with Java please

    Hi, I'am new to these forums just wondering if someone can help me, my problem is I have a txt file on a web server I have read in using a 'StreamConnection' and 'StringBuffer' converting the data in the txt file to String.
    what I am stuck on though is the data holds user names and passwords which I need to validate for login.. I have set up a login form with textfield for userName and Password. If the user name and password match I then need to print out the relevent data from that users field.
    Can anyone assist me with this? the fields look like this:
    1|johnsmith|js|50|40|67|77|�
    .etc. .
    cheers,
    Andrew.
    Message was edited by:
    akane_1984

    with the login/password screen I have created the user puts his name and password in:
    John Smith - js .. so what I need is when that happens and user clicks login how do I get the program to search the txt file to make sure that name & pw is correct and then output on screen the values in John smiths field. . this is full txt file:
    id|UserName|Pw|Score1|Score2|Score3|Score4|�
    1|johnsmith|js|50|40|67|77|�
    2|alansmith|as|57|81|56|66|�
    3|jackdowie|jd|57|68|32|55|�
    4|jorgcosta|jc|54|72|83|49|�
    5|johngregg|jc|77|55|89|80|�
    6|ianorr|io|46|56|71|60|�
    Message was edited by:
    akane_1984

Maybe you are looking for

  • My old mac = dead. Bought a new one - how do I open my old iTunes library?

    It's stored on an external hard drive. I've searched the forums and found out about holding down function and opening iTunes, but when I choose library and click on my external hard drive it just lists all the artists rather than a folder containing

  • How to create a table which contains relational data and Document data

    hai all i need to create a table which contains relational data(i mean coulumns whose data types are type NUMBER,VARCHAR) and documents(like xml file/html file/image)using iFS. when i store the document data(xml data/html data) in the iFS ,it will be

  • Floating JSR168 Portlets

    Is the floating window state available to JSR168 portlets? If it is where to set it? Thanks

  • Severe proxy configuration bug preventing mail access

    Hello, the proxy configuration options for LAN / WIFI networks have a major bug: if a proxy server is set manually, it prevents e-mail accounts from working while being connected to that proxy-enabled network! Interestingly, if the proxy is configure

  • Portal upgrade

    Guys, We have a windows NW04 Portal landscape and are planning to upgrade it. In order to build a sandbox landscape which we shall be used to run a test upgrade, we took a image of the development portal backend, frontend, ITS server and R/3. Once th