Jesiinclude example written bx Srikanth

i could compile/start the example inside Oracle Jdeveloper 9.0.4 without any problems !
after the deployment to Oracle 9.0.3 AS the first page will be displayed followed by the ERROR Message:
500 Internal Server Error
java.lang.NoSuchMethodError
     at oracle.jsp.webutil.jesi.tagext.ParamTag.doStartTag(ParamTag.java:115)
     at empdetails.jspService(_empdetails.java:80)
     [SRC:/empdetails.jsp:84]
     at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
     at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:537)
     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:272)
     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:560)
     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:148)
     at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:72)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
     at java.lang.Thread.run(Thread.java:479)
thanks for help
hans martin

Declare all the data you use inside form STARTUP at the top.  It's really bad practice to define it in the middle of your logic.  Use a SORTED table rather than a standard.
TYPES: BEGIN OF t_b05_o00200_ty,
             h_callnr LIKE /bic/ab05_o00200-/bic/bcallnr,
             h_callsts LIKE /bic/ab05_o00200-/bic/bcallsts,
             h_sdate LIKE /bic/ab05_o00200-/bic/bstatd,
             h_stime LIKE /bic/ab05_o00200-/bic/bstatt,
  END OF t_b05_o00200.
  DATA: t_b05_o00200 TYPE SORTED TABLE OF z_b05_o00200_ty WITH NON-UNIQUE KEY h_callnr h_callsts
    READ TABLE t_b05_o00200 WITH TABLE KEY h_callnr = data_package-/bic/bcallnr
                                           h_callsts = 'OPEN'
                                           ASSIGNING <sla_record>.
    READ TABLE t_b05_o00200 WITH TABLE KEY h_callnr = data_package-/bic/bcallnr
                                          h_callsts = 'WORK IN PROGRESS'
                                          ASSIGNING <sla_record>.
If you KNOW that the key h_callnr and h_callsts is UNIQUE, then define the table as
  DATA: t_b05_o00200 TYPE HASHED TABLE OF z_b05_o00200_ty WITH UNIQUE KEY h_callnr h_callsts
  The other code remains as above.  This will give the biggest performance hike.
Please learn to use the  tags to make your code readable.  And also, offering points is against the rules of these forums.
matt

