Can't see why this won't work

I have a table customer that I am trying to update with some details from another table:
update customer
set credit_limit = (select cr.credit_limit
                    from credit_limits cr)
where customer.state = cr.state
and customer.credit_limit is null;
I keep getting the error:
"CR"."STATE": invalid identifier
Why won't it recognise the credit_limits table even though I have called it cr? I need to be make sure the states in the customer and credit_limits table match before inserting the new credit_limit into the customer table

I have a table customer that I am trying to update
with some details from another table:
update customer
set credit_limit = (select cr.credit_limit
                    from credit_limits cr)
where customer.state = cr.state
and customer.credit_limit is null;
I keep getting the error:
"CR"."STATE": invalid identifier
Why won't it recognise the credit_limits table even
though I have called it cr? I need to be make sure
the states in the customer and credit_limits table
match before inserting the new credit_limit into the
customer tableThe syntax is not correct. It should be :
update customer
set credit_limit = (select cr.credit_limit
                    from credit_limits cr
                    where customer.state = cr.state)
where customer.credit_limit is nullMessage was edited by:
Michel

Similar Messages

  • Can anyone see why this won't run? I can't seem to figure out the mistake!

    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Debugging7 extends JApplet
              implements ItemListener
         //Declare components and global variables here
         JPanel mainPanel = new JPanel();
         JPanel buttonPanel = new JPanel();
         JLabel titleLabel = new JLabel("Debugging - Chapter 7", JLabel.CENTER);
         JTextArea questionTextArea = new JTextArea(2, 35);
         JRadioButton answerARadioButton = new JRadioButton();
         JRadioButton answerBRadioButton = new JRadioButton();
         JRadioButton answerCRadioButton = new JRadioButton();
         JRadioButton answerDRadioButton = new JRadioButton();
         ButtonGroup answerButtonGroup = new ButtonGroup();
         JLabel answerLabel = new JLabel(" ", JLabel.CENTER);
         Font titleFont = new Font("SansSerif", Font.BOLD, 18);
         public void init()
              //Set up the user interface (JPanels) here
              titleLabel.setFont(titleFont);
              mainPanel.setLayout(new GridLayout(0,1));
              mainPanel.add(titleLabel);
              questionTextArea.setText("To respond immediately to a change in the " +
                        "\nstate of a JRadioButton, you need to use: ");
              mainPanel.add(questionTextArea);
              questionTextArea.setEnabled(false);
              answerButtonGroup.add(answerARadioButton);
              answerButtonGroup.add(answerBRadioButton);
              answerButtonGroup.add(answerCRadioButton);
              answerButtonGroup.add(answerDRadioButton);
              buttonPanel.setLayout(new GridLayout(0, 4));
              answerARadioButton.setText("an ActionListener");
              buttonPanel.add(answerARadioButton);
              answerBRadioButton.setText("a compareTo method");
              buttonPanel.add(answerBRadioButton);
              answerCRadioButton.setText("an ItemListener");
              buttonPanel.add(answerCRadioButton);
              answerDRadioButton.setText("none of the above");
              buttonPanel.add(answerDRadioButton);
              mainPanel.add(buttonPanel);
              mainPanel.add(answerLabel);
              answerLabel.setForeground(Color.red);
              answerLabel.setFont(titleFont);
              setContentPane(mainPanel);
              //Add listeners
              answerARadioButton.addActionListener(this);
              answerBRadioButton.addActionListener(this);
              answerCRadioButton.addActionListener(this);
              answerDRadioButton.addActionListener(this);
         public void itemStatePerformed(ActionEvent event)
              //Retrieve user input and respond with calculations, etc
              Object eventSource = event.getSource();
              if(event == answerARadioButton)
                   answerLabel.setText("an ActionListener is NOT correct");
              else if(event == answerBRadioButton)
                   answerLabel.setText("a compareTo method is NOT correct");
              else if(event == answerCRadioButton)
                   answerLabel.setText("an ItemListener IS CORRECT");
              else if(event == answerDRadioButton)
                   answerLabel.setText("none of the above is NOT correct");
              else
                   answerLabel.setText("answer the question, please!");
    }

    Okay, here's some compiling code... Although I don't really want to bother to write up the html to test it so I'll leave that up to you...
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Debugging7 extends JApplet
              implements ItemListener
         //Declare components and global variables here
         JPanel mainPanel = new JPanel();
         JPanel buttonPanel = new JPanel();
         JLabel titleLabel = new JLabel("Debugging - Chapterr 7", JLabel.CENTER);
         JTextArea questionTextArea = new JTextArea(2, 35);
         JRadioButton answerARadioButton = new JRadioButton();
         JRadioButton answerBRadioButton = new JRadioButton();
         JRadioButton answerCRadioButton = new JRadioButton();
         JRadioButton answerDRadioButton = new JRadioButton();
         ButtonGroup answerButtonGroup = new ButtonGroup();
         JLabel answerLabel = new JLabel("       ", JLabel.CENTER);
         Font titleFont = new Font("SansSerif", Font.BOLD, 18);
         public void init()
              //Set up the user interface (JPanels) here
              titleLabel.setFont(titleFont);
              mainPanel.setLayout(new GridLayout(0,1));
              mainPanel.add(titleLabel);
              questionTextArea.setText("To respond immediately to a change in the " +
                        "\nstate of a JRadioButton, you need to use: ");
              mainPanel.add(questionTextArea);
              questionTextArea.setEnabled(false);
              answerButtonGroup.add(answerARadioButton);
              answerButtonGroup.add(answerBRadioButton);
              answerButtonGroup.add(answerCRadioButton);
              answerButtonGroup.add(answerDRadioButton);
              buttonPanel.setLayout(new GridLayout(0, 4));
              answerARadioButton.setText("an ActionListener");
              buttonPanel.add(answerARadioButton);
              answerBRadioButton.setText("a compareTo method");
              buttonPanel.add(answerBRadioButton);
              answerCRadioButton.setText("an ItemListener");
              buttonPanel.add(answerCRadioButton);
              answerDRadioButton.setText("none of the above");
              buttonPanel.add(answerDRadioButton);
              mainPanel.add(buttonPanel);
              mainPanel.add(answerLabel);
              answerLabel.setForeground(Color.red);
              answerLabel.setFont(titleFont);
              setContentPane(mainPanel);
              //Add listeners
              answerARadioButton.addItemListener(this);
              answerBRadioButton.addItemListener(this);
              answerCRadioButton.addItemListener(this);
              answerDRadioButton.addItemListener(this);
         public void itemStateChanged(ItemEvent event)
              //Retrieve user input and respond with calculations, etc
              Object eventSource = event.getSource();
              if(eventSource.equals(answerARadioButton))
                   answerLabel.setText("an ActionListener is NOT correct");
              else if(eventSource.equals(answerBRadioButton))
                   answerLabel.setText("a compareTo method is NOT correct");
              else if(eventSource.equals(answerCRadioButton))
                   answerLabel.setText("an ItemListener IS CORRECT");
              else if(eventSource.equals(answerDRadioButton))
                   answerLabel.setText("none of the above is NOT correct");
              else
                   answerLabel.setText("answer the question, please!");
    }Message was edited by:
    Dalzhim

  • Can't figure out why this won't work

    Hi,
    I'm working on a simple app that just checks to see if a word is a palindrome. So far it works up to the point where it reverses the word, but when I run my if -else statements to check if it is a palindrome or not, it will always say it isn't even if the word actually is a palindrome.
    import java.io.*;
    public class Main {
        public Main () {
        public static void main(String[] args){
        System.out.println("This program will see if a word is a palindrome.");
        System.out.println("Please enter a word: ");
        BufferedReader br = new BufferedReader( new InputStreamReader(System.in));
        String word = null;
        String wordcopy;
        try {
            word = br.readLine();
        } catch (IOException err) {
            System.out.println("IO error while trying to read the word.");
            System.exit(1);
         wordcopy = PalindromeCheck(word);
         if (wordcopy == word){
            System.out.println("The word is a palindrome.");
         else if (wordcopy != word){
            System.out.println("The word is NOT a palindrome.");
                   /* This is always 
                   * the output to the user whether it is a palindrome or not
        public static String PalindromeCheck(String word) {
            char[] word1 = word.toCharArray();
            char[] word2 = new char[word1.length];
            int wordlength = (word1.length - 1);
            for (int i = wordlength, j = 0; i >= 0; i--, j++) {
                word2[j]=word1;
    System.out.println(word2); /*Checks to make sure it reversed the word*/
    return new String(word2);
    Any ideas on why it does this would be great.
    Thanks a bunch

    if (wordcopy == word){Don't use the == operator to compare the contents of two strings, it doesn't do that. Use the equals method instead:if (wordcopy.equals(word)){And by the way, if you start withif (conditionX)then you don't need to follow on withelse (not conditionX)That second test is redundant. A plain old "else" would do there.

  • Can _you_ see why this HTTP POST doesn't work?

                URL url = new URL(SOAPurl);
             URLConnection connection = url.openConnection();
                httpConn = (HttpURLConnection)connection;          
             httpConn.setRequestProperty( "Content-Length", String.valueOf( byteArray.length ));                  httpConn.setRequestProperty("Content-Type","text/xml;charset=ISO-8859-1");
                httpConn.setRequestMethod( "POST" );
                httpConn.setDoOutput(true);
                httpConn.setDoInput(true);
                // Everything's set up; send the XML that was read in to b.
                OutputStream out = httpConn.getOutputStream();
                out.write( b );
                out.close();The code above will activate my servlet's doGet() method, not doPost()
    shouldn't the setRequestMethod("POST") be enough to indicate that this is a POST not a GET?
    - bjorn

    Using the code found here: http://www.javaworld.com/javaworld/jw-03-2001/jw-0323-traps.html
    I am able to invoke the doPost() method in my servlet, but the POST data is empty, here is what my servlet prints to standard out:
    Post Recieved
    Header Namer: content_length -- Value : 35
    Header Namer: user-agent -- Value : Java/1.4.1_01
    Header Namer: host -- Value : 127.0.0.1:8080
    Header Namer: accept -- Value : text/html
    Header Namer: accept -- Value : image/gif
    Header Namer: accept -- Value : image/jpeg
    Header Namer: accept -- Value : *; q=.2
    Header Namer: accept -- Value : */*; q=.2
    Header Namer: connection -- Value : keep-alive
    Header Namer: content-type -- Value : application/x-www-form-urlencoded
    Header Namer: content-length -- Value : 35
    InputStream.isavailable()=0
    What we recieved: (0)
    Servlet doPost() method:
        public void doPost( HttpServletRequest req, HttpServletResponse resp ) {
            System.out.println("Post Recieved");
            MimeHeaders headers = getHeaders(req);
            Iterator it = headers.getAllHeaders();
            while(it.hasNext()) {
                MimeHeader header = (MimeHeader)it.next();
                System.out.print("Header Namer: " + header.getName());
                System.out.println(" -- Value : " + header.getValue().toString());
            try {
                InputStream is = req.getInputStream();
                byte[] b = new byte[]{};
                System.out.println("InputStream.isavailable()=" + is.available());
                int numbytesread = is.read(b,0,is.available());
                System.out.println("What we recieved: (" + numbytesread + ")\n" + b.toString());
                PrintWriter out = resp.getWriter();
                System.out.println("Running runQuery() - "+queries.get(dbQueryNum));
                String xml = dbconn.runQuery(queries.get(dbQueryNum).toString());
                //System.out.println("returned from runQuery()\n"+xml);
                System.out.println("size of returned XML: "+xml.length());
                out.write(xml);
            } catch (IOException ioe ) { // throwed by getInputStream()
                ioe.printStackTrace();
        }

  • Can anyone see why this isnt working...?

    for line in $(grep "^333#" payRec* | cut -d# -f2); do ((total+=line));
    done
    grep/cut pipeline is returning three integers, 38, 20, 20.
    I want $total to keep a running total, adding them as it goes along. Instead it gets the value of some seemingly unrelated integer, like 480.

    I figured it out, by entering
    typeset -i sum=0 num
    then using those vars for the arithmetic.

  • Any ideas why this won't work?

    I appreciate all the help this board provides. I've learned a ton coming here as I continue to grow my SQL knowledge.
    I need this query to look at the Work_order table and pull any lines that were closed during the prior day. Then I need it to look at the Stock_Tran table and pulled and lines that had a Date_Trans during the prior day. That will give me the work completed and the work that was partially completed during the prior day.
    I'm getting an error message at the line I've underlined and bolded that work_order.partno is an invalid identifier (I'm sure that's not the only error). The query worked until I started adding the Stock_Tran table.
    Any ideas would be greatly appreciated!!!
    SELECT
    SITECODE
    , WORK_ORDER_NUMBER AS "WO #"
    , partno
    , WO_PRIORITY AS "PRIORITY"
    , QTY_WORK_ORDER
    , QTY_FINISHED
    , TRUNC(WO_RELEASE_DATE) AS "RELEASE DATE"
    , TRUNC(WO_START_DATE) AS "START DATE"
    , TRUNC(WO_CLOSED_DATE) AS "CLOSED DATE"
    , STOCK_TRAN.QTY_CHANGE
    FROM
    WORK_ORDER
    , (SELECT SUM(QTY_CHANGE) AS "QTY WORKED" FROM STOCK_TRAN
    WHERE
    SITECODE = 'FCI'
    AND STOCK_TRAN_CODE = 'P'
    AND DATE_TRAN = TRUNC(SYSDATE - 1)
    AND WORK_ORDER.SITECODE = STOCK_TRAN.SITECODE
    AND WORK_ORDER.PARTNO = STOCK_TRAN.PARTNO)_
    WHERE
    WORK_ORDER_TYPE = 'K'
    AND SITECODE = 'FCI'
    AND (TRUNC(WO_CLOSED_DATE) = TRUNC(SYSDATE - 1) OR STOCK_TRAN.DATE_TRAN = TRUNC(SYSDATE -1) )
    AND QTY_FINISHED >0
    ORDER BY WO_PRIORITY DESC

    Hi,
    847497 wrote:
    That gets me closer! Thanks. Now I've getting an error at the line highlighted below.
    Here's the error I'm getting: ORA-00904: "STOCK"."QTY_CHANGE": invalid identifier
    SELECT
    SITECODE
    , WORK_ORDER_NUMBER AS "WO #"
    , partno
    , WO_PRIORITY AS "PRIORITY"
    , QTY_WORK_ORDER
    , QTY_FINISHED
    , TRUNC(WO_RELEASE_DATE) AS "RELEASE DATE"
    , TRUNC(WO_START_DATE) AS "START DATE"
    , TRUNC(WO_CLOSED_DATE) AS "CLOSED DATE"
    *  , STOCK.QTYCHANGE*_I assume you mean this is the line where the error message points. It would be better to mark it with a comment, like this:
    ,       STOCK.QTY_CHANGE                  -- *****  ORA-00904 occurs here *****  FROM
    WORK_ORDER
    , (SELECT SUM(QTY_CHANGE) AS "QTY WORKED"
    , sitecode
    , partno
    , date_tran
    FROM STOCK_TRAN
    WHERE SITECODE = 'FCI'
    AND STOCK_TRAN_CODE = 'P'
    AND DATE_TRAN = TRUNC(SYSDATE - 1)
    GROUP BY sitecode, partno ) stockThe only columns in the stock "table" (it's acutally an in-line view) are "QTY WORKED", SITECODE, PARTNO amnd DATE_TRAN.
    If QTY_CHANGE is a column in the STOCK_TRAN table, then yiou can include it in the SELECT clause of the in-line view, and that will allow you to use it in the main query.
    WHERE stock.sitecode = work_order.sitecode
    AND stock.partno = work_order.partno
    AND WORK_ORDER_TYPE = 'K'
    AND work_order.SITECODE = 'FCI'
    AND (TRUNC(WO_CLOSED_DATE) = TRUNC(SYSDATE - 1) OR STOCK.DATE_TRAN = TRUNC(SYSDATE -1) )
    AND QTY_FINISHED >0
    ORDER BY WO_PRIORITY DESC

  • Please see why this is not working

    hi everyone!
    Please spare ur time to see what's wrong in this code:
    I have written this code for a GUI which checks for 4 types of punctuation errors in .txt files.
    The code compiles correctly and the Gui also appears nicely but when I Give a pathname in the space provided(also using the escape sequence '\\' for the '\' character ) it does not generate the "errors.txt"
    file whhich it is supposed to do.
    The code is as follows:
    import java.io.*;
    import java.awt.*;
    import java.applet.*;
    public class textcopy extends Applet
    public void init()
    Choice ch=new Choice();
    ch.addItem("Click Next to continue.");
    ch.addItem("Framework Properties");
    Label l1=new Label(" ");
    Label nm=new Label("Please specify the errors that you want to be checked for in the file:");
    Label a1=new Label("Write the pathname here:");
    ta=new TextArea(1,20);
    B=new Button("OK");
    Checkbox b1=new Checkbox("Punctuation errors");
    Checkbox b2=new Checkbox("Finding whether a key string is misspelt");
    Label l2=new Label("Please select the key string from one of these:");
    add(a1);
    add(ta);
    add(B);
    add(l1);
    add(nm);
    add(b1);
    add(b2);
    add(l2);
    add(ch);
    TextArea ta;
    Button B;String str="";
    public boolean action(Event e,Object obj)
    if(e.target instanceof Button)
    repaint();
    return true;
    return false;
    public void paint(Graphics g)
    String s=ta.getText();
    try{
    FileReader fin=new FileReader(s);
    PrintWriter fout=new PrintWriter(new BufferedWriter(new FileWriter("errors.txt")));
    parse(fin,fout);
    fin.close();
    fout.close();
    catch(IOException e){}
    //This is the code for the parser ------it is perfectly correct--so you dont need to check this.
    public static void parse(FileReader fin,PrintWriter fout)throws IOException
    String str="Punctuation Errors:\n"; /*Heading*/
    fout.println(str);
    fout.println("========================================================");
    int i=0,j=0,k=0,l=0;
    j=fin.read();
    do{
    do{
    i=j;
    j=fin.read();
    }while((!((char)i=='('&&(char)j=='R'))&&(j!=-1));
    if(j==-1)break;
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    j=fin.read();
    char refnum[]=new char[5];
    l=0;
    while((char)j!=')')
    j=fin.read();
    if((char)j!=')')
    refnum[l++]=(char)j;
    fout.write("REF. NUM: ");
    for(int a=0;a<l;a++)fout.write(refnum[a]);fout.write(": ");
    j=fin.read();
    l=0;
    do{
    i=j;
    j=fin.read();
    if((char)i=='\n')
    k++;
    //'k' gives the line no. and finally the no. of lines and neglects the lines before first occurence of "Ref Num
    if(((char)i==',')&&((char)j!=' '))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should be "+
    "a space after comma(,) \n";
    fout.println(st);
    if(((char)i=='.')&&((char)j!=' '))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should be "+
    "a space after period(.) \n";
    fout.println(st);
    if(((char)i=='.')&&((char)j=='.'))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should not be "+
    "two periods(.) together \n";
    fout.println(st);
    if(((char)i==' ')&&((char)j=='.'))
    l++;
    String st=l+". error at line number "+ (k+1) + ": There should not be "+
    "a space before a period(.) \n ";
    fout.println(st);
    }while((!((char)i=='-' && (char)j=='T')) && j!=-1);
    fout.println(" ");
    /*if(l==0)
    fout.println("No errors!!!!");*/
    if(j==-1)break;
    }while(j!=-1);
    The html file I made for this is as follows:
    <html>
    <body bgcolor="Red">
    <center>
    <h1><b>Welcome to qch </b></h1>
    <applet code=textcopy.class width=800 height=400 >
    </applet>
    </center>
    </body>
    </html>
    N.B.:I have not used main() in the above program becoz it would not have been a pure GUI program
    Please see what I did wrong in the above code.
    Thanks in advance
    Avichal

    c'mon guys help me!!!!!!!!!!!!!!!!See reply #1 and reply #5. Print any exceptions you
    catch. Print messages at key points in the programs
    execution. Then you will we what is wong.
    and change this line please "public class textcopy extends Applet" -otherwise you're flogging a dead horse, ie: applets run inside a 'sandbox' so there are a set of security measures that prevent them reading from or writing to user files (unless you run the applet inside a protective IDE shell such as JBuilder)
    public class textcopy extends JFrame{ ...would be a better starting point.
    people would probably be happy to assist you convert this to a Frame or JFrame if you haven't done this before.

  • Has any one got any idea why this won't work?

    import java.io.*;
    import java.util.*;
    class VirusScanner
         static String Storedfiles = "c:\\bbb";
         //To change which virus signatures are to be used, the line below must be edited to reflect which directory contains them.
         static String VirusSignatures = "c:\\aaa";
         static int files = 0;
         static int infectedfiles = 0;
    static File sig = new File(VirusSignatures);
         static File dir = new File(Storedfiles);
         public static void main(String args[]) throws IOException
              //if file and signature directories are valid, run scan and then display the results of scan.
              if(dir.isDirectory() && sig.isDirectory())
                   System.out.println("Scanning Directory: " + dir);
                   scanDir(dir);
                   System.out.println("Scan of " + dir + " complete. " + files + " files scanned. " + infectedfiles + " infected files found.");
              //otherwise output "Invalid Directory" on the screen
              else
                   System.out.println("Invalid Directory");
         public static void scanDir(File direct) throws IOException
              //Create a string array containing a list of all files in the directory
              String s[] = direct.list();
    //loop through every file or directory inside current directory
              //and call relevant method
              for (int i=0; i<s.length; i++)
                   File current = new File(direct + "/" + s);
                   if (current.isDirectory())
                        scanDir(current);
                   else
                        scanFile(current);
         public static void scanFile(File filepath) throws IOException
              //Add one to the count of files scanned
    files ++;
              // Create filereader object for file to be scanned, and wrap with buffer
              FileReader fr2 = new FileReader (filepath);
              BufferedReader br2 = new BufferedReader(fr2);
              //Create a string containing the contents of the file
    int fileInt = (int) filepath.length();
    //int fileInt = fileLong.intValue();
    char[] buf2 = new char[fileInt];
              br2.read(buf2,0,fileInt);
              String theFile = new String(buf2);
              //Close readers
              fr2.close();
              br2.close();
              //Create a string array containing a list of all of the signature files
              String s[] = sig.list();
              //for loop which checks the contents of each signature file against the file to be checked
              for(int i=1;i<s.length;i++)
                   //Create filereader object for relevant virus signature and wrap with buffer
    File sigFile = new File (VirusSignatures + "/signature" + i);
                   FileReader fr = new FileReader (sigFile);
                   BufferedReader br = new BufferedReader(fr);
                   //Create a string containing the contents of the signature file
    int virusInt = (int) filepath.length();
    //int virusInt = virusLong.intValue();
    char[] buf = new char[virusInt]; // the buffer
                   br.read(buf,0,virusInt);
                   String theSig = new String(buf);
                   //Close readers
                   fr.close();
                   br.close();
                   //If signature is found in file report to screen
                   if (theFile.indexOf(theSig)!=-1)
                        System.out.println("Virus " + i + " found in file " + filepath);
                        infectedfiles++;

    This topic is apparently indicated as closed here:
    http://forum.java.sun.com/thread.jspa?threadID=621169
    Not sure why you posted this at all.

  • Confused as to why this doesn't work...

    I wrote this code correctly, but it doesn't seem to work. I'm not sure if I'm leaving something out or not using something correctly. If anyone can tell me why this doesn't work, it would be greatly appreciated!
    P.S. in the actionPerformed method, I want to put the window to close once someone clicks an "ok" button. How is this done? I've tried using setDefaultCloseOperation(3), but it doesn't seem to work.
    peace,
    Mark
    //?2002 Copyright. MJA Technologies.  All Rights Reserved.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class About extends JFrame implements ActionListener
        JTextArea textarea;
        JPanel panel1;
        JButton okbutton;
        String output;
        public About()
            super("Pages");
            Container container = getContentPane();
            textarea = new JTextArea();
            textarea.setText("Pages 1.0 beta 0\n?2002 MJA Technologies.\nAll Rights Reserved.");
            container.add(textarea);
            setDefaultCloseOperation( 3);
            setVisible(true);
            setSize(400, 300);
        public void actionPerformed(ActionEvent event)
            if(event.getSource() == okbutton)

    Oh see, you said this:
    "P.S. in the actionPerformed method, I want to put the window to close once someone clicks an "ok" button. How is this done? I've tried using setDefaultCloseOperation(3), but it doesn't seem to work."
    so I said this:
    "setVisible(false)"
    NOOOOOOOOOOOW you say the TextArea doesn't show up...that's a whole other problem.
    Jeeeeeeeeeeeeeeeez.
    So what layout manager are you using in the container? (hint hint)

  • When I try to File Save As on an .FLV movie, Firefox automatically changes the filetype to .mp4 while Chrome for instance retains the .FLV file type. I wanted to see why this is and how it can be fixed to work similarly to Chrome. Thanks.

    When I try to File > Save As on an .FLV movie, Firefox automatically changes the filetype to .mp4 while Chrome for instance retains the .FLV file type. I wanted to see why this is and how it can be fixed to work similarly to Chrome. Thanks.

    If that file is an FLV file then Firefox should save it as such and not change the file extension.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    See also:
    *http://kb.mozillazine.org/File_types_and_download_actions
    *https://support.mozilla.org/kb/Managing+file+types

  • I have seen on this community that the earpods do not work on iPod shuffle gen 3 but when I was using on them it worked the control panel thing that is but only until I turned it off I don't understand why it won't work again and why it did in the first p

    I have seen on this community that the earpods do not work on iPod shuffle gen 3 but when I was using on them it worked the control panel thing that is but only until I turned it off I don't understand why it won't work again and why it did in the first place can someone please explain and tell me how to make it work again

    Sorry first time asking question didn't mean to write same thing twice well copy paste

  • I can't deauthorize all computers. It acts like it is doing it, but it never succeeds and no message returns saying why it didn't work. Can anyone explain why this is happening?

    I had to rebuild a computer. When I got iTunes installed and tried to sync my iPod it said that I had reached my limit of five computers. I logged into my iTunes account and went through the process for deauthorizing all computers. It comes up with a messaging asking if I am sure I want to deauthorize all computer and I select the "Deauthorize computers" button. It never comes back with a message one way or another whether it was successful. When I get out of that screen and come back in, it still shows that I have 5 authorized computers. I can't sync my iPod. The deauthorization is not working. Can anyone explain why this is happening?

    i guess no one helped? I'm having the same problem.
    When i press the button to deauthorize all computers, i get an error saying 'my account can't process this at this time. please try again later'

  • HT203180 shows (I already of 5 of them) now it says they can't be played on my ipod, and I purchased them from Itunes? I don't understand why they won't work?

    I purchased the remainder of shows (I already of 5 of them) for a TV series now it says they can't be played on my ipod, and I purchased them from Itunes? I don't understand why they won't work? I tried the conversion but it's greyed out and not chooseable. But again purchased from itunes so they should work according to the above article. Can anyone help me?

    Dracwolley wrote:
    They can. The video needs to be converted, though. If it's in your library, just go to Advanced (in the top menu), then click on "Make iPod/iPhone Version." Wait a while, and when it's done, click and drag. Or for a quicker alternative and less space lost on the iPod, download Handbrake here.
    Yep.

  • Unsure why this is not working?

    Can anyone give me a pointer as to why this is not working? I put the code from line 16 through 50 in the "...before displaying the page" additional pl/sql section of the wizard. The form wizard created the code from 5 through 15 and 51 through 55. The first error I understand because I think the wizard forgot to end the procedure correctly by saying "end beforeModuleDisplay;" instead of just putting "end;".
    If I am right, how can I fix this since the wizard is the one putting in this info? I tried putting the correct end statement in where I put the rest of my code, but that created even more errors.
    Error creating package SOCSBO_USER.ACCT_INFO
    Error creating package SOCSBO_USER.ACCT_INFO
    Line/ColumnError
    56/5PLS-00103: Encountered the symbol "PROCEDURE" when expecting one of the following: begin declare end exception exit for goto if loop mod null pragma raise return select update while <an identifier> <a double-quoted delimited-identifier> <a bind variable> << close current delete fetch lock insert open rollback savepoint set sql execute commit forall <a single-quoted SQL string> The symbol "declare" was substituted for "PROCEDURE" to continue.
    2128/5PLS-00103: Encountered the symbol "END" when expecting one of the following: begin function package pragma procedure form
    -- PACKAGE BODY SOCSBO_USER.ACCT_INFO
    -- created Monday 05-NOV-2001 16:52
    create or replace
    1 package body ACCT_INFO as
    2 --
    3 -- Created by ASAPP using WebDB at 15:16:46, Mar 04, 2002
    4 --
    5 procedure beforeModuleDisplay
    6 (
    7 p_block_name in varchar2,
    8 p_object_name in varchar2,
    9 p_instance in integer,
    10 p_event_type in varchar2,
    11 p_user_args in varchar2,
    12 p_session in out PORTAL30.wwa_api_module_session
    13 )
    14 is
    15 begin
    16 declare
    17 l_fs varchar2(200);
    18 l_cv varchar2(200);
    19 l_sv varchar2(200);
    20 l_lang varchar2(100);
    21 l_idx integer;
    22 begin
    23 l_lang := portal30.wwctx_api.get_nls_language;
    24 l_fs := p_session.get_value_as_varchar2(
    25 p_block_name => 'DEFAULT',
    26 p_attribute_name => '_FORM_STATE');
    27 l_cv := p_session.get_shadow_value(
    28 p_block_name => 'DEFAULT',
    29 p_attribute_name => 'A_ACCOUNT_COURSE',
    30 p_language => l_lang);
    31 l_sc := p_session.get_shadow_value(
    32 p_block_name => 'DEFAULT',
    33 p_attribute_name => 'A_ACCOUNT_SUBPROJECT',
    34 p_language => l_lang);
    35 if upper(l_fs) = 'UPDATE_AND_DELETE' then
    36 l_idx := row_function.get_index('COURSE_BOTTOM');
    37 if upper(l_cv) = 'Y' then
    38 p_form.items(l_idx).visible := 'Y';
    39 else
    40 p_form.items(l_idx).visible := 'N';
    41 end if;
    42 end if;
    43 if upper(l_fs) = 'UPDATE_AND_DELETE' then
    44 l_idx := row_function.get_index('SUBPROJECT_BOTTOM');
    45 if upper(l_sv) = 'Y' then
    46 p_form.items(l_idx).visible := 'Y';
    47 else
    48 p_form.items(l_idx).visible := 'N';
    49 end if;
    50 end if;
    51 exception
    52 when others then
    53 PORTAL30.wwerr_api_error.add(PORTAL30.wwerr_api_error.DOMAIN_WWV,'app','generic','SOCSBO_USER.ACCT_INFO.beforeModuleDisplay', p1 => sqlerrm);
    54 raise;
    55 end;
    56 procedure row_function
    REST OF CODE NOT RELEVANT

    Hello Albert,
    You open a new pl/sql block on line 16, but you have only one 'end' statement.
    You can correct this by adding another 'end' statement after line 55 or you can remove the inner PL/SQL block and place it in the procedure itself. Variables can be declared after 'is' on line 14. In your example it's better to do it this way. See example.
    Hope this helps...
    Nancy.
    Example solution 2:
    -- PACKAGE BODY SOCSBO_USER.ACCT_INFO
    -- created Monday 05-NOV-2001 16:52
    create or replace
    1 package body ACCT_INFO as
    2 --
    3 -- Created by ASAPP using WebDB at 15:16:46, Mar 04, 2002
    4 --
    5 procedure beforeModuleDisplay
    6 (
    7 p_block_name in varchar2,
    8 p_object_name in varchar2,
    9 p_instance in integer,
    10 p_event_type in varchar2,
    11 p_user_args in varchar2,
    12 p_session in out PORTAL30.wwa_api_module_session
    13 )
    14 is
    15 l_fs varchar2(200);
    16 l_cv varchar2(200);
    17 l_sv varchar2(200);
    18 l_lang varchar2(100);
    19 l_idx integer;
    20
    21 begin
    22
    23 l_lang := portal30.wwctx_api.get_nls_language;
    24 l_fs := p_session.get_value_as_varchar2(
    25 p_block_name => 'DEFAULT',
    26 p_attribute_name => '_FORM_STATE');
    27 l_cv := p_session.get_shadow_value(
    28 p_block_name => 'DEFAULT',
    29 p_attribute_name => 'A_ACCOUNT_COURSE',
    30 p_language => l_lang);
    31 l_sc := p_session.get_shadow_value(
    32 p_block_name => 'DEFAULT',
    33 p_attribute_name => 'A_ACCOUNT_SUBPROJECT',
    34 p_language => l_lang);
    35 if upper(l_fs) = 'UPDATE_AND_DELETE' then
    36 l_idx := row_function.get_index('COURSE_BOTTOM');
    37 if upper(l_cv) = 'Y' then
    38 p_form.items(l_idx).visible := 'Y';
    39 else
    40 p_form.items(l_idx).visible := 'N';
    41 end if;
    42 end if;
    43 if upper(l_fs) = 'UPDATE_AND_DELETE' then
    44 l_idx := row_function.get_index('SUBPROJECT_BOTTOM');
    45 if upper(l_sv) = 'Y' then
    46 p_form.items(l_idx).visible := 'Y';
    47 else
    48 p_form.items(l_idx).visible := 'N';
    49 end if;
    50 end if;
    51 exception
    52 when others then
    53 PORTAL30.wwerr_api_error.add(PORTAL30.wwerr_api_error.DOMAIN_WWV,'app','generic','SOCSBO_USER.ACCT_INFO.beforeModuleDisplay', p1 => sqlerrm);
    54 raise;
    55 end;
    56 procedure row_function
    REST OF CODE NOT RELEVANT

  • Since installing OSX 10 my iMac randomly shuts down and restarts.  I can not determine why this is happening.  Any ideas?

    Since installing OSX 10, my iMac randomly shuts down and restarts.  I can not determine why this is happening.  Any ideas?

    1. This is a comment on what you should and should not do to protect yourself from malicious software ("malware") that circulates on the Internet. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to the victim's computer. That threat is in a different category, and there's no easy way to defend against it. If you have reason to suspect that you're the target of such an attack, you need expert help.
    If you find this comment too long or too technical, read only sections 5, 6, and 10.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user, but internally Apple calls it "XProtect." The malware recognition database is automatically checked for updates once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.
       3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    It can easily be disabled or overridden by the user.
    A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    For the reasons given above, App Store products, and other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandboxing security is based on user input. Never click through any request for authorization without thinking.
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. The built-in security features of OS X reduce the risk of malware attack, but they're not absolute protection. The first and best line of defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and the malware attacker. If you're smarter than he thinks you are, you'll win.
    That means, in practice, that you always stay within a safe harbor of computing practices. How do you know what is safe?
    Any website that prompts you to install a “codec,” “plug-in,” "player," "extractor," or “certificate” that comes from that same site, or an unknown one, is unsafe.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    Pirated copies or "cracks" of commercial software, no matter where they come from, are unsafe.
    Software of any kind downloaded from a BitTorrent or from a Usenet binary newsgroup is unsafe.
    Software that purports to help you do something that's illegal or that infringes copyright, such as saving streamed audio or video for reuse without permission, is unsafe. All YouTube "downloaders" are outside the safe harbor, though not all are necessarily harmful.
    Software with a corporate brand, such as Adobe Flash Player, must be downloaded directly from the developer’s website. If it comes from any other source, it's unsafe. For instance, if a web page warns you that Flash is out of date, do not follow an offered link to an update. Go to the Adobe website to download it, if you need it at all.
    Even signed applications, no matter what the source, should not be trusted if they do something unexpected, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    "FREE WI-FI !!!" networks in public places are unsafe unless you can verify that the network is not a trap (which you probably can't.) Even then, do not download any software or transmit any private information while connected to such a network, regardless of where it seems to come from or go to.
    6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it — not JavaScript — in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.
    Follow the above guidelines, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.
    7. Never install any commercial "anti-virus" or "Internet security" products for the Mac, as they all do more harm than good, if they do any good at all. Any database of known threats is always going to be out of date. Most of the danger is from unknown threats. If you need to be able to detect Windows malware in your files, use one of the free anti-virus products in the Mac App Store — nothing else.
    Why shouldn't you use commercial "anti-virus" products?
    Their design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere.
    In order to meet that nonexistent threat, the software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. Most of the real danger comes from highly targeted "zero-day" attacks that are not yet recognized.
    By modifying the operating system, the software itself may create weaknesses that could be exploited by malware attackers.
    8. An anti-malware product from the App Store, such as "ClamXav," doesn't have these drawbacks. That doesn't mean it's entirely safe. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    An anti-virus app is not needed, and should not be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.
    A Windows malware attachment in email is usually easy to recognize. The file name will often be targeted at people who aren't very bright; for example:
    ♥♥♥♥♥♥♥♥♥♥♥♥♥♥!!!!!!!H0TBABEZ4U!!!!!!!.AVI♥♥♥♥♥♥♥♥♥♥♥♥♥♥.exe
    Anti-virus software may be able to tell you which particular trojan it is, but do you care? In practice, there's seldom a reason to use the software unless an institutional policy requires it.
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have the disadvantages mentioned in section 7.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
    10. As a Mac user you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither should you assume that you will always be safe from exploitation, no matter what you do. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. Nothing can lessen the need for safe computing practices.

Maybe you are looking for

  • I still cannot communicat​e via modbus

    Reference#677685 Murali I finally got back to the customer site to test the Lookout 5.1 Modbus file and it still causes errors. What I cannot understand is why the Lookout 5.0 Demo works with this address and the Lookout 6.0 does not, even with all t

  • Windows failed to start, please insert windows disk

    Hello, I have a HP envy 17 3d, When I turn my laptop on it says the following. Windows failed to start, a recent hardware or software change might be the problem. \Boot\BCD 0XC/000000f An error occurred whilst trying to read the boot configuration da

  • How to maintain Proof of Delivery in R/3

    Hi Guys, I just wanted to ask how can I maintain Proof of Delivery in R/3 I have a PO Number and Delivery Number as input. Thanks. Chris

  • Typeset changed in Premiere CS5.5 on new PC

    Hi, I'm working as a WebTV Editor and we recently got a brandnew machine (Win7 Pro). As we produce hundreds of videos,we've got a Premiere template that includes the corporate design of our titles/logos and such... The font we're using is "MagdaClean

  • Adobe CreatePDF - How do I get started?

    How do I get started in Adobe CreatePDF