Plzzzz help me thru this

I have an application that contains:
an Access-database and a GUI that displays the values of the database.
Now I want to refresh the display after every 10 minutes. How can I do that? Can anybody help me ASAP.

you could create a runnable method that refreshes the display continuously. Assign it to a thread. After every time it is done refreshing, put the thread to sleep for 10 minutes. Using threads is covered in the online tutorial... if you aren't inclined to read that, say so

Similar Messages

  • Plzzzz help me with this :(

    i have this project but i didnot how to complete it >>
    plz help me
    Write a program to manage assigned course to students.
    The number of sections is unknown, and might change from a term to another.
    We assume that each student is recognized by his name and ID, and may receive a grade for a specific course.
    We also assume that each course has a name, an ID, and section name.
    Using a list of classes, and a list of students in the same class,
    -     Register a new student to a new course
    -     Add a new course,
    -     Delete a course,
    -     Remove a student from a course
    -     Print all students in a course,
    -     Print all courses associated to some student,
    -     Assign a grade to a student
    and this is my soulation
    public class project {
         public class Node {
              private int id;
              private int Cnum;
              Node nexts;
              Node nextc;
              public Node( int sno, int cno,Node n,Node n2)
              id=sno;
              Cnum=cno;
              nexts=n;
              nextc=n2;
              public Node()
                   id=0;
                   Cnum=0;
                   nexts= null;
                   nextc=null;
    //     student will add or drop courses
         public class section {
              //private Node head;
              //private Node tail;
              private String sectionName; //name of the section
              private String inst; // instructor name
              private int Snum; //section number
              SinglyLinkedList students; //object of class singly link list
              public section(String instructor ,String course,int snum)
                   inst=instructor;
                   sectionName=course;
                   Snum=snum;
                   students =new SinglyLinkedList() ;
              public void addToHead(int sid, int snum)
         if (students.head ==null)
              {students.head=students.tail=new Node(sid,snum,null,null); }
                   else
                        students.tail.nexts=new Node(sid,snum,null,null);
              public void deleteStudent( int sid, int snum)//delete using student section number
              if (students.head==null) return;
              else
              { // if not empty list
                   if ((students.head == students.tail) && (sid == students.head.id))
                   { // if only one node in the list
                   students.head = students.tail = null; // and el is the head
              else if (sid == students.head.id) { // if more than one node in the list and el is head
                   students.head = students.head.nexts;
              else
              { // search for el starting at head, ending at tail     
              Node pred;Node tmp;
              for (pred = students.head, tmp = students.head.nexts; (tmp != null) && !(tmp.id == sid);pred = pred.nexts, tmp= tmp.nexts);
              if (tmp != null)
              pred.nexts = tmp.nexts;
                   if (tmp == students.tail)
                        students.tail = pred;     
    //courses will be added or drop from student
    public class student {
         //private Node head;
         //private Node tail;
         private String lastName;
         private String firstName;
         private String grade;
         private int id;
         SinglyLinkedList sections;
         public student(String fn,String ln,int idnum)
              lastName=ln;
              firstName=fn;
              id=idnum;
              grade=null;
              sections =new SinglyLinkedList() ;
         public void addToHead(int sid, int snum) //add section to the student
    if ((sections.head == null) && (sections.tail == null))
         sections.head = sections.tail = new Node(sid,snum,null,null);
    else
         head = new Node(ln,fn,no,head);
    sections.head = sections.tail = new Node(sid,snum,students.head,sections.head);
         public class SinglyLinkedList {
              public student[] s=new student[2000];
              public section[] sc=new section[200];
              public Node head;
              public Node tail;
              public SinglyLinkedList() //set head & tail to null
                   head = tail = null;
              public boolean checkS()
              public linked()
                   for(int i=0;i<2000;i++)
                        s=new student;
                   for(int j=0;j<2000;j++)
                        sc[i]=new section;

    hlover wrote:
    i have this project but i didnot how to complete it >>
    plz help me
    ...Could you ask a specific question about some piece of code you're working on? A description like "I don't know how to complete it" does not tell me very much.
    Oh, and please use proper spelling and grammar: this is not a chat board. Thanks.

  • I just received photoshop elements 10 that I bought used thru Ebay, for my OSX Mac 10.5.8. I put the discs in my computer and nothing happens to help me download it. Can anyone help me with this instillation challenge?

    I just received photoshop elements 10 that I bought used thru Ebay, for my OSX Mac 10.5.8. I put the discs in my computer and nothing happens to help me download it. Can anyone help me with this instillation challenge?

    Does your mac have an intel processor or PowerPC processor?
    System requirements | Adobe Photoshop Elements
    Did you insert the disk that is labeled mac os?
    After you insert the disk, it should show on your desktop.
    If you double click on the the disk icon on the desktop, does anything happen?
    more info about the included disks:
    FAQ: Installing Elements 10, or What do all these disks do?

  • Hi Everyone...Please help me with this query...!

    Please Help me with this doubt as I am unable to understand the logic...behind this code. It's a begineer level code but I need to understand the logic so that I am able to grasp knowledge. Thank you all for being supportive. Please help me.
    //Assume class Demo is inherited from class SuperDemo...in other words class Demo extends SuperDemo
    //Volume is a method declared in SuperDemo which returns an integer value
    //weight is an integer vairable declared in the subclass which is Demo
    class Example
         public static void main(String qw[])
              Demo ob1=new Demo(3,5,7,9);
    //Calling Constructor of Demo which takes in 4 int parameters
              SuperDemo ob2=new SuperDemo();
              int vol;
              vol=ob1.volume();
              System.out.println("Volume of ob1 is " + vol);
              System.out.println("Weight of ob1 is " + ob1.weight);
              System.out.println();
              ob2=ob1;
    }Can someone please make me understand --- how is this possible and why !
    If the above statement is valid then why not this one "System.out.println(ob2.weight);"
    Thanks Thanks Thanks!

    u see the line wherein I am referencing the objectof
    a subclass to the superclass...right? then why we
    can't do System.out.println(ob2.weight)?You need to distinguish two things:
    - the type of the object, which determines with the
    object can do
    - the type of the reference to the object, which
    determines what you see that you can do
    Both don't necessarily have to match. When you use a
    SuperDemo reference (obj2) to access a Demo instance
    (obj1), for all you know, the instance behind obj2 is
    of type SuperDemo. That it's in reality of type Demo
    is unknown to you. And usually, you don't care -
    that's what polymorphism is about.
    So you have a reference obj2 of type SuperDemo.
    SuperDemo objects don't have weight, so you don't see
    it - even though it is there.So from ur explanation wat I understand is - Even though u reference a subclass object to a superclass, u will only be able to access the members which are declared in the superclass thru the same...right
    ?

  • Please help me with this time capsule! Really let me down!

    So first thanks for looking into this. I bought the TC from london but i live in Malta so i cannot go to apple store (that is why I need your help guys).
    This is what happened in brief:
    -Removed my existing router and managed to connect to internet (imac) via time capsule
    -Tried to setup and managed and then started first back up
    -It had to back up 179GB and like 2 GB was backed up already... i was like updating the details using airport utility and set up a password for my network... because the details updated time capsule refreshed and back up stopped
    -Since then it was giving me the error that cannot connect due to network error
    -It had like 3GB missing and I deleted that (moved file into trash) so it was like I refreshed it to start over with brand new back up
    -Now I have managed to start it backing up again (it's so slow however) but as Im typing this... its backing up but the internet connection is getting lost every 1 minute and i have to go to airport from the bar and chose the network again
    -I will not stay up all night waiting for it to finish so I already know what is going to happen... when I wake up I will see (again) the message that connection was lost (since I will not be awake refreshing and selecting the network every minute)
    I am so dissapointed/___sbsstatic___/migration-images/migration-img-not-avail.png The fact that apparently i have stopped the fist back up (which was going well + fast) caused all these problems.
    How do you actually reset/restore/format the TC to get it as brand new? I think that will solve the problem...
    As I've told you guys you're my only hope. No apple store here
    Thanks before hand and will look forward for the answer in the morning/___sbsstatic___/migration-images/migration-img-not-avail.png
    Cheers & Hpy NY

    launch Airport Utility and under disk erase the TC hard drive(you seem to not have much value on it anyway) then if you have to change the name of the disk.
    if you can connect TC to your computer thru ethernet connection and not wireless. 179 gigs is a lot of data to move. Ethernet should do you about 1.5 hrs to 2 hrs for the Time Machine backup.
    Concerning the wireless problem I'd suspect some type of interference causing the disconnection. It can be just about anything for example, locating the TC too close to another router, vonage, computer, metal objects blocking or too near, TC location thru too many walls especially in N mode.
    Hope this helps you.

  • Kindly Help Me in This Servlet...

    the error is.. Can not issue data manipulation statements with executeQuery(). i cant.. update my database and also i cant delelete..
    what wrong in this servlet..
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class Servlet1 extends HttpServlet
    Connection con = null;
    Statement stat = null;
    ResultSet result = null;
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    public void destroy()
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException
    response.setContentType("text/html");
    java.io.PrintWriter out = response.getWriter();
    try
         out.println("<html>");
    out.println("<head></head>");
    out.println("<body>");
    String table = "Employee";
    String field1 = "Firstname";
    String field1_label = "First Name";
    String field2 = "Lastname";
    String field2_label = "Last Name";
    String field3 = "Middlename";
    String field3_label = "Middle Name";
    String db_host = "localhost";
    String db_user = "root";
    String db_pass = "root";
    String db = "murach?";
    String query = "";
    String url = "jdbc:mysql://"+db_host+"/" + db;
    String driver = "org.gjt.mm.mysql.Driver";
    Class.forName(driver);
    con = DriverManager.getConnection(url, db_user, db_pass);
    stat = con.createStatement();
    String sort = request.getParameter("sort")+"";
    String read = request.getParameter("read")+"";
    String update = request.getParameter("update")+"";
    String delete = request.getParameter("delete")+"";
    String field1_value = request.getParameter("field1_value")+"";
    String field2_value = request.getParameter("field2_value")+"";
    String field3_value = request.getParameter("field3_value")+"";
    out.println("<html>");
    out.println("<head><title>Products Update</title></head>");
    out.println("<script language=\"JavaScript\">");
    out.println("function focusform() {");
    out.println("document.forms[1].field1_value.focus();");
    out.println("}");
    out.println("</script>");
    out.println("<head>");
    out.println("<center><body bgcolor=pink OnLoad=\"focusform()\">");
    if (!update.equals("null"))
         //query = "replace into" + table + "("+ field1 +",'"+ field2 +",'"+ field3 +"') values ("+ field1_value+",'"+ field2_value +",'"+field3_value+"')" ;
         query = "update" + table + " set " + field1 + "=\"" + field1_value + "\" , " + field2 + "=\"" + field2_value + "\"," + field3 + "=\"" + field3_value + "\"where Code="+ update;
         result = stat.executeQuery(query);
    if (!delete.equals("null"))
         query = "delete from " + table + " where Code=" + delete;
    if (!query.equals(""))
         result = stat.executeQuery(query);
    query = "select * from " + table;
    if (sort.equals("null")) sort=field1;
    if (sort.equals("Code")) query+=" order by Code";
    if (sort.equals(field1)) query+=" order by " + field1;
    if (sort.equals(field2)) query+=" order by " + field2;
    if (sort.equals(field3)) query+=" order by " + field3;
    if (!read.equals("null"))
    query = "select * from " + table + " where Code=" + read;
    result = stat.executeQuery(query);
    out.println("<table border=1 cellspacing=0>");
    out.println("<tr>");
    out.println("<td><a href=\"" + request.getRequestURL() + "?sort=Code\">Code</a></td>");
    out.println("<td><a href=\"" + request.getRequestURL() + "?sort=" + field1 + "\">" + field1_label + " </a></td>");
    out.println("<td><a href=\"" + request.getRequestURL() + "?sort=" + field2 + "\">" + field2_label + "</a></td>");
    out.println("<td><a href=\"" + request.getRequestURL() + "?sort=" + field3 + "\">" + field3_label + "</a></td>");
    out.println("<td colspan=2>");
    out.println("</td>");
    out.println("</tr>");
    if (read.equals("null"))
    while(result.next())
    out.println("<tr>");
    out.println("<td>");
    out.print(result.getString(1));
    out.println("</td>");
    out.println("<td>");
    out.print(result.getString(2));
    out.println("</td>");
    out.println("<td>");
    out.print(result.getString(3));
    out.println("</td>");
    out.println("<td>");
    out.print(result.getString(4));
    out.println("</td>");
    out.println("<td><a href=\"" + request.getRequestURL() + "?read=" + result.getString(1) + "\">Edit</a></td>");
    out.println("<td><a href=\"" + request.getRequestURL() + "?delete=" + result.getString(1) + "\">Delete</a></td>");
    out.println("</tr>");
    else
    while(result.next())
    out.println("<form action=\"" + request.getRequestURL() + "\" method=\"post\"> " + "\t <input type=hidden name=update value=" + result.getString(1) + ">");
    out.println("<tr>");
    out.println("<td>");
    out.print(result.getString(1));
    out.println("</a></td>");
    out.println("<td><input type=text size=10 name=field1_value value=" + result.getString(2) + "></td>");
    out.println("<td><input type=text size=10 name=field2_value value=" + result.getString(3) + "></td>");
    out.println("<td><input type=text size=15 name=field3_value value=" + result.getString(4) + "></td>");
    out.println("<td colspan=2 align=center><input type=submit value=\" Do it! \"></td>");
    out.println("</tr>");
    out.println("</form> ");      
    stat.close();
    con.close();
    out.println("</table>");
    catch(ClassNotFoundException e)
         out.println("Couldn't load database driver: " + e.getMessage());
    catch(SQLException e)
         out.println("SQLException caught: " + e.getMessage());      
    finally
         try
              if (con != null) con.close();
         catch (SQLException ignored)
    out.close();
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException
    processRequest(request, response);
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException
    processRequest(request, response);
    public String getServletInfo()
    return "4 Column ProductUpdate Java Servlet using MySQL.";
    hope you can help me about this..

    what is the entry in the tnsnames.ora for HRMIS? I am accessing thru client machine :
    In tnsnames.ora file
    HRMIS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.11.93)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = hrmis)
    HRMIS_HRMIS =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = hrmis)(PORT = 1521))
    (CONNECT_DATA =
    (SID = hrmis)
    (SERVER = DEDICATED)
    In sqlnet.ora
    # sqlnet.ora Network Configuration File: D:\Oracle\product\10.1.0\Client_1\network\admin\sqlnet.ora
    # Generated by Oracle configuration tools.
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

  • Updated to ios7 battery is draining plzzzz help me how to fix??????

    updated to ios7 battery is draining plzzzz help me how to fix??????

    Read this: http://helpios7.com/ios-7-battery-issues/

  • N86 problem....PLZZZZ HELP!!!!

    i have bought this new nokia n86 8mp in jan and have been dealing with problems since then....first of all the colours of the phone crashed and the screen was replaced in 15 days from the date of purchase.,,,,then the colours again crashed and the phone was being replaced just a few days ago.......
    One thing more i want to know how i could change the phone settings as the phone keeps on using the gprs.....i have to manually disconnect the access point from the active connections...
    somebody plzzzz help me to get rid of this problem

    go to settings..>connection..>destinations..>options..>default connection..>Always Ask........when the connection is required then the phone asks for a permission and a message will appear so you will have to choose the right connection
    Nokia 5730XM,200.12.87
    If my post helped you in anyway,Please click on the (Kudos!) Star, THANK YOU!!

  • Plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m,

    plz help me how i remove previous id that is stuck in activation process and me not know password and id  plzzzz help m

    Read this: http://support.apple.com/kb/PH13695
    If it is locked with your ID, then re-set the password at https://iforgot.apple.com

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • HELP TO TUNE THIS QUERY

    Hi,
    I'm using below query in procedure.It's taking more more time can some one help to tune this query or advice to rewrite the query.
    Databse :10.1
    SELECT   'Reading Comprehension' TEST_NAME,T.TEST_END_DATE TEST_SESSION_DATE,
            C.POOL_VERSION_ID, I.CREATED_ON POOL_CREATED_DT,
            C.ITEM_ID, C.ITEM_RESPONSE_ID, S.STUDENT_ID_PK, C.RESPONSE_KEY, C.IS_CORRECT RESPONSE_IS_CORRECT,
            T.SCORE SCALE_SCORE, C.RESPONSE_DURATION, P.ITEM_KEY,
            T.TEST_SESSION_DETAIL_ID, SYSDATE CREATED_ON
           -- BULK COLLECT INTO TV_PSYCHO_DET
            FROM
            CAT_ITEM_PARAMETER P, CAT_ITEM_USER_RESPONSE C, TEST_SESSION_DETAIL T,
            TEST_SESSION S, ITEM_POOL_VERSION I, TEST_DETAIL D
            ,INSTITUTION E
            WHERE  TRUNC(T.TEST_END_DATE) BETWEEN TO_DATE('01-11-09','dd-mm-yy') AND TO_DATE('30-11-09','dd-mm-yy')
            AND D.TEST_NAME =  'Reading Comprehension'
            AND T.TEST_SESSION_STATUS_ID = 3
            AND I.POOL_AVAILABILITY='Y'
            AND P.PRETEST=0 AND C.RESTART_FLAG=0
            AND T.TEST_DETAIL_ID = D.TEST_DETAIL_ID
            AND S.TEST_SESSION_ID = T.TEST_SESSION_ID
            AND C.TEST_SESSION_DETAIL_ID = T.TEST_SESSION_DETAIL_ID
            AND S.INSTITUTION_ID=E.INSTITUTION_ID
            AND SUBSTR(E.INSTITUTION_ID_DISPLAY,8,3) <> '000'
            AND I.ITEM_ID = C.ITEM_ID
            AND P.ITEM_ID = I.ITEM_ID;expln plan
    Plan hash value: 3712814491                                                                                                      
    | Id  | Operation                                 | Name                        | Rows  | Bytes | Cost (%CPU)| Time     | Pstart|
    Pstop |                                                                                                                          
    |   0 | SELECT STATEMENT                          |                             | 50857 |  7151K| 93382   (1)| 00:18:41 |       |
          |                                                                                                                          
    |*  1 |  FILTER                                   |                             |       |       |            |          |       |
          |                                                                                                                          
    |*  2 |   HASH JOIN                               |                             | 50857 |  7151K| 93382   (1)| 00:18:41 |       |
          |                                                                                                                          
    |   3 |    PARTITION HASH ALL                     |                             |  2312 | 23120 |    25   (0)| 00:00:01 |     1 |
        5 |                                                                                                                          
    |*  4 |     TABLE ACCESS FULL                     | CAT_ITEM_PARAMETER          |  2312 | 23120 |    25   (0)| 00:00:01 |     1 |
        5 |                                                                                                                          
    |*  5 |    HASH JOIN                              |                             | 94938 |    12M| 93356   (1)| 00:18:41 |       |
          |                                                                                                                          
    |*  6 |     TABLE ACCESS FULL                     | ITEM_POOL_VERSION           |  9036 |   132K|    30   (0)| 00:00:01 |       |
          |                                                                                                                          
    |*  7 |     TABLE ACCESS BY GLOBAL INDEX ROWID    | CAT_ITEM_USER_RESPONSE      |     9 |   279 |    18   (0)| 00:00:01 | ROWID |
    ROWID |                                                                                                                          
    |   8 |      NESTED LOOPS                         |                             | 45349 |  5270K| 93325   (1)| 00:18:40 |       |
          |                                                                                                                          
    |*  9 |       HASH JOIN                           |                             |  4923 |   423K| 11377   (1)| 00:02:17 |       |
          |                                                                                                                          
    |* 10 |        INDEX FAST FULL SCAN               | INSTI_ID_NAME_COUN_DISP_IDX |  8165 |   111K|    18   (0)| 00:00:01 |       |
          |                                                                                                                          
    |* 11 |        HASH JOIN                          |                             |  4923 |   355K| 11359   (1)| 00:02:17 |       |
          |                                                                                                                          
    |* 12 |         TABLE ACCESS BY GLOBAL INDEX ROWID| TEST_SESSION_DETAIL         |  4107 |   148K|  6804   (1)| 00:01:22 | ROWID |
    ROWID |                                                                                                                          
    |  13 |          NESTED LOOPS                     |                             |  4923 |   278K|  6806   (1)| 00:01:22 |       |
          |                                                                                                                          
    |* 14 |           INDEX RANGE SCAN                | TEST_DETAIL_AK_1            |     1 |    21 |     2   (0)| 00:00:01 |       |
          |                                                                                                                          
    |* 15 |           INDEX RANGE SCAN                | TEST_SESSION_DETAIL_FK2_I   | 39737 |       |   102   (0)| 00:00:02 |       |
          |                                                                                                                          
    |  16 |         PARTITION HASH ALL                |                             |  1672K|    25M|  4546   (1)| 00:00:55 |     1 |
        5 |                                                                                                                          
    |  17 |          TABLE ACCESS FULL                | TEST_SESSION                |  1672K|    25M|  4546   (1)| 00:00:55 |     1 |
        5 |                                                                                                                          
    |* 18 |       INDEX RANGE SCAN                    | CAT_ITEM_USER_RESP_IDX1     |    18 |       |     3   (0)| 00:00:01 |       |
          |                                                                                                                          
    Predicate Information (identified by operation id):                                                                              
       1 - filter(TO_DATE('01-11-09','dd-mm-yy')<=TO_DATE('30-11-09','dd-mm-yy'))                                                    
       2 - access("P"."ITEM_ID"="I"."ITEM_ID")                                                                                       
       4 - filter("P"."PRETEST"=0)                                                                                                   
       5 - access("I"."ITEM_ID"="C"."ITEM_ID")                                                                                       
       6 - filter("I"."POOL_AVAILABILITY"='Y')                                                                                       
       7 - filter(TO_NUMBER("C"."RESTART_FLAG")=0)                                                                                   
       9 - access("S"."INSTITUTION_ID"="E"."INSTITUTION_ID")                                                                         
      10 - filter(SUBSTR("E"."INSTITUTION_ID_DISPLAY",8,3)<>'000')                                                                   
      11 - access("S"."TEST_SESSION_ID"="T"."TEST_SESSION_ID")                                                                       
      12 - filter(TRUNC(INTERNAL_FUNCTION("T"."TEST_END_DATE"))>=TO_DATE('01-11-09','dd-mm-yy') AND "T"."TEST_SESSION_STATUS_ID"=3   
                  AND TRUNC(INTERNAL_FUNCTION("T"."TEST_END_DATE"))<=TO_DATE('30-11-09','dd-mm-yy'))                                 
      14 - access("D"."TEST_NAME"='Reading Comprehension')                                                                           
      15 - access("T"."TEST_DETAIL_ID"="D"."TEST_DETAIL_ID")                                                                         
      18 - access("C"."TEST_SESSION_DETAIL_ID"="T"."TEST_SESSION_DETAIL_ID")                                                         
    43 rows selected.Edited by: user575115 on Dec 18, 2009 12:31 AM

    When you see something like ...
       7 - filter(TO_NUMBER("C"."RESTART_FLAG")=0)                                                                                    It means that Oracle had to do a conversion for you since you aren't using the proper data type in your query.
    That would mean IF there is an index on that column, it won't be useable...

  • On my macbook pro when opening a page i can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success

    on my macbook pro when opening a page on safaryi can not save it as a pdf only give me the option of saving it as a web page can any body help me on this I have tryed so many times without success?

    Just select Print in Safari and then, in the bottom left-hand corner, select PDF and you can save it to whichever flavor pdf file you like.
    Clinton

  • Can someone pls help me with this code

    The method createScreen() creates the first screen wherein the user makes a selection if he wants all the data ,in a range or single data.The problem comes in when the user makes a selection of single.that then displays the singleScreen() method.Then the user has to input a key data like date or invoice no on the basis of which all the information for that set of data is selected.Now if the user inputs a wrong key that does not exist for the first time the program says invalid entry of data,after u click ok on the option pane it prompts him to enter the data again.But since then whenever the user inputs wrong data the program says wrong data but after displaying the singlescreen again does not wait for input from the user it again flashes the option pane with the invalid entry message.and this goes on doubling everytime the user inputs wrong data.the second wrong entry of data flashes the error message twice,the third wrong entry flashes the option pane message 4 times and so on.What actually happens is it does not wait at the singlescreen() for user to input data ,it straight goes into displaying the JOptionPane message for wrong data entry so we have to click the optiion pane twice,four times and so on.
    Can someone pls help me with this!!!!!!!!!
    import java.util.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.text.*;
    import java.util.*;
    public class MainMenu extends JFrame implements ActionListener,ItemListener{
    //class     
         FileReaderDemo1 fd=new FileReaderDemo1();
         FileReaderDemo1 fr;
         Swing1Win sw;
    //primary
         int monthkey=1,counter=0;
         boolean flag=false,splitflag=false;
         String selection,monthselection,dateselection="01",yearselection="00",s,searchcriteria="By Date",datekey,smonthkey,invoiceno;
    //arrays
         String singlesearcharray[];
         String[] monthlist={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"};
         String[] datelist=new String[31];
         String[] yearlist=new String[100];
         String[] searchlist={"By Date","By Invoiceno"};
    //collection
         Hashtable allinvoicesdata=new Hashtable();
         Vector data=new Vector();
         Enumeration keydata;
    //components
         JButton next=new JButton("NEXT>>");
         JComboBox month,date,year,search;
         JLabel bydate,byinvno,trial;
         JTextField yeartext,invtext;
         JPanel panel1,panel2,panel3,panel4;
         JRadioButton single,range,all;
         ButtonGroup group;
         JButton select=new JButton("SELECT");
    //frame and layout declarations
         JFrame jf;
         Container con;
         GridBagLayout gridbag=new GridBagLayout();
         GridBagConstraints gc=new GridBagConstraints();
    //constructor
         MainMenu(){
              jf=new JFrame();
              con=getContentPane();
              con.setLayout(null);
              fr=new FileReaderDemo1();
              createScreen();
              setSize(500,250);
              setLocation(250,250);
              setVisible(true);
    //This is thefirst screen displayed
         public void createScreen(){
              group=new ButtonGroup();
              single=new JRadioButton("SINGLE");
              range=new JRadioButton("RANGE");
              all=new JRadioButton("ALL");
              search=new JComboBox(searchlist);
              group.add(single);
              group.add(range);
              group.add(all);
              single.setBounds(100,50,100,20);
              search.setBounds(200,50,100,20);
              range.setBounds(100,90,100,20);
              all.setBounds(100,130,100,20);
              select.setBounds(200,200,100,20);
              con.add(single);
              con.add(search);
              con.add(range);
              con.add(all);
              con.add(select);
              search.setEnabled(false);
              single.addItemListener(this);
              search.addActionListener(new MyActionListener());     
              range.addItemListener(this);
              all.addItemListener(this);
              select.addActionListener(this);
         public class MyActionListener implements ActionListener{
              public void actionPerformed(ActionEvent a){
                   JComboBox cb=(JComboBox)a.getSource();
                   if(a.getSource().equals(month))
                        monthkey=((cb.getSelectedIndex())+1);
                   if(a.getSource().equals(date)){
                        dateselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(year))
                        yearselection=(String)cb.getSelectedItem();
                   if(a.getSource().equals(search)){
                        searchcriteria=(String)cb.getSelectedItem();
         public void itemStateChanged(ItemEvent ie){
              if(ie.getItem()==single){
                   selection="single";     
                   search.setEnabled(true);
              else if (ie.getItem()==all){
                   selection="all";
                   search.setEnabled(false);
              else if (ie.getItem()==range){
                   search.setEnabled(false);
         public void actionPerformed(ActionEvent ae){          
              if(ae.getSource().equals(select))
                        if(selection.equals("single")){
                             singleScreen();
                        if(selection.equals("all"))
                             sw=new Swing1Win();
              if(ae.getSource().equals(next)){
                   if(monthkey<9)
                        smonthkey="0"+monthkey;
                   System.out.println(smonthkey+"/"+dateselection+"/"+yearselection+"it prints this");
                   allinvoicesdata=fr.read(searchcriteria);
                   if (searchcriteria.equals("By Date")){
                        System.out.println("it goes in this");
                        singleinvoice(smonthkey+"/"+dateselection+"/"+yearselection);
                   else if (searchcriteria.equals("By Invoiceno")){
                        invoiceno=invtext.getText();
                        singleinvoice(invoiceno);
                   if (flag == false){
                        System.out.println("flag is false");
                        singleScreen();
                   else{
                   System.out.println("its in here");
                   singlesearcharray=new String[data.size()];
                   data.copyInto(singlesearcharray);
                   sw=new Swing1Win(singlesearcharray);
         public void singleinvoice(String searchdata){
              keydata=allinvoicesdata.keys();
              while(keydata.hasMoreElements()){
                        s=(String)keydata.nextElement();
                        if(s.equals(searchdata)){
                             System.out.println(s);
                             flag=true;
                             break;
              if (flag==true){
                   System.out.println("vector found");
                   System.exit(0);
                   data= ((Vector)(allinvoicesdata.get(s)));
              else{
                   JOptionPane.showMessageDialog(jf,"Invalid entry of date : choose again");     
         public void singleScreen(){
              System.out.println("its at the start");
              con.removeAll();
              SwingUtilities.updateComponentTreeUI(con);
              con.setLayout(null);
              counter=0;
              panel2=new JPanel(gridbag);
              bydate=new JLabel("By Date : ");
              byinvno=new JLabel("By Invoice No : ");
              dateComboBox();
              invtext=new JTextField(6);
              gc.gridx=0;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(month,gc);
              panel2.add(month);
              gc.gridx=1;
              gc.gridy=0;
              gridbag.setConstraints(date,gc);
              panel2.add(date);
              gc.gridx=2;
              gc.gridy=0;
              gc.gridwidth=1;
              gridbag.setConstraints(year,gc);
              panel2.add(year);
              bydate.setBounds(100,30,60,20);
              con.add(bydate);
              panel2.setBounds(170,30,200,30);
              con.add(panel2);
              byinvno.setBounds(100,70,100,20);
              invtext.setBounds(200,70,50,20);
              con.add(byinvno);
              con.add(invtext);
              next.setBounds(300,200,100,20);
              con.add(next);
              if (searchcriteria.equals("By Invoiceno")){
                   month.setEnabled(false);
                   date.setEnabled(false);
                   year.setEnabled(false);
              else if(searchcriteria.equals("By Date")){
                   byinvno.setEnabled(false);
                   invtext.setEnabled(false);
              monthkey=1;
              dateselection="01";
              yearselection="00";
              month.addActionListener(new MyActionListener());
              date.addActionListener(new MyActionListener());
              year.addActionListener(new MyActionListener());
              next.addActionListener(this);
              invtext.addKeyListener(new KeyAdapter(){
                   public void keyTyped(KeyEvent ke){
                        char c=ke.getKeyChar();
                        if ((c == KeyEvent.VK_BACK_SPACE) ||(c == KeyEvent.VK_DELETE)){
                             System.out.println(counter+"before");
                             counter--;               
                             System.out.println(counter+"after");
                        else
                             counter++;
                        if(counter>6){
                             System.out.println(counter);
                             counter--;
                             ke.consume();
                        else                    
                        if(!((Character.isDigit(c) || (c == KeyEvent.VK_BACK_SPACE) || (c == KeyEvent.VK_DELETE)))){
                             getToolkit().beep();
                             counter--;     
                             JOptionPane.showMessageDialog(null,"please enter numerical value");
                             ke.consume();
              System.out.println("its at the end");
         public void dateComboBox(){          
              for (int counter=0,day=01;day<=31;counter++,day++)
                   if(day<=9)
                        datelist[counter]="0"+String.valueOf(day);
                   else
                        datelist[counter]=String.valueOf(day);
              for(int counter=0,yr=00;yr<=99;yr++,counter++)
                   if(yr<=9)
                        yearlist[counter]="0"+String.valueOf(yr);
                   else
                        yearlist[counter]=String.valueOf(yr);
              month=new JComboBox(monthlist);
              date=new JComboBox(datelist);
              year=new JComboBox(yearlist);
         public static void main(String[] args){
              MainMenu mm=new MainMenu();
         public class WindowHandler extends WindowAdapter{
              public void windowClosing(WindowEvent we){
                   jf.dispose();
                   System.exit(0);
    }     

    Hi,
    I had a similar problem with a message dialog. Don't know if it is a bug, I was in a hurry and had no time to search the bug database... I found a solution by using keyPressed() and keyReleased() instead of keyTyped():
       private boolean pressed = false;
       public void keyPressed(KeyEvent e) {
          pressed = true;
       public void keyReleased(KeyEvent e) {
          if (!pressed) {
             e.consume();
             return;
          // Here you can test whatever key you want
       //...I don't know if it will help you, but it worked for me.
    Regards.

  • Hello, i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    hello,
    i restored and updated my iphone 4 to the latest version of 5.1.1 and after that when i connect my mobile to i tunes all i see is a big rectangle and a apple logo on left and a small lock on right side please help me fix this problem.

    I sloved this issue by resting my phone from settings>general>reset>reset all settings...the problem will be fixed

  • My ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend

    my ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend

    I have not seen a solution for error (1)
    make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

Maybe you are looking for

  • Microphone no longer working after update to 10.3.1

    Hi, I  am having exactly the same problem with the microphone on a brand new blackberry Z30. I saw at least 3 threads opened regarding this issue. Looks like a common problem. When i switch bluetooth headset or plugin headset or Speaker it works fine

  • Downloading pdf files with firefox 6.0.2 doesn't always work but pdf files do download with IE

    for example the home page for the web site kerrville.org has several items to download and most are pdf files using firefox version 6.0.2 the download seems to start but never completes . If I use IE version 8 at the same web site I'm able to downloa

  • Select Query issue. a% and A % both should work.

    hi, I have to selet records from database table based on local variable values. Loal variable - Lv. If lv = 'a*' then i have to select all records which starts with a. I have Replaced all occurences of *  with % and then  i have used a select query :

  • Why am in not getting a picture in LabVIEW?

    The problem that I am having is that I get a picture in MAX but I do not get a picture in LabVIEW. I can't even get any information comming in on the U8 pixel readout. Nothing seems to come in. I don't know why. I have a KLI-2113 Tri-linear image sen

  • Installing  64-bit ODAC 11.2 Release 3 (11.2.0.2.1) for Windows x64

    Dear all; I just downloaded 64-bit ODAC 11.2 Release 3 (11.2.0.2.1) for Windows x64 on my local pc...I am trying to run the install.bat after unzipping the file however, the black pop-up window comes up and disappears almost immediately. Does anyone