How to execute the method of a class loaded

Hi,
I have to execute the method of com.common.helper.EANCRatingHelper" + version
version may be 1,2, etc
if version = 1 the class is com.common.helper.EANCRatingHelper1;
Iam able to load the class using following code.But iam unable to execute the method of the above class
Can anybody help me how to execute the method of the class loaded.
Following is the code
String version = getHelperClassVersion(requestDate);
String helperClass = "com.redroller.common.carriers.eanc.helper.EANCRatingHelper" + version;
Class eancRatingHelper = Class.forName(helperClass);
eancRatingHelper.newInstance();
eancRatingHelper.saveRating(); This is not executing throwing an error no method.
Thanks

eancRatingHelper.newInstance();Ok, that creates an instance, but you just threw it away. You need to save the return of that.
Object helper = eancRatingHelper.newInstance();
eancRatingHelper.saveRating(); This is not executing throwing an error no method.Of course. eancRatingHelper is a Class object, not an instance of your EANCRatingHelper object. The "helper" object I created above is (though it is only of type "Object" right now) -- you have to cast it to the desired class, and then call the method on that.
Hopefully EANCRatingHelper1 and 2 share a common interface, or you're up the creek.

Similar Messages

  • How to execute a method when page is loaded

    hi ,
    I have a custom method in backing bean of a .jspx page. I want to execute it by default when the .jspx page is loaded.can anyone say how to do it?

    Hi,
    depends on what this is doing: You can call it in a PhaseListener, or from the page using a EL reference (e.g. output textfield that shows empty) or by customizing the ADF pagelifecyce.
    You may want to have a look at
    http://thepeninsulasedge.com/frank_nimphius/2007/08/09/jsf-hook-into-the-javaserver-faces-page-load/
    Frank

  • How to access a method of a class which just known class name as String

    Hi,
    Now I have several class and I want to access the method of these class. But what I have is a String which contain the complete name of the class.
    For example, I have two class name class1and class2, there are method getValue in each class. Now I have a String containing one class name of these two class. I want to access the method and get the return value.
    How could I do?
    With Class.forName().newInstance I can get a Object. but it doesn't help to access and execute the method I want .
    Could anybody help me?
    Thanks

    Or, if Class1 and Class2 have a common parent class or interface (and they should if you're handling them the same way in the same codepath)...Class c = Class.forName("ClassName");
    Object o = c.newInstance(); // assumes there's a public no-arg constructor
    ParentClassOrInterface pcoi = (ParentClassOrInterface)o;
    Something result = pcoi.someMethod(); Or, if you're on 5.0, I think generics let you do it this way: Class<ParentClassOrInterface> c = Class.forName("ClassName");
    // or maybe
    Class<C extends ParentClassOrInterface> c = Class.forName("ClassName");
    ParentClassOrInterface pcoi = c.newInstance();
    Something result = pcoi.someMethod();

  • How to call a method of another class ?

    Hello,
    I�d like to know how to call a method of another class. I have to classes (class 1 and class 2), class 1 instantiates an object of class 2 and executes the rest of the method. Later, class 1 has to call a method of class 2, sending a message to do something in the object... Does anybody know how to do that ? Do I have to use interface ? Could you please help me ?
    Thanks.
    Bruno.

    Hi Schiller,
    The codes are the following:
    COMECO
    import javax.swing.UIManager;
    import java.awt.*;
    import java.net.*;
    import java.io.*;
    import java.awt.event.*;
    import javax.swing.*;
    //Main method
    class comeco {
    public static void main(String[] args) {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    AGORA testeagora=new AGORA();
    // Code for socket
    int port;
         ServerSocket server_socket;
         BufferedReader input;
         try {
         port = Integer.parseInt(args[0]);
         catch (Exception e) {
         System.out.println("comeco ---> port = 1500 (default)");
         port = 1500;
         try {
         server_socket = new ServerSocket(port);
         System.out.println("comeco ---> Server waiting for client on port " +
                   server_socket.getLocalPort());
         // server infinite loop
         while(true) {
              Socket socket = server_socket.accept();
              System.out.println("comeco ---> New connection accepted " +
                        socket.getInetAddress() +
                        ":" + socket.getPort());
              input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
              // print received data
              try {
              while(true) {
                   String message = input.readLine();
                   if (message==null) break;
                   System.out.println("comeco ---> " + message);
    testeagora.teste(message);
              catch (IOException e) {
              System.out.println(e);
              // connection closed by client
              try {
              socket.close();
              System.out.println("Connection closed by client");
              catch (IOException e) {
              System.out.println(e);
         catch (IOException e) {
         System.out.println(e);
    AGORA
    import javax.swing.UIManager;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import javax.swing.*;
    import java.net.*;
    //public class AGORA {
    public class AGORA {
    boolean packFrame = false;
    //Construct the application
    public AGORA() {
    try {
    Main frame = new Main();
    System.out.println("agora ---> Criou o frame");
    //Validate frames that have preset sizes
    //Pack frames that have useful preferred size info, e.g. from their layout
    if (packFrame)
    frame.pack();
    else
    frame.validate();
    //Center the window
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height)
    frameSize.height = screenSize.height;
    if (frameSize.width > screenSize.width)
    frameSize.width = screenSize.width;
    frame.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    frame.setVisible(true);
    catch(Exception e)
    { System.out.println("agora ---> " +e);
    // Tem que criar a THREAD e ver se funciona
    public void remontar (final String msg) {
    try {
                   System.out.println("agora ---> Passou pelo Runnable");
    System.out.println("agora --> Mensagem que veio do comeco para agora: "+ msg);
    Main.acao(msg);
    catch(Exception x) {
    x.printStackTrace();
    MAIN
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import com.borland.jbcl.layout.*;
    import javax.swing.border.*;
    import java.net.*;
    import java.io.*;
    public class Main extends JFrame {
    // ALL THE CODE OF THE INTERFACE
    //Construct the frame
    public Main() {
    enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    public void acao() {
    // C�digo para mudar a interface
    Runnable setTextRun=new Runnable() {
    public void run() {
    try {
                   System.out.println("main ---> Passou pelo Runnable");
    TStatus.setText("main ---> Funcionou");
    catch(Exception x) {
    x.printStackTrace();
    System.out.println("main ---> About to invokelater");
    SwingUtilities.invokeLater(setTextRun);
    System.out.println("main ---> Back from invokelater");
    // Aqui vai entrar o m�todo para ouvir as portas sockets.
    // Ele deve ouvir e caso haja alguma nova mensagem, trat�-la para
    // alterar as vari�veis e redesenhar os pain�is
    // Al�m disso, o bot�o de refresh deve aparecer ativo em vermelho
    //Component initialization
    private void jbInit() throws Exception {
    // Initialize the interface
    //Setting | Host action performed
    public void SetHost_actionPerformed(ActionEvent e) {
         int port;
         ServerSocket server_socket;
         BufferedReader input;
    System.out.println("main ---> port = 1500 (default)");
         port = 1500;
         try {
         server_socket = new ServerSocket(port);
         System.out.println("main ---> Server waiting for client on port " +
                   server_socket.getLocalPort());
         // server infinite loop
    while(true) {
              Socket socket = server_socket.accept();
              System.out.println("main ---> New connection accepted " +
                        socket.getInetAddress() +
                        ":" + socket.getPort());
              input = new BufferedReader(new InputStreamReader(socket.getInputStream()));
    String espaco=new String(": ");
         JLabel teste2=new JLabel(new ImageIcon("host.gif"));
              PHost.add(teste2);
    System.out.println("main ---> Adicionou host na interface");
              repaint();
    System.out.println("main ---> Redesenhou a interface");
              setVisible(true);
              // print received data
              try {
              while(true) {
                   String message = input.readLine();
                   if (message==null) break;
                   System.out.println("main ---> " + message);
              catch (IOException e2) {
              System.out.println(e2);
              // connection closed by client
              try {
              socket.close();
              System.out.println("main ---> Connection closed by client");
              catch (IOException e3) {
              System.out.println(e3);
         catch (IOException e1) {
         System.out.println(e1);
    public void OutHost_actionPerformed(ActionEvent e) {
              repaint();
              setVisible(true);
    //Help | About action performed
    public void helpAbout_actionPerformed(ActionEvent e) {
    Main_AboutBox dlg = new Main_AboutBox(this);
    Dimension dlgSize = dlg.getPreferredSize();
    Dimension frmSize = getSize();
    Point loc = getLocation();
    dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);
    dlg.setModal(true);
    dlg.show();
    //Overridden so we can exit on System Close
    protected void processWindowEvent(WindowEvent e) {
    super.processWindowEvent(e);
    if(e.getID() == WindowEvent.WINDOW_CLOSING) {
    fileExit_actionPerformed(null);
    public void result(final String msg) {
    // C�digo para mudar a interface
    Runnable setTextRun=new Runnable() {
    public void run() {
    try {
                   System.out.println("main ---> Chamou o m�todo result para mudar a interface");
    System.out.println("main --> Mensagem que veio do agora para main: "+ msg);
    TStatus.setText(msg);
    catch(Exception x) {
    x.printStackTrace();
    System.out.println("main --> About to invokelater");
    SwingUtilities.invokeLater(setTextRun);
    System.out.println("main --> Back from invokelater");
    []�s.

  • How to execute the valuechangelistener thru javascript ?

    Hi,
    JDev 11.1.1.6
    How to execute the valuechangelistener thru javascript ?
    Regards,
    Gopi

    we need to use ClientListener and ServerListener for calling the method.
    please refer the below threads, these includes the code.
    how to call backing bean method from java script
    Calling the Managed bean class method from javascript on page load
    regards,
    Rajan

  • Download code of all the methods in a class to desktop

    Hi,
    I want to download code of all the methods in a class to desktop.
    Its like user will enter Class name on selection screen, then program should download the code of all the methods inside that class on to desktop as a text file.
    How to do it.
    Points will be rewarded!!
    Regards

    You can use FM SEO_CLASS_GET_METHOD_INCLUDES
    to determine the names of all methods implemented in this class with the according names of the includes.
    Than you can loop through the table returned by this FM and get the coding of all methods using READ REPORT statement, whereas you must pass the name of the include of the according method, when executing READ REPORT...
    Reward points, in case reply meets your expectation...
    --MIKE

  • How to execute applets method from jsp?

    Hi ,
    I have a query.I have a jsp page
    on loading the jsp page the applet should be
    loaded.And i have a button in my jsp page on clicking
    the button a method written in the applet class should
    be executed .How can i do this.Iam attaching the
    classes also.There r two java files.One is EXPosApplet.java and other is EXPos.java
    In the EXPosApplet.java i have a method called
    RunNotepad().This method should be executed when i click the
    button in my jsp page.Pls provide me with some code to load the applet and execute the method of applet.It is a bit urgent.
    Thanks
    Naveen
    The following is my
    EXPos.java class.Following this is my EXPosApplet.java class.
    EXPos.java
    package SumberPutra.External;
    import java.io.*;
    public class EXPos extends Object {
         * Constructor
         public EXPos() {
    private static void RunIt(String fileName){
         try {
         Runtime.getRuntime().exec(fileName);
              catch (SecurityException e) {
    System.out.println("ExecFile: caught security exception: " + e) ;
    catch (IOException ioe) {
    System.out.println("ExecFile: caught i/o exception: " + ioe);
    public void RunNotepad(){
         String fname = "notepad.exe";
    RunIt(fname);
    EXPosApplet.java
    package SumberPutra.External;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class EXPosApplet extends JApplet {
         boolean isStandalone = false;
         private EXPos expos = new EXPos();
         JButton jButton1 = new JButton();
         JLabel jLabel1 = new JLabel();
         * Constructs a new instance.
         * getParameter
         * @param key
         * @param def
         * @return java.lang.String
         public String getParameter(String key, String def) {
              if (isStandalone) {
                   return System.getProperty(key, def);
              if (getParameter(key) != null) {
                   return getParameter(key);
              return def;
         public EXPosApplet() {
         * Initializes the state of this instance.
         * init
         public void init() {
              try {
                   jbInit();
              catch (Exception e) {
                   e.printStackTrace();
         private void jbInit() throws Exception {
              this.setSize(new Dimension(400, 156));
              jButton1.setText("jButton1");
              jLabel1.setText("jLabel1");
              jButton1.addActionListener(new java.awt.event.ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        jButton1_actionPerformed(e);
              this.getContentPane().add(jButton1, BorderLayout.NORTH);
              this.getContentPane().add(jLabel1, BorderLayout.SOUTH);
         * start
         public void start() {
         * stop
         public void stop() {
         * destroy
         public void destroy() {
         * getAppletInfo
         * @return java.lang.String
         public String getAppletInfo() {
              return "Applet Information";
         * getParameterInfo
         * @return java.lang.String[][]
         public String[][] getParameterInfo() {
              return null;
         static {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              catch(Exception e) {
                   e.printStackTrace();
    public void ExecNotepad(){
         expos.RunNotepad();
    /*     void jButton1_actionPerformed(ActionEvent e) {
    try
              Runtime.getRuntime().exec("notepad.exe");
              catch (SecurityException ex) {
    // strMsg = "ExecFile: caught security exception: " + e ;
    jLabel1.setText("ExecFile: caught security exception: " + ex) ;
    catch (IOException ioe) {
    // strMsg = "ExecFile: caught i/o exception: " + ioe;
    jLabel1.setText("ExecFile: caught i/o exception: " + ioe);

    Iam new to java .Can u please give me the code to load the applet and execute applets method
    Thankyou

  • How to execute Applet method from jsp?

    Hi ,
    I have a query.I have a jsp page
    on loading the jsp page the applet should be
    loaded.And i have a button in my jsp page on clicking
    the button a method written in the applet class should
    be executed .How can i do this.Iam attaching the
    classes also.There r two java files.One is EXPosApplet.java and other is EXPos.java
    In the EXPosApplet.java i have a method called
    RunNotepad().This method should be executed when i click the
    button in my jsp page.Pls provide me with some code to load the applet and execute the method of applet.It is a bit urgent.
    Thanks
    Naveen
    The following is my
    EXPos.java class.Following this is my EXPosApplet.java class.
    EXPos.java
    package SumberPutra.External;
    import java.io.*;
    public class EXPos extends Object {
    * Constructor
    public EXPos() {
    private static void RunIt(String fileName){
    try {
    Runtime.getRuntime().exec(fileName);
    catch (SecurityException e) {
    System.out.println("ExecFile: caught security exception: " + e) ;
    catch (IOException ioe) {
    System.out.println("ExecFile: caught i/o exception: " + ioe);
    public void RunNotepad(){
    String fname = "notepad.exe";
    RunIt(fname);
    EXPosApplet.java
    package SumberPutra.External;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class EXPosApplet extends JApplet {
    boolean isStandalone = false;
    private EXPos expos = new EXPos();
    JButton jButton1 = new JButton();
    JLabel jLabel1 = new JLabel();
    * Constructs a new instance.
    * getParameter
    * @param key
    * @param def
    * @return java.lang.String
    public String getParameter(String key, String def) {
    if (isStandalone) {
    return System.getProperty(key, def);
    if (getParameter(key) != null) {
    return getParameter(key);
    return def;
    public EXPosApplet() {
    * Initializes the state of this instance.
    * init
    public void init() {
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.setSize(new Dimension(400, 156));
    jButton1.setText("jButton1");
    jLabel1.setText("jLabel1");
    jButton1.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(ActionEvent e) {
    jButton1_actionPerformed(e);
    this.getContentPane().add(jButton1, BorderLayout.NORTH);
    this.getContentPane().add(jLabel1, BorderLayout.SOUTH);
    * start
    public void start() {
    * stop
    public void stop() {
    * destroy
    public void destroy() {
    * getAppletInfo
    * @return java.lang.String
    public String getAppletInfo() {
    return "Applet Information";
    * getParameterInfo
    * @return java.lang.String[][]
    public String[][] getParameterInfo() {
    return null;
    static {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    e.printStackTrace();
    public void ExecNotepad(){
    expos.RunNotepad();
    /* void jButton1_actionPerformed(ActionEvent e) {
    try
    Runtime.getRuntime().exec("notepad.exe");
    catch (SecurityException ex) {
    // strMsg = "ExecFile: caught security exception: " + e ;
    jLabel1.setText("ExecFile: caught security exception: " + ex) ;
    catch (IOException ioe) {
    // strMsg = "ExecFile: caught i/o exception: " + ioe;
    jLabel1.setText("ExecFile: caught i/o exception: " + ioe);

    hie Naveen
    I don't have time to read your code.
    just telling you the way i did it.
    I used javascript for this
    apply onClick() event on button.
    function invokeApplet() {
    app = document.applets[0].methodName(param1,param2);
    hope this helps
    if you still face the problem
    I'll look in to your code

  • Field-symbols as parameters to the method of a class

    Hi All,
    I am having an doubt regarding the field-symbols.Can we pass the field-symbols as a parameter to the method of a class.If yes can anyone tell me how to do this. Before posting I have searched regarding it in google but I did not find any better solution.Though I have seen some examples regarding the passing of field symbols as a parameter those scenarios does not match with my report as my report varies dynamically based on selection criteria.
    Below is the snippet of my code regarding the passing of field-symbols as a parameter.
    methods:  final_data importing <fs_h_line>TYPE any
                                                 <fs_h> TYPE STANDARD TABLE
                                   exporting <fs_f_line> TYPE any
                                                 <fs_f> TYPE STANDARD TABLE, 
    CALL METHOD l_obj->final_data exporting <fs_h_line> = <fs_header_line>
                                                                  <fs_h>      = <fs_header>
                                                   importing <fs_f_line> = <fs_final_line>
                                                                 <fs_f>      = <fs_final>.
    With the above code I am getting an error.Check whether it is correct or not.If not suggest the solution to resolve the issue.
    Regards,
    Chakradhar.

    Hi
    Maybe if you change this code below to field-symbol, it can work:
    DATA: tl_header_csv TYPE STANDARD TABLE OF yol_header_arquivo,
          tl_csv_aux    TYPE textline_t                          .
    DATA: wl_header_csv LIKE LINE OF tl_header_csv.
    converter_csv_al11_itab( EXPORTING im_t_csv = tl_csv_aux
                             IMPORTING ex_w_sap = wl_header_csv
                             CHANGING  ex_t_sap = tl_header_csv ).
    METHOD converter_csv_al11_itab.
      IM_T_CSV  Importing  Type  TEXTLINE_T
      EX_W_SAP  Exporting  Type  ANY
      EX_T_SAP  Changing   Type  STANDARD TABLE

  • How to execute the transaction SCI

    Hi All,
    How to execute the transaction SCI
    Thank you,
    Sridhar.

    Hai ,
    there are two ways to use SCI , one is you open you code in se38 -->display mode --> Program >check>code inspector. here your program is executed with a dafault variant provided in SCI.
    Second method is go to SCI , create a inspection  an choose a variant , here system provide you with a wide range of program checks (security/syntax etc)
    For any further help.
    Do reply.
    Regards
    Jase

  • .How to instantiate the innerclass from another class with coded eg.

    How to instantiate the innerclass from another class(both for static & non static) please give me an eg with coding.

    It's just a preference, but I like writing factory methods:
    public class Outer {
        public class Inner {}
        public static class StaticInner {}
        public Inner innerInstance() {
            return new Inner();
        public static StaticInner staticInnerInstance() {
            return new StaticInner();
        public static void main(String[] args) {
            Outer.StaticInner si = Outer.staticInnerInstance();
            Outer outer = new Outer();
            Outer.Inner i = outer.innerInstance();
    }Often, for me, the inner class implements an interface, and the factory method
    lets you hide the implementation class:
    public class Outer {
        private class Inner implements Runnable {
            public void run() {}
        public Runnable runnerInstance() {
            return new Inner();
        public static void main(String[] args) {
            Outer outer = new Outer();
            Runnable r = outer.runnerInstance();
    }

  • How to execute a method after page Load?

    My question is very similar to what was discussed in following thread:
    How to execute a method after page Load?
    My requirement is that I want to run a method in backing bean of a page, immediately after the page gets loaded. In that method I want to invoke one of the method action included in the pagedef of this page, conditionally.
    I tried using the approach given in the above thread, i.e to use <f:view afterPhase="#{backing_security.setPermPriv}">, but the problem is that our page is not using 'f:view' , so I explicitly added one f:view with afterPhase property set , but it is not working, page it self is not getting loaded, it is throwing the error:
    Root cause of ServletException.
    java.lang.IllegalStateException: <f:view> was not present on this page; tag [email protected]e8encountered without an <f:view> being processed.
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.setProperties(UIXComponentELTag.java:108)
         at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:733)
         at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)
         at org.apache.myfaces.trinidad.webapp.UIXComponentELTag.doStartTag(UIXComponentELTag.java:71)
         at oracle.adfinternal.view.faces.taglib.UIXQueryTag.doStartTag(UIXQueryTag.java:41)
         at oracle.adfinternal.view.faces.unified.taglib.UnifiedQueryTag.doStartTag(UnifiedQueryTag.java:51)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:262)
         at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
         at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
         at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:665)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:387)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:822)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:746)
    Please help to resolve this issue, or am I doing anything wrong?

    Hi,
    I assume that your view is a page fragment and here - indeed - the f:view tag cannot be used. If you use ADF then one option would be to use a custom RegionController on the binding layer to listen for the render phase to invoke the method. Another option would be to use a hidden field (output text set to display="false" and have this component value referencing a managed bean property. The managed bean property's getter method can now be used to invoke the method you want to run upon view rendering
    Frank

  • How to Stop the method Action When an Exception Occur in other Method

    Hi All ,
    public void action( Event clientEvent) {
    startAction();
    JOptionPane.showMessageDialog(null, getDocumnetId());
    how to Stop the method action ( "action" ) if an exception occur in the method ("startAction")
    ( if the exception occur we doesn't need to show the JOption Message )

    Hi,
    try FacesContext.getCurrentInstance().renderResponse();
    Frank

  • How to change the $ sign in a class name?

    How to change the $ sign in a class name?
    After compilation I get classes with names like abc.class, abc$1.clsss abc$2.class etc.. How do I get different names (without the $ sign) that will be accepted by my web host.

    Thank you, I found out it had to do with the actionPerformed(ActionEvent e) assignment,
    public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equals("Subtotal")) {
    bla bla �..
    I will have to rewrite some of my source code. I gave you points, thank you again.

  • How to use the method "getChildrenRemoved()" declared in ElementChange?

    How to use the method "getChildrenRemoved()" declared in DocumentEvent.ElementChange?

    I have tried to use it,but the code below alway say "Yes"....
    I really have no ideas about why ec is always a null.
    public void removeUpdate(DocumentEvent ee) {
           DocumentEvent.ElementChange ec = ee.getChange(doc.getDefaultRootElement());
           if(ec == null)
              System.out.println("Yes");
                     }

Maybe you are looking for

  • When I open my free aol email account, I keep getting redirected to a new open tab ad for Verizon Fios. Is there a way to block this in Firefox?

    I tried SuperAntiSpyware and Malwarebytes but they didn't solve the problem. AOL email is the only place I'm having this problem and it's constantly happening while I have that email open. It will open up the same new tab time after time. Screen shot

  • Best practice for Near Real time with Oracle

    Hi, We plan to run a scenario to demonstrate DS ability for real time or near real time scenario. We identified different solutions and we are trying to choose the most appropriate : - Oracle 11g + Sybase Replication server + Data Services - Oracle 1

  • Non-Understandable characters in InDesign CS4

    The title text occurred in InDesign has been converted as understandable characters when we do PS to PDF. On a particular page the title text alone has been converted as non-understandable characters. The next time when we do PS to PDF, the actual ch

  • BizTalk SMTP Relay Issue

    We go to send mail via SMTP from all of servers, we are only able to send mail to @Dell.com addresses only.(same network) We would not able to send to all address (like an @Microsoft.com or an @csc.com address) I am able to send an email to all addre

  • Problem with rich datatable

    Hi, there. I'm a newbie in JSF and was trying to build a rich datatable. Using the docs of this page I was able to build the header but not a sub table: <rich:dataTable cellpadding="0" cellspacing="0" width="780" border="0"> <f:facet name="header">