Similar Messages

  • How to use Transport Delay VI? Please show me some example.

    I want to delay signal with my selection delay time(example:second,period,number of sample). I saw in LabVIEW have,it have three delay function are 1.Transport Delay 2.Delay Value 3.Unit Delay .Now I take look for Transport Delay VI.I think this function can delay signal with specific time which I want.I tested it by use it to delay sine wavefrom(number of sample=1000,sampling rate =1000Hz),for Transport Delay,I set initize=TRUE,Delay=500. I think the result may sine waveform which same shape of original sine waveform but delay 500 sample after it but the result different from my think. Everyone please recommend me,How to use it?Show me some example.Or please tell me how to delay signal.If can not post picture on the board,mail to me.
    [email protected]
    [email protected]

    Hi TOTSAPORN!
    It sounds like you are trying to alter the timing of a waveform. What I would suggest to you is to look at the Waveform palette to explore the different ways of manipulating the waveform datatype. Also, I put together a small example (written in LV 7.1) to delay the waveform graph by 500 samples (500*dt seconds).
    Hope this helps!
    Travis H.
    National Instruments
    Travis H.
    LabVIEW R&D
    National Instruments
    Attachments:
    Waveform Offset.vi ‏64 KB

  • "Symbol Undefined" error when trying to compile GPIB examples

    I'm trying to compile the examples written in C that are given in the folder \VXIPNP\WinNT\NIvisa\Examples\C\Gpib. Using a standard ANSI C compiler, I get the following error messages:
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viClose@4
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viTerminate@12
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viReadAsync@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viWrite@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viEnableEvent@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viInstallHandler@16
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viOpen@20
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viOpenDefaultRM@
    4
    AsyncIO.obj(AsyncIO)
    Error 42: Symbol Undefined _viGetAttribute@12
    --- errorlevel 9
    Any help is appreciated.

    Hi esi_stents,
    The compiler is complaining here because it can't find the correct library file to link to. Therefore, each of the above errors are function calls that the compiler does not have a prototype for.
    The library file you want to make sure to link to is visa32.lib. The path for this library file differs slightly based on what compiler you are using:
    Borland: C:\VXIPNP\WinNT\lib\bc
    Microsoft: C:\VXIPNP\WinNT\lib\msc
    Then follow the instructions for your compiler on how to set up links to a library.
    Now the compiler should stop complaining at you and you're good to go! Have fun!
    Kileen Cheng
    Applications Engineer
    National Instruments

  • Want a simple but complete example of JavaFX.

    Hey, I want a complete but very simple example written in JFX. If it is written in step-by-step way then it will be better. (Without NetBeans will be preferred). Thanx in advance. Any suggestion will be welcomed. New to JFX.

    println("Hello World!");or
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.text.Text;
    import javafx.scene.text.Font;
    Stage {
        title: "My App"
        width: 250
        height: 80
        scene: Scene {
            content: Text {
                x: 10, y: 30
                font : Font { size : 24 }
                content: "Hello World!"
    }

  • JS metadata CS3 & CS2

    I have a script in CS3 that writes to the documents meta data using:
    myDocument.metadataPreferences.setProperty("http://ns.adobe.com/pdfx/1.3/", "myTitle", myTitle);
    This works fine in CS3 but does not work in CS2.
    if I try:
    app.activeDocument.metadataPreferences.setProperty("http://ns.adobe.com/pdfx/1.3/", "myTitle", "myTitle");
    In the console of ExtendScritp Toolkit I get:
    Result: undefined
    I need to make a CS2 version of this script so if anyone has any suggestions it would be greatly appreciated.

    Looking to CS2 & CS3 rererences, the way to define Metadatapreferences is the same.
    MetadataPreference.setProperty (namespace:string, path:string, value:string)
    so it's quite weird.
    Here is a example written by Olav,
    Maybe you can watch for info in it :
    //MetadataExample.jsx
    //An InDesign CS2 JavaScript
    //Adds metadata to an example document.
    var myDocument = app.documents.add();
    with (myDocument.metadataPreferences){
    author = "Olav Martin Kvern";
    copyrightInfoURL = "http://www.adobe.com";
    copyrightNotice = "This document is copyrighted.";
    copyrightStatus = CopyrightStatus.yes;
    description = "Example of xmp metadata scripting in InDesign CS";
    documentTitle = "XMP Example";
    jobName = "XMP_Example_2003";
    keywords = ["animal", "mineral", "vegetable"];
    //The metadata preferences object also includes the read-only
    //creator, format, creationDate, modificationDate, and serverURL
    //properties that are automatically entered and maintained by InDesign.
    //Create a custom XMP container, "email"
    var myNewContainer = createContainerItem("http://ns.adobe.com/xap/1.0/", "email");
    setProperty("http://ns.adobe.com/xap/1.0/", "email/*[1]", "[email protected]");
    Loic

  • Help in Moving Average Query

    Hello,
    I would like to have a query for finding moving average. based on some conditions.
    I have written query as follows:
    SELECT Column1,
    MONTH_END_DATE,
    (AVG(sum(Col2 *(case when (Col3 ='XYZ') then 1 else 0 end)))OVER (PARTITION BY Column1 ORDER BY MONTH_END_DATE ROWS 5 PRECEDING)) AS AVG_XYZ,
    sum(Col2 *(case when (Col3 ='XYZ') then 1 else 0 end)) as Cumm_XYZ
    FROM
    Table_cd
    WHERE
    Column1 ='1234567'
    GROUP BY Column1, MONTH_END_DATE.
    My problem is if there are no data in a month, then the average calculated will vary from the required.
    For Eg., If i have to find the average of months between JULY and DECEMBER and if the table doesnt have data in the month of OCTOBER, NOVEMBER then while finding the average it will consider only 4 Months instead of 6 Months..So is it possible to write query such that if there are no data in a month then consider the values for that month as zero and then find the average..
    If anybody can help me in this regard, it will be very useful

    Mr.BluShadow if u can just show me how i can find
    average for the values returned by the example
    written by you, it would be very helpful..Obviously the hint wasn't enough... here's another...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select to_date('01/07/2007','DD/MM/YYYY') as dt, 1 as val from dual union all
      2             select to_date('02/07/2007','DD/MM/YYYY'), 2 from dual union all
      3             select to_date('03/07/2007','DD/MM/YYYY'), 3 from dual union all
      4             select to_date('04/07/2007','DD/MM/YYYY'), 4 from dual union all
      5             select to_date('01/08/2007','DD/MM/YYYY'), 5 from dual union all
      6             select to_date('02/08/2007','DD/MM/YYYY'), 6 from dual union all
      7             select to_date('03/08/2007','DD/MM/YYYY'), 7 from dual union all
      8             select to_date('01/09/2007','DD/MM/YYYY'), 8 from dual union all
      9             select to_date('02/09/2007','DD/MM/YYYY'), 9 from dual union all
    10             select to_date('03/09/2007','DD/MM/YYYY'), 10 from dual union all
    11             select to_date('01/12/2007','DD/MM/YYYY'), 11 from dual union all
    12             select to_date('02/12/2007','DD/MM/YYYY'), 12 from dual union all
    13             select to_date('03/12/2007','DD/MM/YYYY'), 13 from dual union all
    14             select to_date('04/12/2007','DD/MM/YYYY'), 14 from dual
    15            )
    16  --
    17  select m.dt, AVG(NVL(t.val,0)) as val
    18  from t, (select add_months(to_date('01/07/2007', 'DD/MM/YYYY'),rownum-1) as dt from dual connect by rownum <= 6) m
    19  where m.dt = trunc(t.dt(+),'MM')
    20  group by m.dt
    21* order by dt
    SQL> /
    DT               VAL
    01-JUL-07        2.5
    01-AUG-07          6
    01-SEP-07          9
    01-OCT-07          0
    01-NOV-07          0
    01-DEC-07       12.5
    6 rows selected.
    SQL>

  • Better way to communicte with TwinCAT

    Hi to everyone,
    i have to control a servovalve (MOOG) in etherCAT using TwinCAT and LabView. So i have to set ControlWord and Pressure Setpont from LabView to TwinCAT.
    Can you say me what is the better way to make this? ActiveX or DLL. And are there other examples in add to bechoff site examples? Or documentations
    Thank you very much in advances
    Mauro Rivosecchi

    I'm not sure you can say that either ActiveX or DLLs are better than the other. Personally I prefer to work with ActiveX because the APIs tend to be better. But at the end of the day, you use what you get from the vendor.
    In terms of code samples, there is a level of personal preference here as well. When working with something new, I like to see examples written in VB because I find it easy to read and grasp what it is that code is doing. In terms of sources for example code, you should check to see if the other vendor has user forums. It's unlikely that you will find another LV user, but you might be able to get snippets of code in some other language that illustrate how to do specific things.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • JSPs and calling a DB function/procedure

    I looked at an example written by Oracle and I saw that they put in the <form> tag (in a JSP) an "action" that is really a name of a DB procedure. It was in the form of:
    schemaName.packageName.procedureName
    First: I've tried to do that myself -- just create simple HTML page, have an <input> with the "type" of "text", and in the <form>'s action put the procedure's full 'path' name. Did not work. Am I missing anything? What's the right way to do it?
    What I see in the browser's URL is:
    "http://serverName:portNum/.../pls/portal30/PORTAL30.MYPACKAGE.MYPROCEDURE?" But I see an empty page.
    Second: looking at the actual procedure body of the example, I saw that the procedure's parameters are given the same exact name as the names of the <input>'s in the JSP page. Like:
    <input type="text" name="txtFirstName">
    and in the procedure:
    someProcedureName(txtFirstName integer)
    Is that the way to pass parameters to a DB procedure? (by using the same name)
    Third: Can I call a DB function from a JSP's <form>'s "action" and get the return value somehow? Meaning, I want to know whether the function's operation was successful and no exceptions were thrown. And if there were some exceptions thrown, I want to let the user know somehow.... How?
    A lot of questions, I know, but I still gotta know... :-)
    Thanks!
    Dan

    Dan,
    Sorry for the late answer, hope it's not too late yet.
    1) If you make your DB procudures accessible from a plain browser, you can obviously define that URL as an html form action. Make sure that your procedures are accessible when typing in the URL in your browser. You need to check whether you have privileges to access the procedure, and the DAD settings too.How do I make my DB procedures accessible from a plain browser?
    Is just making a "GRANT" to that procedure to that user enough? And what do I need to do with the DAD?
    Is the "?" question mark in your URL, or has it been added by the forum only? You don't need it as long as you don't want to pass parameters.Question mark was added by the browser..
    3) I'd probably do it through passing the error code to the JSP as a parameter. You find information about reading parameters in the PDK. Yes, but how do I pass it BACK to the browser? I do know how to pass parameters to a "regular" JSP (one that has nothing to do with the portal). But this one involves the DB -- how do I tell my DB function to send an "answer" back to the browser? It would send the function's return value straight to the browser because the browser was the thing that called it in the first place?
    Dan

  • How to move a numeric display

    Id like to know if there any way to move a numeric indicator/(or similar) around the screen to different x,y co-ordinates whilst the program is running,
    labview 6.1, window 2000 and xp

    Here's an example written in the older 6.0.2 version for those that can't open alberto's excellent example. I'm assuming it's excellent, I can't open it.
    Richard
    Attachments:
    MoveMe.vi ‏25 KB

  • How use an ESP motion controller to drive an actuator by using Labview program?

    Our group bought a Universal Motion Conroller/Driver from Newport company and
    its model is ESP 300. Right now, I am going to use it remotely and I want
    to use Labview to compile the driving program. My thought is to move an
    actuator step by step in x-axis and the length of step moving is 2cm.
    After moving 40cm on x-axis from the beginning to the end, I will move the
    actuator one step on y-axis. Then I moving from the beginning to the end
    on x-axis again. I wonder whether somebody has such a labview program
    or not. Or, has anybody other sample Labview programs for the
    controller to control the moving? Can you provide them to me?
    Thanks a lot.
    Huili Wang

    Hello,
    There are several examples written in LabVIEW to do what you are trying to do but they will only work with National Instruments motion controllers, as they use driver specific VIs. In order to use your controller with LabVIEW you'll need a shared library of some sort. Once you have this library you can program your controller in LabVIEW by making function calls referencing to its shared library. See built-in LabVIEW examples for 'Using External Code'.
    I hope this helps. Let me know if you decide to go with one of National Instruments motion controllers instead and need help finding those examples I was referencing above.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • SQL query using not equal to or not exists

    Hi All;
    From the  below table , i need to display the client name 
    where output is not equal to Pre Start, BA
    but display client with output only with SOSP
    so only in the below example DEF client name will be displayed
    below is my query
    select C.new_applicationformid,
    C.clientname ,
    C.new_noofappointments
    From (
    Select A.new_applicationformid ,A.new_programmecontractidname,Count(1) As Cnt
    from FilteredNew_applicationform as a
    full outer join filteredNew_Evidence as aa on (a.new_applicationformid = aa.new_relatedapplicationid)
    Group By A.new_applicationformid ,A.new_programmecontractidname
    Having Count(1) >= 1) A
    Inner Join filteredNew_Evidence AA on a.new_applicationformid = aa.new_relatedapplicationid
    Inner Join FilteredNew_applicationform C on C.new_applicationformid = aa.new_relatedapplicationid
    Where ((aa.output in ('SOSP'))
    and (aa.output not in ('Pre Start','BA') )
    Any help much appreciated
    Thanks
    Pradnya07

    See examples written by Joe Celko to help you out
    CREATE TABLE PilotSkills 
    (pilot CHAR(15) NOT NULL, 
     plane CHAR(15) NOT NULL, 
     PRIMARY KEY (pilot, plane));
    PilotSkills 
    pilot    plane 
    =========================
    'Celko'    'Piper Cub'
    'Higgins'  'B-52 Bomber'
    'Higgins'  'F-14 Fighter'
    'Higgins'  'Piper Cub'
    'Jones'    'B-52 Bomber'
    'Jones'    'F-14 Fighter'
    'Smith'    'B-1 Bomber'
    'Smith'    'B-52 Bomber'
    'Smith'    'F-14 Fighter'
    'Wilson'   'B-1 Bomber'
    'Wilson'   'B-52 Bomber'
    'Wilson'   'F-14 Fighter'
    'Wilson'   'F-17 Fighter'
    CREATE TABLE Hangar
    (plane CHAR(15) NOT NULL PRIMARY KEY);
    Hangar
    plane 
    =============
    'B-1 Bomber'
    'B-52 Bomber'
    'F-14 Fighter'
    PilotSkills DIVIDED BY Hangar
    pilot
    =============================
    'Smith'
    'Wilson'
    SELECT DISTINCT pilot  
      FROM PilotSkills AS PS1
     WHERE NOT EXISTS 
           (SELECT *
              FROM Hangar
             WHERE NOT EXISTS 
                   (SELECT *
                      FROM PilotSkills AS PS2
                     WHERE (PS1.pilot = PS2.pilot)
                       AND (PS2.plane = Hangar.plane)));
    SELECT PS1.pilot 
       FROM PilotSkills AS PS1, Hangar AS H1
      WHERE PS1.plane = H1.plane
      GROUP BY PS1.pilot 
     HAVING COUNT(PS1.plane) = (SELECT COUNT(plane) FROM Hangar);
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Creating variables using set()

    Does the set() function for dynamically creating variables
    have a substitute in AS3?
    This is a generic example written in AS2:

    You're welcome. Until your posting, I didn't know there was
    such a thing as set, so as often happens, I learn new things here.
    My approach normally would have been along the lines of the = one.
    If you're ever wondering about other changes, in the AS3 help
    docs you can search on "Migration" and one of the few choices there
    is titled as such wrt AS2. It tabulates the status of most of the
    AS2 code elements and identifies alternatives for AS3 when
    applicable.
    Also, there's this offering you might find useful...
    http://www.actionscriptcheatsheet.com/downloads/as3cs_migration.pdf

  • Accessing Sequence FIle information

    I want to programmatically access a sequence file's information (sub-steps & sub-sequences) prior to actually loading the sequence. I.e. I’m trying to make a stand alone GUI that allows me to select a sequence file and which sub sequence of that file I want to run at a later time.  In C# I declare a sequence: NationalInstruments.TestStand.Interop.API.Sequence seq; But Sequence in an abstract class so I can’t directly create an instance of it. Ditto that for a NationalInstruments.TestStand.Interop.API.SequenceFile.  Anyone know if this can be done and how to do so?  

    Hello John 242424,
    Thank you for posting on the NI Discussion Forums.  Attached is an example written in C#.NET 2008 which takes in a sequence file (chosen by the user) and then retrieves the names of its sequences, and steps within those sequences upon the click of another button.  The key methods it uses are the SequenceFile.GetSequence( ) and Sequence.GetStep( ) methods.  You will notice that Sequence.GetStep( ) currently only returns the steps in the Main step group.  If you wish to find the steps in Setup and Cleanup, you will have to add this functionality.
    Chris_G
    Sr Test Engineer
    Medtronic, Inc.
    Attachments:
    TestStand1.zip ‏46 KB

  • Dicom image files in labview

    hello everybody,
                           I want t view dicom image files in labview, i tried downloading dicom sdk's of activex, then i tried to import Dcsdk through tools palette,which i couldnt do it. Can anyone please tell me the way to proceed. I have dicom software installed in my pc and i  also have some dicom image files.

    Hi,
    I would like to suggest you to go through the forum post where you can find the link for the DICOM code example written in Labview.
    Kind regards
    Marek S.

  • In single Jtable colum can have Textfield as well as Combobox

    Hi guys
    My requirement is I want comboboxes in some rows and textfield in some rows of SAME column. I searched lot on net but everywhere I found solution for setting editor as well as renderer for ENTIRE column.
    I hope you guys understand my problem. Please reply ASAP as I want to implement urgently in my project.
    thanks n Regards
    Sunil

    Below is the code written by Nobuo Tamemasa.
    Think it will give you some hints on how to do it.
    Try searching for "Nobuo Tamemasa" in any search engine,
    if I not wrong there are also example written by him on different component in a single column.
    Hope this help.
    // File: EachRowEditorExample.java
    /* (swing1.1beta3) */
    //package jp.gr.java_conf.tame.swing.examples;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import jp.gr.java_conf.tame.swing.table.*;
    * @version 1.0 11/09/98
    public class EachRowEditorExample extends JFrame {
      public EachRowEditorExample(){
        super("EachRow Editor Example");
        DefaultTableModel dm = new DefaultTableModel();
        dm.setDataVector(
          new Object[][]{{"Name"  ,"MyName"},
                         {"Gender","Male"}},
          new Object[]{"Column1","Column2"});
        JTable table = new JTable(dm);
        JComboBox comboBox = new JComboBox();
        comboBox.addItem("Male");
        comboBox.addItem("Female");
        EachRowEditor rowEditor = new EachRowEditor();
        rowEditor.add(1, new DefaultCellEditor(comboBox));
        table.getColumn("Column2").setCellEditor(rowEditor);
        JScrollPane scroll = new JScrollPane(table);
        getContentPane().add( scroll );
        setSize( 400, 100 );
        setVisible(true);
      public static void main(String[] args) {
        EachRowEditorExample frame = new EachRowEditorExample();
        frame.addWindowListener( new WindowAdapter() {
          public void windowClosing( WindowEvent e ) {
            System.exit(0);
    // File: EachRowEditor.java
    * (swing1.1beta3) jfc#91
    package jp.gr.java_conf.tame.swing.table;
    import java.util.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
      * each row TableCellEditor
      * @version 1.0 10/20/98
      * @author Nobuo Tamemasa
    public class EachRowEditor implements TableCellEditor {
      protected Hashtable editors;
      protected TableCellEditor editor, defaultEditor;
       * Constructs a EachRowEditor.
       * create default editor
       * @see TableCellEditor
       * @see DefaultCellEditor
      public EachRowEditor() {
        editors = new Hashtable();
        defaultEditor = new DefaultCellEditor(new JTextField());
       * @param row    table row
       * @param editor table cell editor
      public void add(int row, TableCellEditor editor) {
        editors.put(new Integer(row),editor);
      public Component getTableCellEditorComponent(JTable table,
          Object value, boolean isSelected, int row, int column) {
        editor = (TableCellEditor)editors.get(new Integer(row));
        if (editor == null) {
          editor = defaultEditor;
        return editor.getTableCellEditorComponent(table,
                 value, isSelected, row, column);
      public Object getCellEditorValue() {
        return editor.getCellEditorValue();
      public boolean stopCellEditing() {
        return editor.stopCellEditing();
      public void cancelCellEditing() {
        editor.cancelCellEditing();
      public boolean isCellEditable(EventObject anEvent) {
        return editor.isCellEditable(anEvent);
      public void addCellEditorListener(CellEditorListener l) {
        editor.addCellEditorListener(l);
      public void removeCellEditorListener(CellEditorListener l) {
        editor.removeCellEditorListener(l);
      public boolean shouldSelectCell(EventObject anEvent) {
        return editor.shouldSelectCell(anEvent);
    }

Maybe you are looking for

  • Can you help with rematching file names

    After a computer crash needed to reload my library. When doing this I accidently clicked the option to add track numbers to song names. Later I was able to locate my iTunes XML from my old PC, however many of the songs (5000 out of 6000) no don't mat

  • How to clear apache in a MacbookPro

    One month ago, I bought the Lion Server. I accidentally added an account let's say example.com, not remembering that I already registed the same domin name on web and hosted by another company. Since then, I cannot access the webmail and webpage on w

  • Invoice Document allowed in FCH5

    Hi I went to FCH5 for creating manual check. By-mistake, i entered vendor invoice document number (created in TCode FB60). System didn't checked anything and it allowed me to create check information. Because of this, users are creating check and mak

  • How do i count the rows??

    hello, i have a database from where I import a table. now, because of my data-structure i need to know the nubmers of row in my table. For that i don't want to use the sql-statement: select count(*) .... but instead I want to use a java JDBC function

  • How do I view all the files on my start up disk?

    I'm trying to clean my startup disk. Ive deleted my history/downloads but Ive noticed that isnt enough space. So I wanted to see a list of all the items on my disk.